Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Country map

Public visualization

Viewing a saved revision (read-only)

3e3e1ec52fff46ba86e11921d1e41ee3

Fork of Country map

0 stars0🌍 Public
Ppriyankachary1701@gmail.com
Last edited Nov 2, 2025
Created on Nov 2, 2025
Forked from HTML Starter

This choropleth map colors US states by average annual sunshine hours, using a yellow-green sequential scale. The data is stored in a JavaScript Map for approximately 20 states, with missing states rendered pale green. Built with D3 v7 and topojson-client, it uses `d3.geoAlbersUsa()` for projection, `d3.geoPath()` for rendering state boundaries, and a custom tooltip on mouse events. The legend is drawn inside the SVG, and state data comes from the us-atlas states-10m GeoJSON.

AI-generated description