🌍 Public
Viewing a saved revision (read-only)
78f152340d28459bbd917e9ba5292d61
Let's make a map with D3.js!
This example displays a world map using an orthographic projection, rendering countries as light-green SVG paths against a dark blue background. The map is built entirely with D3.js v5 and TopoJSON, loading geographic data from the world-atlas dataset. The code uses `d3.geoOrthographic` and `d3.geoPath` to project and trace country boundaries, while `topojson.feature` extracts the geometries for rendering.
AI-generated description