Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
Oowendobrien
Last edited Nov 18, 2019
Created on Nov 18, 2019

This bar chart displays the 2018 population estimates for the top 10 most populous countries, based on data from the United Nations World Population Prospects. It uses D3 v5 with `d3.csv` and `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the quantitative x-axis. The chart renders as an SVG, with axes generated via `d3.axisLeft` and `d3.axisBottom`, and rectangular bars colored steelblue. Population values are read from data.csv and multiplied by 1,000 to reflect actual counts.

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