Skip to main content
100%

Let's make a map with D3.js!

✓ Published1🌍 Public
Jjons288
Last edited Oct 10, 2018
Created on Oct 10, 2018

This visualization displays U.S. states as a choropleth map, highlighting a subset of selected state IDs in orange while rendering all others in gray. It uses D3 v5’s `geoAlbersUsa` projection and `geoPath` to draw SVG paths from TopoJSON data loaded from `us-10m.v1.json`. The code filters state features against a predefined set and applies the `.selected` CSS class, though the commented-out section means the highlighting is not rendered in the final output.

AI-generated description
MIT Licensed

Similar vizzes