Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

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

Public visualization

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

0 stars1🌍 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

Comments

Sign in to join the discussion.

MIT Licensed