🌍 Public
Viewing a saved revision (read-only)
f905a5cd684944c896720e0f0582cce4
Let's make a map with D3.js
This example shows a geographic world map rendered as an SVG using D3.js and TopoJSON. It displays country boundaries and a blue sphere outline, with countries filled in light green and subtle black strokes. The code loads world-atlas data via D3’s `json` method and converts TopoJSON features using `topojson.feature`. It applies a natural Earth projection with `d3.geoNaturalEarth1` and generates paths via `d3.geoPath`. The visualization relies on D3 v5 and TopoJSON v3 scripts.
AI-generated description