🌍 Public
Viewing a saved revision (read-only)
5d75e529783d4ee08573f766b7b1c618
Let's make a map with D3.js!
This example displays a world map rendered as light green countries against a dark blue background using an SVG projection. It loads geographic data from the `world-map` package via TopoJSON, then uses D3’s `geoEquirectangular` projection and `geoPath` to draw each country’s borders. The code relies on D3 v5 selections and the TopoJSON `feature` method to convert topology into GeoJSON. Paths are styled with a faint black stroke and two-pixel width.
AI-generated description