Cheap Tricks for Interaction
✓ Published0🌍 Public
This example shows a world map that users can pan and zoom, with countries displayed as light green regions that turn red on hover. The visualization loads geographic data as TopoJSON from the world-atlas package and renders it as SVG paths using d3.geoPath with a d3.geoNaturalEarth1 projection. Interaction is implemented through d3.zoom, while country names are joined from a TSV file and displayed via SVG title tooltips.
AI-generated descriptionMIT Licensed