Skip to main content
100%

Centered US Map

✓ Published1🌍 Public
Yyuzhang21
Last edited Sep 26, 2019
Created on Sep 25, 2019
Forked from 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 description

A US map showing states boundaries from US Atlas TopoJSON, polished for visual style, including graticules.

MIT Licensed

Similar vizzes