Skip to main content
100%

Points on a Map React & D3 (codeAlong)

✓ Published1🌍 Public
Ttomahawk-jupiter
Last edited Jun 9, 2021
Created on Jun 9, 2021

This map visualization displays world cities as semi-transparent circles sized by population on a Natural Earth projection. Built with React and D3 v6, it uses `d3.geoNaturalEarth1` and `d3.geoPath` to render land masses, graticules, and country interiors from TopoJSON data, while `d3.scaleSqrt` maps city populations to circle radii. City coordinates from a CSV dataset are projected onto the SVG canvas, with D3’s `csv` loader fetching the data asynchronously.

AI-generated description

Loading topojson and convert in memory to geojson, then render to make a map.

Add points to the map.

tutorial Vid 8:47

MIT Licensed

Similar vizzes