Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

USA Map

Public visualization

USA Map

0 stars0🌍 Public
Aaashrithd4
Last edited Apr 3, 2022
Created on Apr 3, 2022
Forked from USA Country Map

This example displays a choropleth-style map of the 50 US states using the `geoAlbersUsaTerritories` projection from the `geo-albers-usa-territories` library. The visualization renders geographic data from `us-atlas@3.0.0` TopoJSON via `d3.geoPath` within a React component, using `feature()` and `mesh()` from `topojson` to generate land and interior boundaries. States are filled with a yellow color and outlined in black, while hovering on a state highlights it in green, as defined in the accompanying CSS. The map is drawn as SVG at 960×600 resolution, with a loading state displayed until data is fetched.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed