Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

US State Map with Interaction

Public visualization

US State Map with Interaction

0 stars0🌍 Public
Ddanrhymes
Last edited Feb 17, 2020
Created on Feb 17, 2020
Forked from US State Map

This example presents a choropleth-style map of US states with pan and zoom interaction. Built with D3 v5 and rendered as SVG, it uses `d3.geoAlbersUsa`, `d3.geoPath`, and `d3.zoom` to display state boundaries loaded from a TopoJSON file. State names and election data come from a CSV file, though only the names appear as tooltips via appended `title` elements. Hovering highlights a state in red, while the map supports interactive zooming through event-driven transforms.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed