🌍 Public
Viewing a saved revision (read-only)
bbe78368aa7344bd93a68acd3b0898aa
Fork of US states map : with colorScale. One color for each country
JJyothicherukuri
Last edited Apr 3, 2022
Created on Apr 3, 2022
This example displays a map of US states, with each state filled by a unique color from a categorical scale and its name in a tooltip on hover. It uses a TopoJSON file from the us-atlas package, projected with `geoAlbersUsa()`, and rendered via `d3.geoPath` into SVG paths. The view also uses `d3.scaleOrdinal` with `schemeCategory10` for the color mapping.
AI-generated description