US states map : with colorScale. One color for each country
✓ Published0🌍 Public
Aanduskong
Last edited Dec 16, 2020
Created on Dec 16, 2020
This example displays a choropleth map of US states, with each state assigned a distinct color from the d3.scaleOrdinal and schemeCategory10 palette. Hovering over a state turns it green, providing interactive feedback. The map is rendered as SVG paths using d3.geoPath with a geoAlbersUsa projection, processing TopoJSON county data from the us-atlas dataset. State names are included as tooltips via appended title elements.
AI-generated descriptionMIT Licensed