Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make an interactive US Map with D3.js!

Public visualization

Let's make an interactive US Map with D3.js!

0 stars5🌍 Public
Aacrasto-tibco
Last edited Jul 28, 2020
Created on Jul 28, 2020

An interactive SVG map of the United States renders state boundaries with basic hover styling. Using the D3.js and TopoJSON libraries, it loads a `states-10m.json` TopoJSON file, converts the topology into GeoJSON features, and projects them with an Albers equal-area conic projection via `d3.geoAlbersUsa()`. A zoom interaction updates the map's SVG transform, while each state path gains a tooltip showing its name.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed