Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
AAlain Jennotte
Last edited Jun 11, 2019
Created on Jun 11, 2019
Forked from Making a Bar Chart

This bar chart displays the population of the top 10 most populous countries, based on 2018 estimates from the United Nations World Population Prospects. The visualization renders each country as a single steelblue rectangle on an SVG canvas. Built with D3 v5, the code loads data from a CSV file and uses the `d3.scaleBand` and `d3.scaleLinear` APIs to map country names to the x-axis and population values to the y-axis, respectively. The chart is minimal, with no axes or labels, focusing solely on the relative bar heights.

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