Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of usa map

Public visualization

Fork of usa map

0 stars0🌍 Public
Rreddysushma994@gmail.com
Last edited Apr 2, 2024
Created on Apr 2, 2024
Forked from usa map

This example displays a map of US counties, colored with a categorical color scale and outlined in red. It renders an SVG using a TopoJSON file from the `us-atlas` package, projecting the features with a `geoAlbersUsa` projection. The code employs d3's `geoPath` to generate the map paths and `scaleOrdinal` for coloring each county by name. Hovering turns a county yellow, and the data source is a remote JSON file loaded via d3's `json` loader.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed