🌍 Public
Viewing a saved revision (read-only)
d978bebce8a0419684af740274cfe2a0
20 Most Populous Cities
This horizontal bar chart ranks the world’s 20 most populous cities by population, using orange hover highlights to reveal precise figures in millions. Built with D3’s `d3-selection` module, the visualization binds an array of city objects to SVG `<rect>` and `<text>` elements via `selectAll().data().join()`. Each bar’s width is scaled linearly from population data, while city names anchor on the left. Population values come from Wikipedia.
AI-generated description