Skip to main content
100%

Pollution in US with counties by React and d3

✓ Published0🌍 Public
AAbdul Salam Almadani
Last edited Oct 20, 2020
Created on Oct 20, 2020

This choropleth map displays PM2.5 air pollution concentrations across US counties for the year 2000, with counties lacking data rendered in grey. Built with React and d3.v5, the visualization uses `d3.geoIdentity` and `d3.geoPath` to project county boundaries from a TopoJSON atlas, while a `d3.scaleSequential` with an `interpolateYlGnBu` color scheme encodes pollution values. The data originates from a CSV file of county-level PM2.5 measurements, filtered through a custom React hook and passed as a Map to the SVG marks component.

AI-generated description

An early version of the final project.

  • Marked area with no data record by grey color.
  • Drew a wireframe of the US map with counties.
  • Filled the wireframe by the PM2.5 concentration data in 2000.

Data of PM2.5 concentration from PM2.5 by County.

County boundries from US county altas.

Adapted and extended from Mass School District Boundaries

Inspired by Choropleth.

MIT Licensed

Similar vizzes