Fork of Cheap Tricks for Interaction
✓ Published0🌍 Public
This map demonstrates interactive pan and zoom on a Natural Earth projection of the world, with country boundaries rendered as SVG paths and tooltips showing country names on hover. The visualization loads world-atlas TopoJSON data and a TSV file mapping ISO country codes to names, then draws countries using `d3.geoPath` with a `geoNaturalEarth1` projection. The zoom behavior is implemented via `d3.zoom`, which applies a transform to the SVG group, while hover styling changes country fill to red.
AI-generated descriptionMIT Licensed