Skip to main content
100%

Marcus' scatter plot #1

✓ Published2🌍 Public
Mms-aus
Last edited Aug 31, 2019
Created on Aug 19, 2019

This visualization displays the populations of the world’s 10 most populous cities as a horizontal bar chart, with metro population on the x-axis and city names on the y-axis. The code uses d3.csv to load the data, d3.scaleLinear and d3.scaleBand for scaling, and d3.axisLeft and d3.axisBottom to render axes, with tick formatting via d3.format. Bars are drawn as SVG rectangles within a grouped element, and the chart includes custom labels for the title and axes, rendered with a pink background.

AI-generated description

Population of 10 most populous cities

MIT Licensed

Similar vizzes