Fork of Simple Bar Chart
This bar chart displays the top 10 most populous countries as of January 1, 2024, using data from the UN population estimates. It emphasizes ranking by population, with country names on the x-axis and population values in thousands on the y-axis. The visualization is built with D3.js, utilizing `scaleBand` for the categorical axis and `scaleLinear` for the continuous population scale. The code filters the dataset to include only entries marked as "Country/Area," sorts them in descending order, and selects the top ten for rendering. The `viz.js` module handles the chart’s layout, including axes, labels, and bars, while `index.js` orchestrates data preparation and SVG creation.
AI-generated descriptionA bar chart showing the top 10 most populous countries on Earth as of January 1st 2024.
Challenge
- Fork this viz and modify it to show your own data