Cheap Tricks with Interactions!
✓ Published1🌍 Public
This example displays an interactive map of world countries on a natural Earth projection, rendered with SVG paths. Users can pan and zoom the map via the d3.zoom API, while hovering over a country highlights it in coral using CSS. The visualization loads GeoJSON from a TopoJSON world dataset and merges it with country names from a TSV file. It uses d3.geoPath to generate the map shapes and a D3 zoom behavior to apply transforms to the map group.
AI-generated descriptionMIT Licensed