Skip to main content
100%

Fork of Simple Bar Chart

✓ Published1🌍 Public
SSander Rebane
Last edited Mar 25, 2024
Created on Mar 25, 2024
Forked from Simple Bar Chart

This bar chart displays the top 10 most populous countries as of January 1, 2024, using data from the `@curran/un-population-estimates-2024` dataset. It filters for entries of type "Country/Area", sorts by the total population column in descending order, and selects the first ten. The visualization uses D3.js functions like `scaleBand` for the categorical x-axis, `scaleLinear` for the population y-axis, and custom axis label helpers. The code also demonstrates the `.join()` pattern for declarative SVG element creation, and includes a grey inner rectangle to visually frame 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