Skip to main content
100%

World Map with Cities with React & D3

✓ Published1🌍 Public
MManon ROMAIN
Last edited Oct 20, 2021
Created on Oct 20, 2021

This map visualization displays major world cities as circles sized by population on an equal-Earth projection of the globe. Using React hooks, it loads geographic data via `useWorldAtlas` (from TopoJSON) and city data via `useCities` (from a CSV). The `Marks` component renders the sphere, graticules, land outlines, and interiors using `d3.geoPath` and `d3.geoGraticule`, while city circles are positioned by projecting coordinates and scaled with `d3.scaleSqrt`.

AI-generated description

Loading Data with React & D3

MIT Licensed

Similar vizzes