🌍 Public
Viewing a saved revision (read-only)
acad3625de4e42aa92523ec76160f209
Let's make a map with D3.js!
This example displays a world map using the Natural Earth projection, with each country rendered as a dark green SVG path on a light blue background. The code loads GeoJSON data from the world-atlas TopoJSON dataset and converts it using `topojson.feature`. D3 v5’s `d3.geoNaturalEarth1` projection and `d3.geoPath` generate the map shapes, with paths appended to an SVG container via data joins.
AI-generated description