🌍 Public
Viewing a saved revision (read-only)
fc3b4149c2444f4dab95d62547a54949
USA Country Map
This example displays a choropleth-style map of the 50 U.S. states, with each state filled in sky blue and separated by black borders. The visualization shows the geographic boundaries of the states, and hovering over a state highlights it in a warm orange color. The map is rendered as an SVG using React, with D3’s `d3.geoPath` and the `geoAlbersUsaTerritories` projection to convert TopoJSON data from the `us-atlas` package into drawable paths. The geometric data is loaded via `d3.json`, and state boundaries are computed using TopoJSON’s `feature` and `mesh` functions.
AI-generated description