Points on a Map
✓ Published1🌍 Public
This example displays world cities as semi-transparent circles on a natural Earth projection, with circle size encoding each city's population. The map renders landmasses and country borders from the world-atlas TopoJSON dataset, with graticules and a sphere outline providing geographic context. Using React hooks to load data asynchronously, the visualization applies d3.geoNaturalEarth1 and d3.geoPath for projection, d3.scaleSqrt for radius scaling, and maps city coordinates through the projection to position SVG circles.
AI-generated descriptionA program that loads in some data using D3 utilities, and uses React state to keep track of the data.
Plotting the SF temeprature dataset
MIT Licensed