City sizes on a Map
✓ Published1🌍 Public
This visualization displays global city populations using circles plotted on a world map, with dot radius scaled by the square root of population via d3.scaleSqrt. It uses d3.geoNaturalEarth1 projection and d3.geoPath to render landmasses, graticules, and country interiors. React manages component state, while d3.csv and d3.json load city data from a gist and world-atlas TopoJSON. Circle opacity and fill are styled via CSS, showing cities over 50,000 inhabitants.
AI-generated descriptionA world map showing country boundaries and city locations with populations of over 50 000
City data source: https://gist.github.com/curran/13d30e855d48cdd6f22acdf0afe27286
Spatial data source: https://unpkg.com/world-atlas@2.0.2/countries-50m.json
MIT Licensed