Issue 651
feat: "How the bill changed": tax rates by body over the years, drawn from the stored tax years
Back to our planOpen
enhancementfrontendcmsvisualizationpriority: low
Size: S
Depends on: #594 (the taxYears collection and its calculation), #639 and #640 (the series kind, stacked columns). #647 decides which old years are confirmed.
Problem
In plain words: a neighbor wants to see how the parts of the bill moved over the last five or six years: schools, City, County, college and the credit. They should see one bar per year, and it should stay up to date when an editor adds next year's rates, without anyone redrawing a chart.
The owner (Amine, 2026-11-03, Claude Code session, text) asked for bars over the years.
Today (checked 2026-11-03):
- #594's block shows the newest year only, and #595 compares two years. Nothing draws every stored year.
- Chart 2's block takes rows typed by hand, so a chart typed into a post goes stale every December.
- The history in our notes (
tax_rates_by_year.csv): December 2022 to 2025 bills are confirmed in one City table each. December 2020 and 2021 areestimate(column headers unreadable).
Proposed fix
- An option on #594's block, "Show the years", or a second small block, decided in the PR. It builds a
ChartSpec(series, stacked columns, unitmills) from every publishedtaxYearsdocument, oldest to newest, in the module's domain code.platform/never imports it. - Years that aren't confirmed are drawn with #639's pattern cue and listed in the table as
estimate, or left out. The editor chooses per block, and the default is to leave them out. - The table: years as rows, bodies as columns, plus the net. The sentence under it says "A rate is not a bill: a home's assessed value changes too".
Native first, one line per step:
- Native: a Payload Local API query and the existing block.
- Official plugins: none.
- Open source: visx through #639's adapter, already added.
- Our code: a mapper from tax years to a
ChartSpec, and its test.
Acceptance criteria
- Not done: Adding a published year in Admin adds a column with no other change (test with three years).
- Not done: An
estimateyear is left out by default, and shown with its cue when chosen. The table labels it. - Not done: Six widths, light and dark mode. axe passes.
Area
frontend, cms, visualization
Priority
low
Generated by Claude Code, opens in a new tab