Let's make a map with D3.js!
✓ Published1🌍 Public
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 descriptionMIT Licensed