🌍 Public
Viewing a saved revision (read-only)
fb5e2e2bb7954cb0a0ea5a188a58bce2
Centered US Map
This example displays a choropleth map of the United States, colored by state-level data from a TSV file, with state boundaries, a graticule, and a sphere outline for context. It loads GeoJSON topology from the US Atlas and uses the `d3.geoPath` projection to render the shapes as SVG paths. The color scheme is built with `d3.scaleThreshold` and `d3.schemeGreens`, while state fill values are assigned via a lookup table. The map is embedded in a React component using the `useData` hook to fetch and process the data.
AI-generated descriptionA US map showing states boundaries from US Atlas TopoJSON, polished for visual style, including graticules.