fix(detail-chart): X-Achse zeigt jetzt Datum und Uhrzeit ohne Sekunden (z. B. 10.07.2025 14:32)
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user