From bd3ee8db53015bc9422206bca520468b52fd1e30 Mon Sep 17 00:00:00 2001 From: "fredy.siswanto" Date: Wed, 26 Feb 2025 00:43:47 +0700 Subject: [PATCH] fix: update bar chart max value based on view type --- app/components/ui/chart.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/ui/chart.tsx b/app/components/ui/chart.tsx index c003539..e4bcfa3 100644 --- a/app/components/ui/chart.tsx +++ b/app/components/ui/chart.tsx @@ -142,7 +142,7 @@ export const UiChartBar = () => { scales: { y: { beginAtZero: true, - max: selectedYear ? 100 : 1500, + max: view == 'month' ? 100 : 1500, ticks: { stepSize: 25, },