🌍 Public
Viewing a saved revision (read-only)
3f7d141b5c2a4892be15954a59968a7a
shivani map 2 Fork of Vanilla D3 Vibecoding Template
A U.S. state population choropleth map visualizes 2020 Census data using a log-scaled color gradient. The map renders states as SVG paths via `d3.geoPath` with an Albers USA projection, coloring each state through `d3.scaleLog` and the `d3.interpolateYlGnBu` interpolator. Hovering highlights state borders and shows a tooltip with the population value. The map also includes a gradient legend with log-spaced color stops. The code loads TopoJSON data from the us-atlas package and uses D3 v7.
AI-generated description