Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of US states map

Public visualization

Fork of US states map

0 stars0🌍 Public
SShawn-Lian
Last edited May 5, 2022
Created on May 5, 2022

This example displays a choropleth map of US states, with each state filled by a categorical color assigned through `d3.scaleOrdinal` and `schemeCategory10`. It renders the map using `d3.geoPath` with a `geoAlbersUsa` projection, drawing state boundaries from TopoJSON county data loaded via `d3.json`. Hovering over a state turns it green through CSS, and each state includes an SVG `<title>` element showing its name.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed