Skip to main content
100%

County Choropleth

✓ Published3🌍 Public
CCurran Kelleher
Last edited Aug 14, 2024
Created on Aug 12, 2024

This visualization is a county-level choropleth map of the unemployment rate across the United States, using data from August 2016. The map is rendered with an Albers equal-area projection that includes all US territories, drawing county boundaries with `d3.geoPath` and colored using a quantile scale with the Inferno color palette via `d3.scaleQuantile` and `d3.interpolateInferno`. Counties with missing data appear red, while state boundaries are stroked in white. The implementation uses `d3.select` and `.join` for idempotent rendering, with `getUSAtlasData` fetching GeoJSON from the `us-atlas` package and `d3.json` for data loading.

AI-generated description

An adaptation of the D3 Choropleth Example that uses vanilla JavaScript. Shows Unemployment rate by U.S. county, August 2016.

Some key differences from the original implementation include:

  • Uses unidirectional data flow and idempotent rendering
  • Supports hot reloading
  • Uses the geo-albers-usa-territories projection, which includes all US territories
  • Colors missing data red.
MIT Licensed

Similar vizzes