Making a Bar Chart
✓ Published1🌍 Public
This bar chart displays the top 10 most populous countries using 2020 population estimates from the United Nations World Population Prospects, loaded via `d3.csv` and scaled by `scaleLinear` for the x-axis and `scaleBand` for the y-axis. The SVG chart renders horizontal bars with `d3.axisLeft` and `d3.axisBottom` for tick marks, using `selectAll('rect')` to bind the data. Country names appear on the y-axis, while population counts drive the bar widths. The code imports its functions directly from the D3 v5 module.
AI-generated descriptionThis bar chart shows population of the top 10 most populouse countreis. The data comes from the year 2020 estimate in United nations: World Population Prospects 2019
MIT Licensed