From bdde71462a21587e1ad43c2dc793a1798684d0a3 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sat, 17 Jan 2026 10:28:52 -0600 Subject: [PATCH] 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 --- assets/js/app.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/js/app.ts b/assets/js/app.ts index ebdeeecf..f42bd115 100644 --- a/assets/js/app.ts +++ b/assets/js/app.ts @@ -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