🌍 Public
Viewing a saved revision (read-only)
dc096ecbc8044fe6a3477819dbbcb0b2
Cheap Tricks for Interaction
This example shows an interactive world map that uses zoom and pan gestures to explore countries, with hover highlighting and country names in tooltips. Clicking a country logs its ID to the console, while a viewport sphere frames the geographic projection. The visualization relies on `d3.zoom` for user-driven transformations, `d3.geoNaturalEarth1` and `d3.geoPath` for rendering TopoJSON features from world-atlas data, and SVG elements styled via CSS. Country names are joined from TSV data using a lookup table.
AI-generated description