Skip to main content
100%

Tricks for Interaction

✓ Published0🌍 Public
AAntonino Praxedes
Last edited May 9, 2020
Created on May 7, 2020

This example shows an interactive world map that supports pan and zoom navigation. The visualization renders a natural Earth projection using SVG paths, with each country drawn in light green and outlined in black. Hovering over a country changes its fill color to red, while a tooltip displaying the country name appears. The implementation uses D3 v5 APIs including `d3.geoNaturalEarth1`, `d3.geoPath`, and `d3.zoom`. Country boundaries come from the world-atlas TopoJSON dataset, joined with names from a TSV file. User interactions are handled by the zoom behavior, which applies SVG transform attributes to the map group.

AI-generated description
MIT Licensed

Similar vizzes