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:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user