Skip to main content
100%

City density filtering by population and proximity

✓ Published0🌍 Public
AAlan McConchie
Last edited Aug 22, 2021
Created on Jul 23, 2021

This example displays a world map with cities filtered by population, showing only those with over 2 million residents as semi-transparent circles scaled by population size via `d3.scaleSqrt`. Geographic context comes from World Atlas TopoJSON, rendered using `d3.geoNaturalEarth1` and `d3.geoPath`. React manages the component state, fetching city data from an OpenStreetMap CSV through a custom `useCities` hook, while the `Marks` component renders the projected spheres, landmasses, and boundaries.

AI-generated description

A world map showing cities with population greater than 50,000. City data from OpenStreetMap, querying all features with place=city.

Country boundaries from World Atlas TopoJSON, polished for visual style.

ISC Licensed

Similar vizzes