🌍 Public
Viewing a saved revision (read-only)
840a93b39ccd4f31a0acfb5271bfa0b2
scatter plot
This scatter plot visualizes the top 10 most populous countries in 2020, using horizontal bars to represent population sizes. The chart is built with React and D3 v5, using `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, with SVG rendering for the marks and axes. Data comes from the UN World Population Prospects 2019, loaded via D3’s `csv` function and formatted with `format('.2s')` to display population in billions. Hovering over a bar reveals a tooltip with the precise value.
AI-generated descriptionA program that shows the top 10 most populous countries as a bar chart.