Skip to main content
100%

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

✓ Published5🌍 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
MIT Licensed

Similar vizzes