Skip to main content
100%

Points on a Map, Using Size

✓ Published1🌍 Public
PPeter Krevenets
Last edited Mar 26, 2021
Created on Mar 26, 2021
Forked from Points on a Map

This visualization shows a world map with circles representing cities whose population exceeds 50,000 people. The size of each circle is proportional to the city's population, using a square root scale to map population values to radii. The map displays land masses in gray, graticules and interiors as thin lines, and the cities as semi-transparent teal dots. The code uses `d3.geoPath` with the `geoNaturalEarth1` projection to render the map, and `d3.scaleSqrt` to create the size encoding. City data comes from a CSV file containing global city populations, while country boundaries are loaded from a world-atlas JSON file.

AI-generated description

A map of the world with cities, whose population is larger than 50,000 people (https://gist.githubusercontent.com/curran/13d30e855d48cdd6f22acdf0afe27286/raw/worldcities_clean.csv). City mark size correlates to population.

MIT Licensed

Similar vizzes