feat: in System 5 Volt DIA0, DIA1 und DIA2 in dropdown anzeigen

This commit is contained in:
ISA
2025-07-03 11:13:39 +02:00
parent 09bc64e771
commit 3e7d702ab7
10 changed files with 93 additions and 24 deletions

View File

@@ -35,8 +35,8 @@ export type HistoryEntry = {
type Props = {
history: HistoryEntry[];
zeitraum: "DIA0" | "DIA1" | "DIA2";
};
export const SystemCharts = ({ history }: Props) => {
const labels = history.map((h) => new Date(h.time).toLocaleTimeString());
const formatValue = (v: number) => v.toFixed(2);