Skip to main content
100%

Making bar chart

✓ Published1🌍 Public
PPragati Porwal
Last edited Jul 21, 2021
Created on Jul 13, 2021
Forked from HTML Starter

This bar chart displays the population of the ten most populous countries, based on 2018 estimates from the United Nations World Population Prospects 2017. The code uses d3.csv to load the data, then applies d3.scaleLinear and d3.scaleBand to map population and country names to the SVG canvas. Axes are rendered with d3.axisLeft and d3.axisBottom, while rectangular bars are appended and styled with a steelblue fill.

AI-generated description

This bar chart shows population of 10 most populos countris.The data comes from the year 2018 estimate in United Nations:World Population Prospects 2017.

MIT Licensed

Similar vizzes