Skip to main content
100%

Making a Bar Chart

✓ Published2🌍 Public
Kkiyahw1
Last edited Jun 24, 2020
Created on Jun 24, 2020

This bar chart displays the populations of the ten most populous countries, using 2019 estimates from the United Nations World Population Prospects. The chart renders as an SVG, with countries on the vertical axis and population values on the horizontal axis. It is built with D3 v5, using `d3.scaleLinear` for the x-axis, `d3.scaleBand` for the y-axis, and `d3.axisLeft` and `d3.axisBottom` to draw the axes. Data is loaded from a CSV file and parsed with `d3.csv`, with population values multiplied by 1,000 to reflect actual figures.

AI-generated description

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

MIT Licensed

Similar vizzes