Cheap Tricks for Interaction
✓ Published156🌍 Public
This example shows an interactive world map with zoom and pan capabilities, displaying country boundaries and names using natural Earth projection. The user can explore the map by dragging to pan and scrolling to zoom, which is implemented through d3.zoom. Countries are rendered as SVG paths using d3.geoPath, with hover effects highlighting regions in red. The visualization uses TopoJSON data from world-atlas and TSV country names, combining d3.json and d3.tsv for data loading within a Promise.all.
AI-generated descriptionMIT Licensed