Add: SERVICE JSON Files

This commit is contained in:
ISA
2025-06-25 15:26:00 +02:00
parent 53c2a02224
commit 845c2dd658
23 changed files with 242 additions and 53 deletions

View File

@@ -36,6 +36,9 @@ export default function AnalogInputsChart({
}: {
selectedId: number | null;
}) {
const selectedInput = useSelector(
(state: RootState) => state.selectedAnalogInput
);
const zoomEnabled =
process.env.NEXT_PUBLIC_FEATURE_MESSWERTANZEIGE_EINGANG === "true";
const dispatch = useDispatch<AppDispatch>();
@@ -82,7 +85,9 @@ export default function AnalogInputsChart({
const chartData = {
datasets: [
{
label: `Messkurve Messwerteingang ${selectedId}`,
label: `Messkurve ${selectedInput?.label ?? "Eingang"} (${
selectedInput?.unit ?? ""
})`,
data: inputData.map((point: any) => ({
x: point.t,
y: point.m,
@@ -145,7 +150,7 @@ export default function AnalogInputsChart({
y: {
title: {
display: true,
text: "Messwert",
text: `Messwert (${selectedInput?.unit ?? ""})`,
},
},
},