Skip to main content
100%

Fork of Stylized Bar Chart

✓ Published0🌍 Public
LLe Doan
Last edited Feb 8, 2021
Created on Feb 8, 2021
Forked from Stylized Bar Chart

This example displays the top 10 most populous countries as horizontal bars, with country names on the left and population counts on the x-axis. Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis and `scaleLinear` for the population values. SVG rectangles render the bars, with tooltips formatted using D3’s `format('.2s')` and hover titles provided by native SVG `<title>` elements. Data comes from the United Nations World Population Prospects 2019, loaded via `d3.csv`, showing a clean stylized design with teal bars.

AI-generated description

A program that shows the top 10 most populous countries as a bar chart.

Data: United Nations World Population Prospects 2019.

MIT Licensed

Similar vizzes