🌍 Public
Cheap Tricks for Interaction
This example shows an interactive world map rendered with SVG, where hovering highlights countries in red and clicking logs the selected country's ID. The visualization uses D3 v5's `geoPath` and `geoNaturalEarth1` projections to draw geographic boundaries, and the `zoom` interaction module enables pan and zoom transformations. Country names come from a TSV file loaded from the world-atlas package, while geometric data is parsed from TopoJSON using the topojson library.
AI-generated descriptionMIT Licensed
Comments
Sign in to join the discussion.