D3 Starter - making bar chart
✓ Published1🌍 Public
This bar chart displays the population of the top 10 most populous countries, using 2019 estimates from the United Nations World Population Prospects. The chart encodes population on a linear x-axis and country names on a banded y-axis, with steel-blue rectangles representing each value. The visualization is built with D3 v5, using `d3.csv` to load the data, `d3.scaleLinear` and `d3.scaleBand` for scales, and `d3.axisLeft` and `d3.axisBottom` for axes. The population values are converted from strings to numbers and multiplied by 1000 before rendering.
AI-generated descriptionThis bar chart shows population of the top 10 most populous countries. The data comes from the year 2019 estimate in United Nations: World Population Prospects
MIT Licensed