🌍 Public
World Map
This example renders a world map using D3’s `geoNaturalEarth1` projection and `geoPath` to draw SVG paths for landmasses, country borders, and the sphere outline. Data comes from the World Atlas TopoJSON file via `topojson.feature` and `topojson.mesh`, loaded asynchronously with `json()` into React state. The map fills land in teal, strokes interior borders in a lighter shade, and uses a light gray background for the ocean.
AI-generated descriptionA program that loads in some data about iris flowers using D3 utilities, and uses React state to keep track of the data.
MIT Licensed
Comments
Sign in to join the discussion.