🌍 Public
Viewing a saved revision (read-only)
c0cd5e4c616f4d9b8c3dd94ea91a7c37
map Fork of Vanilla D3 Vibecoding Template
Kkruthanreddy812@gmail.com
Last edited Apr 8, 2026
Created on Apr 8, 2026
This choropleth maps U.S. state populations using a log-scaled color gradient, with lighter blues representing smaller populations and darker teals for larger ones. It loads TopoJSON state boundaries via d3.json and topojson, projects them with d3.geoPath and the geoAlbersUsa projection, and colors each path by matching FIPS IDs to 2020 Census data. A linear gradient legend shows the log-spaced color scale, while native SVG title elements provide hover tooltips with formatted population values.
AI-generated description