🌍 Public
Viewing a saved revision (read-only)
bc7fcd116ab24f2ca8df47ca3ce7cb3b
Let's make a map with D3.js
This example displays a world map using the Natural Earth dataset from the `world-atlas` package. The map is rendered by projecting geographic coordinates with a Natural Earth projection and drawing the countries as SVG paths. It uses D3.js v7 APIs such as `geoPath` and `geoNaturalEarth1`, along with the `topojson` library’s `feature` function to convert TopoJSON data into features.
AI-generated description