Fork of Simple Bar Chart
✓ Published0🌍 Public
This bar chart displays the top 10 most populous countries as of January 2024, using data from the @curran/un-population-estimates-2024 package. The visualization uses d3.scaleBand and d3.scaleLinear to position bars, with axis labels rendered via @curran/axis-labels. The code filters for country/area type entries, sorts by total population in descending order, and slices the top 10 records. Each bar’s height is computed using the y-scale, while the inner rectangle provides a light gray background for the plotting area.
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
MIT Licensed