🌍 Public
Viewing a saved revision (read-only)
9e71e136007f4c1a96ba4e70d8e05f7d
Making a Bar Chart
This bar chart visualizes the population of the world’s ten most populous urban areas, based on 2018 estimates from the United Nations’ World Population Prospects. The chart renders as an SVG using D3 v5, employing `scaleLinear` for the population axis and `scaleBand` for the categorical city labels, with bars drawn as `<rect>` elements. Data is loaded from a CSV file and scaled by a factor of ten thousand. The chart includes left and bottom axes generated via `axisLeft` and `axisBottom`.
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.