🌍 Public
Viewing a saved revision (read-only)
e03c6f2651604abdbbf527205a5cfced
Let's make a d3 map with Tricks
This example presents an interactive world map rendered as SVG using d3.geoNaturalEarth1 and d3.geoPath, with country boundaries drawn from TopoJSON data loaded from the world-atlas package. Hovering over a country highlights it in red, and d3.zoom enables panning and zooming on the map. Country names come from a TSV file matched by ISO numeric codes, while a light blue sphere path provides the ocean background.
AI-generated description