Cheap tricks for interaction
✓ Published1🌍 Public
This example demonstrates interactive pan and zoom on a world map using D3 v5 and React. The visualization renders country boundaries from World Atlas TopoJSON data with a Natural Earth projection, displaying country names as tooltips on hover. The code uses `d3.zoom` for the pan/zoom behavior, `d3.geoPath` for map rendering, and `d3.tsv` for loading country name metadata. CSS hover effects highlight countries in red, while the map supports smooth zooming through SVG transform updates.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed