Let's make a map with D3.js!
✓ Published0🌍 Public
This example shows a world map using a natural Earth projection, with countries filled in light green and oceans in blue, all rendered as SVG paths. It loads geographic data from the World Atlas TopoJSON dataset via `json()`, then converts the TopoJSON features into GeoJSON using the TopoJSON `feature()` function. The map is drawn with D3’s `geoPath` and `geoNaturalEarth1` projection, and styled with CSS classes for the sphere and countries.
AI-generated descriptionMIT Licensed