fix: update bar chart max value based on view type

This commit is contained in:
fredy.siswanto 2025-02-26 00:43:47 +07:00
parent 6a00b9207e
commit bd3ee8db53

View File

@ -142,7 +142,7 @@ export const UiChartBar = () => {
scales: { scales: {
y: { y: {
beginAtZero: true, beginAtZero: true,
max: selectedYear ? 100 : 1500, max: view == 'month' ? 100 : 1500,
ticks: { ticks: {
stepSize: 25, stepSize: 25,
}, },