Skip to main content
100%

Making a Bar Chart

✓ Published2🌍 Public
Hhberrong
Last edited Feb 18, 2021
Created on Feb 17, 2021

This bar chart displays the population of the top 10 most populous countries using 2018 United Nations World Population Prospects data. Horizontal bars are drawn with `d3.scaleBand` for country categories and `d3.scaleLinear` for population values, with axes generated via `d3.axisLeft` and `d3.axisBottom`. The visualization uses D3 v6 with SVG rendering, loading CSV data and formatting population numbers with `d3.format` to abbreviate values.

AI-generated description

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017.

MIT Licensed

Similar vizzes