Skip to main content
100%

Untitled

✓ Published0🌍 Public
Ppcsong33
Last edited Jan 28, 2020
Created on Jan 26, 2020

This example presents an interactive map of the United States using d3.geo.path with an Albers USA projection, rendering state boundaries as SVG paths. Clicking a state triggers a smooth zoom animation that scales and translates the map to center on the selected region, highlighting it in orange. The map is constructed from topojson.feature and include a mesh overlay for state borders. The zoom effect is achieved by transitioning the group element's transform attribute using d3.transition over 750 milliseconds.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes