Skip to main content
100%

Question

✓ Published0🌍 Public
Aadityatrip9899@gmail.com
Last edited Nov 6, 2024
Created on Nov 6, 2024
Forked from Simple Bar Chart

This bar chart shows the top 10 most populous countries on Earth as of January 1st, 2024. The code uses D3.js with `scaleBand` and `scaleLinear` to map country names to the x-axis and population values in thousands to the y-axis. It imports data from the `@curran/un-population-estimates-2024` package, filters for country-type records, and sorts them in descending order to select the top ten. The `viz` function renders axes, labels, and rectangles to create the visualization.

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