🌍 Public
Viewing a saved revision (read-only)
81f65570f9a1428f8c2a6bef12863d04
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