Making a Bar Chart
✓ Published1🌍 Public
This bar chart displays the population of the top 10 most populous countries, based on 2018 estimates from the United Nations World Population Prospects. Using D3 v5, the visualization employs `scaleLinear` and `scaleBand` to map population values and country names, with `axisLeft` and `axisBottom` rendering the axes. The SVG bars are generated from data loaded via `d3.csv`, with population values converted to thousands. The chart highlights relative population sizes across nations, presenting the data in ascending order along the y-axis.
AI-generated descriptionThis 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