From c099231008e70462e50b2b07889d97d91b6c5abf Mon Sep 17 00:00:00 2001 From: ISA Date: Mon, 5 May 2025 15:39:47 +0200 Subject: [PATCH] fix: X-Achse im LoopMeasurementChart auf 'minute' gesetzt zur Stabilisierung der Zeitdarstellung MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- .../LoopMeasurementChart/LoopMeasurementChart.tsx | 11 ++++++++--- config/webVersion.ts | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopMeasurementChart.tsx b/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopMeasurementChart.tsx index 1ef4fe8..3a7fe6d 100644 --- a/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopMeasurementChart.tsx +++ b/components/main/kabelueberwachung/kue705FO/Charts/LoopMeasurementChart/LoopMeasurementChart.tsx @@ -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 }, diff --git a/config/webVersion.ts b/config/webVersion.ts index 5a7c08f..a9687a4 100644 --- a/config/webVersion.ts +++ b/config/webVersion.ts @@ -6,5 +6,5 @@ 2: Patch oder Hotfix (Bugfixes oder kleine Änderungen). */ -const webVersion = "1.6.364"; +const webVersion = "1.6.365"; export default webVersion;