Private
Public Access
1
0

fix: adjust max value handling for memory chart to allow auto-scaling when invalid values are present

This commit is contained in:
2025-12-01 08:37:04 -05:00
parent a7eb23c59c
commit 67de31a61f

View File

@@ -4215,7 +4215,9 @@
colors: ['color-mix(in oklab, hsl(var(--color-base)) 60%, transparent)'],
},
},
max: maxMem,
// Only lock the max when we have a valid positive value;
// otherwise let ApexCharts auto-scale so the graph is never flat or broken.
max: (typeof maxMem === 'number' && maxMem > 0) ? maxMem : undefined,
min: 0,
},
colors: ['#00E396', '#159368'],