Skip to main content
100%

[A9] US Population 2020(Choropleth Map)

✓ Published0🌍 Public
Cctan13@dons.usfca.edu
Last edited Apr 2, 2024
Created on Apr 2, 2024
Forked from HTML Starter

This choropleth map displays the population of each US state for 2020, using a green color scale with thresholds that categorize states from under 50,000 to over 30 million residents. The map is rendered as an SVG using the D3.js v7 library, with state boundaries drawn via `d3.geoPath()` and a Mercator projection centered on the continental US. Population data is loaded from an external CSV and joined to GeoJSON state features by area name, enabling tooltips that show each state's population on hover. The map employs D3's threshold scale and sequential color scheme to visually encode population density.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes