Fork of Choropleth with Histogram Brushing
This example visualizes August 2016 unemployment rates across U.S. counties, combining a choropleth map with a brushable histogram. Users can brush the histogram to filter the map, highlighting only counties whose rates fall within the selected interval while dimming others. The map uses `geoAlbersUsaTerritories` projection with `d3.geoPath`, and the color scale is a quantile scale with four custom colors. Brushing is implemented via `d3.brushX`, and the code leverages `d3-rosetta` for DOM manipulation and zooming, with data from the `@oabouhas/unemployment` package.
AI-generated descriptionAn adaptation of the D3 Choropleth Example that uses vanilla JavaScript and adds a brushable histogram. Shows Unemployment rate by U.S. county, August 2016. Modified to add zooming, leveraging utilities from d3-rosetta.