Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
Ffbudwill
Last edited Apr 26, 2020
Created on Apr 26, 2020

This bar chart displays the population of the top 10 most populous countries, using 2018 estimates from the United Nations World Population Prospects. The chart renders as SVG, with a linear scale for population values and a band scale for country names. The code uses d3.csv to load the data, then applies d3.scaleLinear, d3.scaleBand, d3.axisLeft, and d3.axisBottom to construct the visualization. Bars are appended as rect elements, with China and India visibly dominating the population totals.

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