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