🌍 Public
Viewing a saved revision (read-only)
de125961943b4d7ea2db7bf5e53c68b5
Cheap Tricks for Interaction
This example shows an interactive world map with zooming and panning controlled by the mouse. Hovering a country turns it red, and a tooltip displays the country’s name. Built with D3 v5, it uses `d3.geoNaturalEarth1` for the projection, `d3.geoPath` to generate the country shapes, and the `zoom` behavior from the `d3` module to apply transforms on a zoom event. The map draws a blue sphere background and green countries, using TopoJSON shape data and TSV country names from the `world-atlas` package.
AI-generated description