Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

state testing

Public visualization

state testing

0 stars0🌍 Public
Hhunsingeruk@gmail.com
Last edited Oct 25, 2024
Created on Oct 25, 2024

This example displays a map of the United States with each state rendered as a tan SVG path with grey borders on a blue ocean background. The visualization loads US Atlas TopoJSON data and converts it to GeoJSON features using `topojson.feature`, then projects the coordinates with `d3.geoAlbersUsa` and `d3.geoPath` within a React component. Hovering a state changes its fill color to dark green. The code references commented-out scales and data joins for potential color mapping, though the active version only renders the base geography.

AI-generated description

A program that shows a map of the United States of America : 10m topo json data.

Data: US Atlas States 10m - TopoJson.

Comments

Sign in to join the discussion.

MIT Licensed