Skip to main content
100%

country_map_usa_ice-8

✓ Published1🌍 Public
Hhossaphul
Last edited Apr 11, 2023
Created on Apr 10, 2023

This example displays a choropleth map of the United States, with each state filled with a distinct color from a categorical scale and a hover effect that turns the state white. It uses D3 v7’s `geoAlbersUsa` projection and `geoPath` to render the map from TopoJSON data loaded from the us-atlas CDN. State boundaries are drawn with black strokes, and tooltips showing state names appear via appended `title` elements. The color mapping and hover behavior are implemented with `scaleOrdinal` and CSS `:hover` rules.

AI-generated description
MIT Licensed

Similar vizzes