🌍 Public
Viewing a saved revision (read-only)
675cc9e2f26e4183a8a8035db9ef6bbc
World Map
This example renders a natural Earth projection world map as an SVG, using light yellow for the ocean sphere and light blue for landmasses with white stroke outlines. It loads world topology from the world-atlas TopoJSON file via D3’s `json` method, converts it to GeoJSON using TopoJSON’s `feature` function, and draws paths with `d3.geoPath` and `d3.geoNaturalEarth1`. The implementation relies on D3 v5 selections and the topojson client library to visualize country boundaries.
AI-generated description