🌍 Public
Viewing a saved revision (read-only)
13501d639d344eedb8c7d01cd596ad58
Let's make an interactive US Map with D3.js!
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