Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Marcus' scatter plot #1

Public visualization

Viewing a saved revision (read-only)

720a19bda38a44b9af82112c3fc14e83

Marcus' scatter plot #1

0 stars2🌍 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