Skip to main content
100%

10 largest cities in the world

✓ Published0🌍 Public
Mmargaretgoode
Last edited May 14, 2019
Created on May 13, 2019
Forked from Customizing Axes

This bar chart displays the populations of the ten largest cities in the world in 2018, using data from World Atlas. The bars are sorted by country name, with population values formatted in billions using d3.format. Built with D3 v5, the visualization uses scaleLinear and scaleBand for axes, axisLeft and axisBottom for ticks, and SVG rendering. A horizontal gridline pattern is created via tickSize on the x-axis, while the chart’s title and axis label are added as SVG text elements.

AI-generated description

This bar chart shows population of the 10 largest cities in the world in 2018 taken from the world atlas. https://www.worldatlas.com/articles/the-10-largest-cities-in-the-world.html

MIT Licensed

Similar vizzes