Skip to content

Commit c1c1cd1

Browse files
committed
ui: fix temperature chart filtering
1 parent cd9ea51 commit c1c1cd1

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

internal/site/src/components/charts/line-chart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export default function LineChartDefault({
104104
isAnimationActive={false}
105105
// stackId={dataPoint.stackId}
106106
order={dataPoint.order || i}
107-
// activeDot={dataPoint.activeDot ?? true}
107+
activeDot={dataPoint.activeDot ?? true}
108108
/>
109109
)
110110
})

internal/site/src/components/routes/system/charts/sensor-charts.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ export function TemperatureChart({
120120
label: key,
121121
dataKey: dataKeys[key],
122122
color: colorMap[key],
123-
opacity: strokeOpacity,
123+
strokeOpacity,
124+
activeDot: !filtered,
124125
}
125126
})
126127
}, [sortedKeys, filter, dataKeys, colorMap])
@@ -134,7 +135,7 @@ export function TemperatureChart({
134135
// label: `Test ${++i}`,
135136
// dataKey: () => 0,
136137
// color: "red",
137-
// opacity: 1,
138+
// strokeOpacity: 1,
138139
// })
139140
// }
140141
// }
@@ -202,6 +203,7 @@ export function TemperatureChart({
202203
return `${decimalString(value)} ${unit}`
203204
}}
204205
dataPoints={dataPoints}
206+
filter={filter}
205207
></LineChartDefault>
206208
</ChartCard>
207209
</div>

0 commit comments

Comments
 (0)