Skip to main content
100%

World Map

✓ Published0🌍 Public
JJanet Li
Last edited Aug 25, 2021
Created on Aug 24, 2021
Forked from Working with Time

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 description

A program that loads in some data about iris flowers using D3 utilities, and uses React state to keep track of the data.

MIT Licensed

Similar vizzes