Cheap Tricks for Interaction
✓ Published0🌍 Public
This example shows a zoomable world map with hover highlighting, using a natural Earth projection to render country boundaries from TopoJSON data. The map supports interactive pan and zoom through d3.zoom, with a tooltip title displaying each country’s name from a TSV lookup. Countries fill light green and turn red on hover via SVG styling. The visualization relies on d3.geoPath, d3.geoNaturalEarth1, and topojson.feature to draw geographic shapes.
AI-generated descriptionReact Starter code.
MIT Licensed