Skip to content

Fix map: restore BAI choropleth colors and rich hover tooltips - #20

Merged
thedatavigilante merged 1 commit into
mainfrom
fix/map-bai-choropleth
Jul 9, 2026
Merged

Fix map: restore BAI choropleth colors and rich hover tooltips#20
thedatavigilante merged 1 commit into
mainfrom
fix/map-bai-choropleth

Conversation

@thedatavigilante

Copy link
Copy Markdown
Owner

Problem

PR #19 restored maps/dmv_counties.html from the wrong commit (05b4d1a) — the old unemployment-rate choropleth with simple tooltips. The intended map was the BAI choropleth.

What This Fixes

maps/dmv_counties.html — restored from d769a04 (the correct improved version):

  • County fill colors by BAI tier: crimson (< 0.85) → orange-red → orange → gold → green (> 1.10)
  • Rich hover tooltip per county: BAI score, Max UI Benefit, Weekly Housing Cost, Housing Gap, Wage Replacement Rate, WBI, Per-Worker SUI Gap
  • Fixed legend showing state BAI values (DC: 0.854 crimson, MD: 0.956 orange, VA: 1.024 gold)

index.html map section — updated to match:

  • Heading: "Geographic Distribution — Benefit Adequacy by County"
  • Callout explains the housing shortfall in concrete dollar terms
  • Card text explains what BAI means and what each hover field shows
  • Caption credits BLS CPI-U + HUD FMR sources
  • Investigative take walks through DC/MD/VA BAI values and what they mean

What Is NOT Changed

Chapter 5 (FEC political layer), Interactive Charts, Data Sources, and footer all remain fully restored from PR #19.


Generated by Claude Code

PR #19 restored the map from the wrong commit (05b4d1a — old unemployment-rate
choropleth with simple tooltips). The intended map was the BAI choropleth
version (d769a04) which has:

- County fill colors by BAI tier (crimson → orange → gold → green)
- Rich hover tooltip per county: BAI score, Max UI Benefit, Weekly Housing
  Cost, Housing Gap, Wage Replacement Rate, WBI, Per-Worker SUI Gap
- BAI legend with state values (DC: 0.854, MD: 0.956, VA: 1.024)

Also restores the BAI-framed map section in index.html: heading, callout,
card explanation, caption, and investigative take updated to match the map.

Co-Authored-By: Claude <noreply@anthropic.com>
@thedatavigilante
thedatavigilante merged commit d9a57bb into main Jul 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants