Skip to main content
100%

Fork of US states map : with colorScale. One color for each country

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

Similar vizzes