Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

shivani map 2 Fork of Vanilla D3 Vibecoding Template

Public visualization

Viewing a saved revision (read-only)

3f7d141b5c2a4892be15954a59968a7a

shivani map 2 Fork of Vanilla D3 Vibecoding Template

0 stars1🌍 Public
Bbodushivani2601@gmail.com
Last edited Nov 9, 2025
Created on Nov 9, 2025

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