🌍 Public
Viewing a saved revision (read-only)
4a00280f8e554f5d8aa2a34b3d744294
Making a Barchart
This bar chart displays the population of the top 10 most populous countries in 2020, using data from the UN World Population Prospects. The chart shows population values on a linear x-axis and country names on a banded y-axis. Built with D3 v5, it uses `d3.csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to load data and render SVG rectangles. The SVG output features steel-blue bars with text labels, and the data is preprocessed by multiplying population values by 1000.
AI-generated descriptionThis bar chart shows population of the top 10 most populous countries. The data comes from the year 2020 in World Population Prospects 2020 according to the UN.