Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
Oonstiz
Last edited Mar 4, 2020
Created on Mar 1, 2020
Forked from Making a Bar Chart

This bar chart displays the populations of the top 10 most populous countries from the 2018 United Nations World Population Prospects, using country names on the vertical axis and population on the horizontal axis. Built with D3 v5, it uses `d3.scaleLinear` and `d3.scaleBand` to map data, customizes axes with `d3.axisBottom` and formatted tick labels, and renders bars as SVG rectangles styled via external CSS. Population values are read from a CSV and scaled by 1,000.

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. It also demonstrates customization of D3 axes.

MIT Licensed

Similar vizzes