🌍 Public
Viewing a saved revision (read-only)
b15359d82da04deebc5d1b195c9dca0b
Let's make a map with D3.js!
This example uses D3 v5 to render a world map from the World Atlas TopoJSON dataset. It displays countries as light green filled paths with subtle black outlines, positioned using a Natural Earth projection and a spherical background in steel blue. The code loads geographic data via `d3.json`, converts TopoJSON features with `topojson.feature`, and draws them using `d3.geoPath` combined with `d3.geoNaturalEarth1`.
AI-generated description