Cheap tricks for interaction
✓ Published0🌍 Public
This example shows an interactive world map built with D3 v5 and TopoJSON, using a Natural Earth projection. Users can pan and zoom the map via the `d3.zoom` API, with the viewport transform applied to a group element. Country boundaries are rendered as SVG paths via `d3.geoPath`, with hover highlighting controlled by CSS. The map loads world-atlas data from unpkg, joining TopoJSON features to TSV country names for tooltips.
AI-generated descriptionMIT Licensed