🌍 Public
Viewing a saved revision (read-only)
d7613e1c061a46709840ec5d0f7131c6
Cheap Tricks for Interation
This example uses D3.js v5 with geo projections and TopoJSON to render an interactive world map on an SVG canvas. It displays country boundaries as light green shapes with dark strokes, and a blue sphere as the background, with country names provided as tooltips from the world-atlas TSV dataset. Hovering a country turns it red, while a D3 zoom interaction lets users scale the entire map. The map’s projection is generated with `d3.geoNaturalEarth1` and `d3.geoPath`, and the zoom behavior is implemented via `d3.zoom`.
AI-generated description