Skip to main content
100%

Making a Bar Chart

✓ Published2🌍 Public
Jjuanandressr97
Last edited May 24, 2019
Created on May 24, 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 rectangular bars with an SVG, using d3.scaleLinear for the x-axis, d3.scaleBand for the y-axis, and d3.axisLeft and d3.axisBottom for the axes. The chart is built with D3 v5 and styled with steelblue rectangles.

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