🌍 Public
Viewing a saved revision (read-only)
49e0173034bb46258c83b895ae5e8f55
Cheap Tricks for Interaction
This example demonstrates interactive zooming and panning on a natural Earth projection map of world countries, with hover highlighting that changes each country’s fill to red. The map is rendered as SVG paths using `d3.geoPath` and `geoNaturalEarth1`, with country boundaries loaded from TopoJSON world-atlas data and names joined from a TSV file. Interaction is handled through `d3.zoom`, which applies a transform to a group element, while CSS `:hover` rules trigger the color change on each country.
AI-generated description