Let's make a map with D3.js!
✓ Published1🌍 Public
This example displays a world map using a natural Earth projection, rendering countries as green filled paths with subtle black borders on a dark blue sphere. It fetches geographic data from the world-atlas TopoJSON file via `json()`, converts it to GeoJSON using `feature()`, and draws the map with D3’s `geoPath` and `geoNaturalEarth1`. A single SVG element hosts all paths, loaded asynchronously and appended when the data resolves.
AI-generated descriptionMIT Licensed