Skip to main content
100%

usa map

✓ Published4🌍 Public
SSai Hemanth Babu Sunkari
Last edited Apr 3, 2024
Created on Apr 2, 2024
Forked from HTML Starter

This example displays a choropleth-style map of US states, with each state filled by a categorical color from `d3.scaleOrdinal` and `schemeCategory10`. It uses `d3.geoPath` with a `geoAlbersUsa` projection to render the SVG paths, and the state boundaries are loaded from a TopoJSON file via `us-atlas`. Hovering a state changes its fill to yellow, while a red stroke outlines all boundaries. The code processes the TopoJSON with `topojson.feature` and appends a `<title>` element for each state name.

AI-generated description
MIT Licensed

Similar vizzes