From c1c1cd1bcbeb234c5735bb02d527ff76b60e7c49 Mon Sep 17 00:00:00 2001 From: henrygd Date: Mon, 20 Apr 2026 20:45:16 -0400 Subject: [PATCH] ui: fix temperature chart filtering --- internal/site/src/components/charts/line-chart.tsx | 2 +- .../src/components/routes/system/charts/sensor-charts.tsx | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/internal/site/src/components/charts/line-chart.tsx b/internal/site/src/components/charts/line-chart.tsx index b4d2d9e1..f60a341b 100644 --- a/internal/site/src/components/charts/line-chart.tsx +++ b/internal/site/src/components/charts/line-chart.tsx @@ -104,7 +104,7 @@ export default function LineChartDefault({ isAnimationActive={false} // stackId={dataPoint.stackId} order={dataPoint.order || i} - // activeDot={dataPoint.activeDot ?? true} + activeDot={dataPoint.activeDot ?? true} /> ) }) diff --git a/internal/site/src/components/routes/system/charts/sensor-charts.tsx b/internal/site/src/components/routes/system/charts/sensor-charts.tsx index caabde30..ec6ad281 100644 --- a/internal/site/src/components/routes/system/charts/sensor-charts.tsx +++ b/internal/site/src/components/routes/system/charts/sensor-charts.tsx @@ -120,7 +120,8 @@ export function TemperatureChart({ label: key, dataKey: dataKeys[key], color: colorMap[key], - opacity: strokeOpacity, + strokeOpacity, + activeDot: !filtered, } }) }, [sortedKeys, filter, dataKeys, colorMap]) @@ -134,7 +135,7 @@ export function TemperatureChart({ // label: `Test ${++i}`, // dataKey: () => 0, // color: "red", - // opacity: 1, + // strokeOpacity: 1, // }) // } // } @@ -202,6 +203,7 @@ export function TemperatureChart({ return `${decimalString(value)} ${unit}` }} dataPoints={dataPoints} + filter={filter} >