fix: adjust max value handling for memory chart to allow auto-scaling when invalid values are present
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user