fix(detail-chart): X-Achse zeigt jetzt Datum und Uhrzeit ohne Sekunden (z. B. 10.07.2025 14:32)

This commit is contained in:
ISA
2025-07-10 13:28:16 +02:00
parent a8c027bd6e
commit eae69d4392
6 changed files with 21 additions and 6 deletions

View File

@@ -43,7 +43,17 @@ export const DetailModal = ({
});
const reversedData = [...reduxData].reverse();
const labels = reversedData.map((e) => e.t);
const labels = reversedData.map((e) =>
new Date(e.t).toLocaleString("de-DE", {
day: "2-digit",
month: "2-digit",
year: "numeric",
hour: "2-digit",
minute: "2-digit",
second: undefined, // Sekunden ausschließen
})
);
const values = reversedData.map((e) => e.i);
const baseOptions = {