Skip to main content
100%

Map Interaction with D3!

✓ Published0🌍 Public
AAnnie Liao
Last edited Jul 16, 2020
Created on Jul 16, 2020

This example shows an interactive world map rendered with SVG paths, where hovering over a country reveals its name as a tooltip and the map supports zooming and panning. It uses D3 v5’s `geoNaturalEarth1` projection and `geoPath` to draw countries from TopoJSON data provided by the world-atlas package, with country names loaded from a TSV file. The zoom behavior is implemented via D3’s `zoom` API, transforming a group element on the `zoom` event.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes