Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
Yyejichun@naver.com
Last edited Jul 26, 2021
Created on Jul 25, 2021

This bar chart displays the population of the top 10 most populous countries, using 2018 estimates from the United Nations World Population Prospects. The visualization encodes country names on the y-axis with d3.scaleBand and population values on the x-axis with d3.scaleLinear, rendering rectangular bars as SVG elements. The code loads data from a CSV file, converts populations to absolute numbers, and generates axes using d3.axisLeft and d3.axisBottom. Bars are filled with a steelblue color via CSS, and the chart includes margins for clear label placement.

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