Making bar chart
✓ Published1🌍 Public
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 descriptionThis 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