Skip to main content
100%

Fork of Simple Bar Chart

✓ Published0🌍 Public
Xx900.cs11@nycu.edu.tw
Last edited Sep 7, 2024
Created on Sep 7, 2024
Forked from Simple Bar Chart

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 description

A 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

Similar vizzes