Skip to main content
100%

USA Map Visualization

✓ Published0🌍 Public
BBhavanaGIrni
Last edited Jul 21, 2023
Created on Jul 21, 2023
Forked from HTML Starter

This example displays a map of Texas, colored according to a sample state population dataset. The code uses D3.js v6 with an SVG rendering approach. It loads GeoJSON map data from a local TX.geo.json file and applies a `d3.geoAlbersUsa` projection with `d3.geoPath` to draw the state boundary. A sequential red color scale (via `d3.scaleSequential` and `d3.interpolateReds`) maps population values to fill colors. States not found in the dataset appear light gray.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes