style: Messwertkurven Legende und Liniern style angepasst
This commit is contained in:
@@ -199,15 +199,15 @@ export default function AnalogInputsChart({
|
||||
? zeitraum === "DIA0"
|
||||
? [
|
||||
{
|
||||
label: "Minimum ", // (i)
|
||||
label: "Messwert Minimum ", // (i)
|
||||
data: filteredData
|
||||
.filter((p) => typeof p.i === "number")
|
||||
.map((p) => ({ x: new Date(p.t), y: p.i })),
|
||||
borderColor: "gray",
|
||||
borderDash: [4, 2],
|
||||
borderWidth: 1,
|
||||
pointRadius: 0,
|
||||
tension: 0.1,
|
||||
order: 1,
|
||||
},
|
||||
{
|
||||
label: selectedAnalogInput?.label
|
||||
@@ -222,30 +222,31 @@ export default function AnalogInputsChart({
|
||||
borderWidth: 2,
|
||||
pointRadius: 0,
|
||||
tension: 0.1,
|
||||
order: 2,
|
||||
},
|
||||
{
|
||||
label: "Maximum ", // (a)
|
||||
label: "Messwert Maximum ", // (a)
|
||||
data: filteredData
|
||||
.filter((p) => typeof p.a === "number")
|
||||
.map((p) => ({ x: new Date(p.t), y: p.a })),
|
||||
borderColor: "gray",
|
||||
borderDash: [4, 2],
|
||||
borderWidth: 1,
|
||||
pointRadius: 0,
|
||||
tension: 0.1,
|
||||
order: 3,
|
||||
},
|
||||
]
|
||||
: [
|
||||
{
|
||||
label: "Minimum", // (i)
|
||||
label: "Messwert Minimum", // (i)
|
||||
data: filteredData
|
||||
.filter((p) => typeof p.i === "number")
|
||||
.map((p) => ({ x: new Date(p.t), y: p.i })),
|
||||
borderColor: "gray",
|
||||
borderDash: [4, 2],
|
||||
borderWidth: 1,
|
||||
pointRadius: 0,
|
||||
tension: 0.1,
|
||||
order: 1,
|
||||
},
|
||||
{
|
||||
label: "Durchschnitt", // (g)
|
||||
@@ -257,17 +258,18 @@ export default function AnalogInputsChart({
|
||||
borderWidth: 2,
|
||||
pointRadius: 0,
|
||||
tension: 0.1,
|
||||
order: 2,
|
||||
},
|
||||
{
|
||||
label: "Maximum", // (a)
|
||||
label: "Messwert Maximum", // (a)
|
||||
data: filteredData
|
||||
.filter((p) => typeof p.a === "number")
|
||||
.map((p) => ({ x: new Date(p.t), y: p.a })),
|
||||
borderColor: "gray",
|
||||
borderDash: [4, 2],
|
||||
borderWidth: 1,
|
||||
pointRadius: 0,
|
||||
tension: 0.1,
|
||||
order: 3,
|
||||
},
|
||||
]
|
||||
: [],
|
||||
|
||||
Reference in New Issue
Block a user