Skip to main content
100%

Zoomable County Choropleth

✓ Published1🌍 Public
CCurran Kelleher
Last edited Oct 9, 2025
Created on Aug 12, 2024
Forked from County Choropleth

This example visualizes unemployment rates across U.S. counties from August 2016 using a digital choropleth map. The map, rendered with `d3.geoPath` and a `geoAlbersUsaTerritories` projection, colors each county using a `scaleQuantile` with `interpolateInferno`. It supports interactive zooming and panning via `d3.zoom`, with `d3-rosetta` managing state and efficient DOM updates. County boundaries and state meshes come from the `us-atlas` TopoJSON dataset, while the unemployment figures are loaded from a local CSV file.

AI-generated description

An adaptation of the D3 Choropleth Example that uses vanilla JavaScript. Shows Unemployment rate by U.S. county, August 2016. Modified to add zooming, leveraging utilities from d3-rosetta.

MIT Licensed

Similar vizzes