From 73fb674c8634156ff31b55463449698895611e34 Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Fri, 12 Sep 2025 22:21:22 +0200 Subject: [PATCH] Enhance cospend monthly expenses chart with improved UX - Add monthly total labels above each bar showing cumulative expense amounts - Improve chart styling: white labels, larger fonts, clean flat tooltip design - Hide Y-axis ticks and grid lines for cleaner appearance - Capitalize category names in legend and tooltips - Show only hovered category in tooltip instead of all categories - Trim empty months from start of data for users with limited history - Create responsive layout: balance and chart side-by-side on wide screens - Increase max width to 1400px for dashboard while keeping recent activity at 800px - Filter out settlements from monthly expenses view --- src/lib/components/BarChart.svelte | 162 +++++++++++++----- .../api/cospend/monthly-expenses/+server.ts | 16 +- src/routes/cospend/+page.svelte | 86 +++++++--- 3 files changed, 190 insertions(+), 74 deletions(-) diff --git a/src/lib/components/BarChart.svelte b/src/lib/components/BarChart.svelte index 9a4b1b8e..aa1d0301 100644 --- a/src/lib/components/BarChart.svelte +++ b/src/lib/components/BarChart.svelte @@ -1,21 +1,21 @@