Skip to main content
100%

Fork of USA Country Map

✓ Published1🌍 Public
Ttejaswikalluri05
Last edited Apr 4, 2022
Created on Apr 4, 2022
Forked from USA Country Map

This example displays a choropleth-style map of the 50 US states, rendered as an SVG where each state boundary is drawn using D3’s `geoPath` and a custom `geoAlbersUsaTerritories` projection. The map initially fills each state with a teal color, and hovering over a state highlights it in magenta. Data is loaded asynchronously from the US Atlas TopoJSON file (`states-10m.json`) using React hooks (`useState`, `useEffect`) and processed with TopoJSON’s `feature` and `mesh` functions to generate land and interior borders. The visualization is built with React 16 and D3 v5, with styling defined in an external CSS file.

AI-generated description
MIT Licensed

Similar vizzes