feat: X-Achse auf deutsches Datumsformat umgestellt (dd.MM)
This commit is contained in:
@@ -130,7 +130,7 @@ const LoopChartActionBar: React.FC = () => {
|
|||||||
{/* Slot Nummer links positioniert */}
|
{/* Slot Nummer links positioniert */}
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
<label className="text-sm font-semibold">
|
<label className="text-sm font-semibold">
|
||||||
Slot-Nr.: {slotNumber ?? "-"}
|
Slot {slotNumber ?? "-"}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ import {
|
|||||||
} from "chart.js";
|
} from "chart.js";
|
||||||
import zoomPlugin from "chartjs-plugin-zoom";
|
import zoomPlugin from "chartjs-plugin-zoom";
|
||||||
import "chartjs-adapter-date-fns";
|
import "chartjs-adapter-date-fns";
|
||||||
|
import { de } from "date-fns/locale";
|
||||||
|
|
||||||
ChartJS.register(
|
ChartJS.register(
|
||||||
LineElement,
|
LineElement,
|
||||||
@@ -54,14 +55,7 @@ const LoopMeasurementChart = () => {
|
|||||||
fill: false,
|
fill: false,
|
||||||
pointRadius: 0,
|
pointRadius: 0,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
label: "Messwert Maximum",
|
|
||||||
data: loopMeasurementCurveChartData.map((e) => e.a).reverse(),
|
|
||||||
borderColor: "lightgrey",
|
|
||||||
borderWidth: 1,
|
|
||||||
fill: false,
|
|
||||||
pointRadius: 0,
|
|
||||||
},
|
|
||||||
selectedMode === "DIA0"
|
selectedMode === "DIA0"
|
||||||
? {
|
? {
|
||||||
label: "Messwert",
|
label: "Messwert",
|
||||||
@@ -79,6 +73,14 @@ const LoopMeasurementChart = () => {
|
|||||||
fill: false,
|
fill: false,
|
||||||
pointRadius: 2,
|
pointRadius: 2,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: "Messwert Maximum",
|
||||||
|
data: loopMeasurementCurveChartData.map((e) => e.a).reverse(),
|
||||||
|
borderColor: "lightgrey",
|
||||||
|
borderWidth: 1,
|
||||||
|
fill: false,
|
||||||
|
pointRadius: 0,
|
||||||
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -115,11 +117,16 @@ const LoopMeasurementChart = () => {
|
|||||||
time: {
|
time: {
|
||||||
unit: "day",
|
unit: "day",
|
||||||
tooltipFormat: "dd.MM.yyyy HH:mm",
|
tooltipFormat: "dd.MM.yyyy HH:mm",
|
||||||
|
displayFormats: {
|
||||||
|
day: "dd.MM", // z. B. 02.04
|
||||||
|
},
|
||||||
},
|
},
|
||||||
title: {
|
title: {
|
||||||
display: true,
|
display: true,
|
||||||
text: "Zeit",
|
text: "Zeit",
|
||||||
},
|
},
|
||||||
|
// Hier Deutsch setzen:
|
||||||
|
locale: de,
|
||||||
},
|
},
|
||||||
y: {
|
y: {
|
||||||
title: {
|
title: {
|
||||||
|
|||||||
@@ -6,5 +6,5 @@
|
|||||||
2: Patch oder Hotfix (Bugfixes oder kleine Änderungen).
|
2: Patch oder Hotfix (Bugfixes oder kleine Änderungen).
|
||||||
|
|
||||||
*/
|
*/
|
||||||
const webVersion = "1.6.197";
|
const webVersion = "1.6.198";
|
||||||
export default webVersion;
|
export default webVersion;
|
||||||
|
|||||||
Reference in New Issue
Block a user