Skip to main content
100%

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

✓ Published0🌍 Public
DDonald Bagwell
Last edited Feb 14, 2024
Created on Feb 14, 2024

This choropleth map displays US states, each filled with a distinct color from a categorical palette. The visualization uses the D3.js library, specifically `d3.geoPath` with `geoAlbersUsa` projection, to render the map from a TopoJSON file loaded from the us-atlas package. The color scale assigns colors based on the state's name, and hovering over a state turns it green via CSS. The map also includes tooltips that reveal the state name using the `.append('title')` method.

AI-generated description
MIT Licensed

Similar vizzes