🌍 Public
Viewing a saved revision (read-only)
57cdd1d6aec44bba8e4f5aab062dd796
Let's make a map with D3.js
This example displays a world map with countries rendered as light green SVG paths on a blue sphere, using a natural Earth projection. The code loads geographic data from the world-atlas TopoJSON dataset and converts it to GeoJSON with topojson’s `feature` method. It builds the map with d3’s `geoPath` and `geoNaturalEarth1` projection, appending country paths and a sphere outline to the SVG canvas.
AI-generated description