Cheap Tricks for Interaction
✓ Published1🌍 Public
This example demonstrates interactive pan and zoom on a world map, with countries highlighted in red on hover and tooltips displaying country names via SVG `<title>` elements. It uses a natural Earth projection (`geoNaturalEarth1`) and renders geographic features with `d3.geoPath`. The map loads world-atlas TopoJSON data and merges it with TSV country names, while the zoom behavior is implemented through `d3.zoom` applied to an SVG group.
AI-generated descriptionMIT Licensed