From e1192beca38e5c4faf8582758af0f6a67acda45e Mon Sep 17 00:00:00 2001 From: le king fu Date: Sat, 7 Mar 2026 09:06:40 -0500 Subject: [PATCH] Fix missing categories and gray text in category reports Increase category over time limit from 8 to 50 so all categories appear. Fix category name visibility: use foreground color for bar chart Y-axis labels and chart legend text instead of muted/inherited colors. Closes #13 Co-Authored-By: Claude Opus 4.6 --- src/components/reports/CategoryBarChart.tsx | 2 +- src/components/reports/CategoryOverTimeChart.tsx | 1 + src/services/reportService.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/reports/CategoryBarChart.tsx b/src/components/reports/CategoryBarChart.tsx index 2b7da86..9e01f89 100644 --- a/src/components/reports/CategoryBarChart.tsx +++ b/src/components/reports/CategoryBarChart.tsx @@ -97,7 +97,7 @@ export default function CategoryBarChart({ type="category" dataKey="category_name" width={120} - tick={{ fill: "var(--muted-foreground)", fontSize: 12 }} + tick={{ fill: "var(--foreground)", fontSize: 12 }} stroke="var(--border)" /> setHoveredCategory(null)} wrapperStyle={{ cursor: "pointer" }} + formatter={(value) => {value}} /> {categoryEntries.map((c) => ( { const db = await getDb();