Fork of United States Educational Attainment - Choropleth Map
✓ Published0🌍 Public
DDonald Bagwell
Last edited Feb 14, 2024
Created on Feb 14, 2024
This choropleth map displays the percentage of adults aged 25 and older with a bachelor's degree or higher across U.S. counties, using a purple sequential color scale and gray for missing data. Built with React and D3 v5, it renders county boundaries via `geoPath` and TopoJSON, with a threshold scale mapping education values to colors. Hovering reveals a tooltip showing the county name, state, and percentage. A legend below the map uses `scaleThreshold` and `invertExtent` to display color breaks, while data comes from FreeCodeCamp's education and county JSON files.
AI-generated descriptionUnited States Educational Attainment - Choropleth Map
:camera: Preview:
<img src="https://projects-preview.s3.eu-west-3.amazonaws.com/Heat+Map+mbdev.webp" />:hammer: Module bundler: Rollupjs
:page_with_curl: US Education Data US County Data
:pushpin: Live Demo
MIT Licensed