Fix memory/CPU chart fill: explicitly disable area fill for non-traffic charts

- Set fill: false for CPU, memory, and storage charts
- Prevents Chart.js from auto-filling when backgroundColor is set
- Only traffic charts should have filled area (fill: 'origin')
- Fixes visual bug where 20% memory usage appeared as 100% fill
This commit is contained in:
Graham McIntire 2026-01-17 10:28:52 -06:00
parent 5b62910bae
commit bdde71462a
No known key found for this signature in database

View file

@ -97,6 +97,8 @@ const SensorChart: SensorChartHook = {
// Add fill for traffic charts to create area effect
if (isTrafficChart) {
baseConfig.fill = 'origin' // Fill to the zero line
} else {
baseConfig.fill = false // No fill for CPU/memory/storage charts
}
return baseConfig