fix(reports): one colour per item in the comparison chart (yearly too) #118

Merged
shad0w merged 1 commit from fix/reports-chart-colors into master 2026-06-24 06:18:13 +00:00
Owner

Follow-up to #117 (which is merged) — this fix landed just after the merge, so it needs its own PR.

Problem

In the spend comparison charts, yearly mode coloured the bars by financial year (one colour per FY, items on the x-axis), so multiple cost centres / accounting codes in the same yearly graph shared colours. The monthly/weekly line charts already coloured one line per item.

Fix

Unify all three granularities so the chart series are always the items, each with its own distinct colour — the x-axis is months / weeks / financial years. Yearly becomes grouped bars per item (not per year), so every cost centre / accounting code keeps a unique colour and the legend lists the items.

Only the two index comparison charts changed; tsc clean.

🤖 Generated with Claude Code

Follow-up to #117 (which is merged) — this fix landed just after the merge, so it needs its own PR. ## Problem In the spend comparison charts, **yearly** mode coloured the bars by *financial year* (one colour per FY, items on the x-axis), so multiple cost centres / accounting codes in the same yearly graph shared colours. The monthly/weekly line charts already coloured one line per item. ## Fix Unify all three granularities so the chart **series are always the items**, each with its own distinct colour — the x-axis is months / weeks / financial years. Yearly becomes grouped bars **per item** (not per year), so every cost centre / accounting code keeps a unique colour and the legend lists the items. Only the two index comparison charts changed; `tsc` clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
shad0w added 1 commit 2026-06-24 06:17:38 +00:00
fix(reports): colour the comparison chart per item in yearly mode too
Some checks failed
PR checks / checks (pull_request) Failing after 4s
PR checks / integration (pull_request) Successful in 30s
0e9d06fe71
The monthly/weekly comparison already drew one colour per item (series =
items). Yearly mode instead coloured by financial year (series = FYs, items on
the x-axis), so multiple cost centres / accounting codes in the same yearly
graph shared colours. Unify all three granularities to series = items: the
x-axis is months / weeks / FYs and each item keeps its own distinct colour
(yearly becomes grouped bars per item rather than per year).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
shad0w merged commit ee8313e10c into master 2026-06-24 06:18:13 +00:00
Sign in to join this conversation.
No description provided.