Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
KKim Hughes
Last edited Jun 8, 2019
Created on Jun 8, 2019

This bar chart displays the population of the top 10 most populous countries, using 2018 estimates from the United Nations World Population Prospects. The code loads data from a CSV file and renders it as an SVG using d3.csv, d3.scaleLinear, d3.scaleBand, d3.axisLeft, and d3.axisBottom. Population values are multiplied by 1000 after parsing, and bars are appended with a steelblue fill. The chart includes left and bottom axes with margins for clear labeling.

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