🌍 Public
Viewing a saved revision (read-only)
be5e6b8f64174f5bad1df67f9b3a975a
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