Skip to main content
100%

USA Map

✓ Published0🌍 Public
Ssaikrishnabussa
Last edited Jul 18, 2023
Created on Jul 18, 2023
Forked from HTML Starter

This interactive map of the United States uses a linear color scale to visualize state-level data values, with states shaded from light blue to dark blue based on their associated values. The visualization loads CSV data containing state IDs and their corresponding quantitative values, then merges this with US state boundaries from a GeoJSON source. Built with D3 v6 and React, the map renders as an SVG using the `d3.geoPath` generator to draw state outlines, while the `topojson.feature` API extracts state features from the geographic data. States without matching CSV entries appear in gray.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes