🌍 Public
Reproducing the Bar Chart
This bar chart displays the top 10 most populous countries for the year 2020, with horizontal bars mapped to population values and country names on the y-axis. It is built with React and D3 v6, using `scaleBand` and `scaleLinear` for positioning, while SVG elements render the axes, bars, and labels. The data comes from a CSV of United Nations World Population Prospects 2019, loaded via D3’s `csv` function, and the chart includes formatted population labels plus a zero line for reference.
AI-generated descriptionReplicating from scratch the bar chart created in Datavis 2020 (episodes 21-24).
- Original visualization: https://vizhub.com/curran/32dfc8d2393844c6a5b9d199d9a35946
- Data source: United Nations World Population Prospects 2019
MIT Licensed
Comments
Sign in to join the discussion.