fix: X-Achse im LoopMeasurementChart auf 'minute' gesetzt zur Stabilisierung der Zeitdarstellung

- Verhindert Überlastung des Charts bei zu vielen Datenpunkten
- Tooltip-Format auf 'dd.MM.yyyy HH:mm:ss' gesetzt
- DisplayFormats für Minuten, Stunden und Tage angepasst
- X-Achsen-Titel auf „Zeit“ gesetzt
This commit is contained in:
ISA
2025-05-05 15:39:47 +02:00
parent f85118715e
commit c099231008
2 changed files with 9 additions and 4 deletions

View File

@@ -159,13 +159,18 @@ const LoopMeasurementChart = () => {
x: {
type: "time" as const,
time: {
unit: "day" as const,
tooltipFormat: "dd.MM.yyyy HH:mm",
displayFormats: { day: "dd.MM" },
unit: "minute",
tooltipFormat: "dd.MM.yyyy HH:mm:ss",
displayFormats: {
minute: "HH:mm",
hour: "HH:mm",
day: "dd.MM.",
},
locale: de,
},
title: { display: true, text: "Zeit" },
},
y: {
title: { display: true, text: unit },
ticks: { precision: 0 },