mirror of
https://github.com/henrygd/beszel.git
synced 2026-04-21 20:21:49 +02:00
ui: fix temperature chart filtering
This commit is contained in:
@@ -104,7 +104,7 @@ export default function LineChartDefault({
|
|||||||
isAnimationActive={false}
|
isAnimationActive={false}
|
||||||
// stackId={dataPoint.stackId}
|
// stackId={dataPoint.stackId}
|
||||||
order={dataPoint.order || i}
|
order={dataPoint.order || i}
|
||||||
// activeDot={dataPoint.activeDot ?? true}
|
activeDot={dataPoint.activeDot ?? true}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -120,7 +120,8 @@ export function TemperatureChart({
|
|||||||
label: key,
|
label: key,
|
||||||
dataKey: dataKeys[key],
|
dataKey: dataKeys[key],
|
||||||
color: colorMap[key],
|
color: colorMap[key],
|
||||||
opacity: strokeOpacity,
|
strokeOpacity,
|
||||||
|
activeDot: !filtered,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}, [sortedKeys, filter, dataKeys, colorMap])
|
}, [sortedKeys, filter, dataKeys, colorMap])
|
||||||
@@ -134,7 +135,7 @@ export function TemperatureChart({
|
|||||||
// label: `Test ${++i}`,
|
// label: `Test ${++i}`,
|
||||||
// dataKey: () => 0,
|
// dataKey: () => 0,
|
||||||
// color: "red",
|
// color: "red",
|
||||||
// opacity: 1,
|
// strokeOpacity: 1,
|
||||||
// })
|
// })
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
@@ -202,6 +203,7 @@ export function TemperatureChart({
|
|||||||
return `${decimalString(value)} ${unit}`
|
return `${decimalString(value)} ${unit}`
|
||||||
}}
|
}}
|
||||||
dataPoints={dataPoints}
|
dataPoints={dataPoints}
|
||||||
|
filter={filter}
|
||||||
></LineChartDefault>
|
></LineChartDefault>
|
||||||
</ChartCard>
|
</ChartCard>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user