fix(reports): one colour per item in the comparison chart (yearly too) #118
No reviewers
Labels
No labels
bug
claude-failed
claude-pr
claude-queue
claude-working
epic
feature
interactive
portal
triaged
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: shad0w/pelagia-portal#118
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/reports-chart-colors"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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;
tscclean.🤖 Generated with Claude Code