fix: Linien Littwin blau und anderen grau für die Chart Linien

This commit is contained in:
ISA
2025-07-21 10:46:54 +02:00
parent c73b7ec252
commit 7cd0c41ec5
6 changed files with 21 additions and 12 deletions

View File

@@ -6,6 +6,6 @@ NEXT_PUBLIC_USE_MOCK_BACKEND_LOOP_START=false
NEXT_PUBLIC_EXPORT_STATIC=false NEXT_PUBLIC_EXPORT_STATIC=false
NEXT_PUBLIC_USE_CGI=false NEXT_PUBLIC_USE_CGI=false
# App-Versionsnummer # App-Versionsnummer
NEXT_PUBLIC_APP_VERSION=1.6.611 NEXT_PUBLIC_APP_VERSION=1.6.612
NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter) NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter)

View File

@@ -5,5 +5,5 @@ NEXT_PUBLIC_CPL_API_PATH=/CPL
NEXT_PUBLIC_EXPORT_STATIC=true NEXT_PUBLIC_EXPORT_STATIC=true
NEXT_PUBLIC_USE_CGI=true NEXT_PUBLIC_USE_CGI=true
# App-Versionsnummer # App-Versionsnummer
NEXT_PUBLIC_APP_VERSION=1.6.611 NEXT_PUBLIC_APP_VERSION=1.6.612
NEXT_PUBLIC_CPL_MODE=production NEXT_PUBLIC_CPL_MODE=production

View File

@@ -1,3 +1,12 @@
## [1.6.612] 2025-07-21
- feat(analogInputsChart): dynamische Linien je Zeitraum (m/i/a/g)
- Chart zeigt für 'Alle Messwerte' (DIA0) Messwert (m), Minimum (i), Maximum (a)
- Für 'Stündlich' und 'Täglich' (DIA1/DIA2) werden Minimum (i), Maximum (a), Durchschnitt (g) angezeigt
- Farben und Legende entsprechend
---
## [1.6.611] 2025-07-21 ## [1.6.611] 2025-07-21
- feat(analogInputsChart): dynamische Linien je Zeitraum (m/i/a/g) - feat(analogInputsChart): dynamische Linien je Zeitraum (m/i/a/g)

View File

@@ -200,7 +200,7 @@ export default function AnalogInputsChart() {
.filter((point) => typeof point.i === "number") .filter((point) => typeof point.i === "number")
.map((point) => ({ x: new Date(point.t), y: point.i })), .map((point) => ({ x: new Date(point.t), y: point.i })),
fill: false, fill: false,
borderColor: "#22c55e", // grün borderColor: "gray", // grau
borderWidth: 1, borderWidth: 1,
pointRadius: 0, pointRadius: 0,
borderDash: [4, 2], borderDash: [4, 2],
@@ -212,7 +212,7 @@ export default function AnalogInputsChart() {
.filter((point) => typeof point.a === "number") .filter((point) => typeof point.a === "number")
.map((point) => ({ x: new Date(point.t), y: point.a })), .map((point) => ({ x: new Date(point.t), y: point.a })),
fill: false, fill: false,
borderColor: "#ef4444", // rot borderColor: "gray", // rot
borderWidth: 1, borderWidth: 1,
pointRadius: 0, pointRadius: 0,
borderDash: [4, 2], borderDash: [4, 2],
@@ -226,7 +226,7 @@ export default function AnalogInputsChart() {
.filter((point) => typeof point.i === "number") .filter((point) => typeof point.i === "number")
.map((point) => ({ x: new Date(point.t), y: point.i })), .map((point) => ({ x: new Date(point.t), y: point.i })),
fill: false, fill: false,
borderColor: "#22c55e", // grün borderColor: "gray", // grün
borderWidth: 1, borderWidth: 1,
pointRadius: 0, pointRadius: 0,
borderDash: [4, 2], borderDash: [4, 2],
@@ -238,7 +238,7 @@ export default function AnalogInputsChart() {
.filter((point) => typeof point.a === "number") .filter((point) => typeof point.a === "number")
.map((point) => ({ x: new Date(point.t), y: point.a })), .map((point) => ({ x: new Date(point.t), y: point.a })),
fill: false, fill: false,
borderColor: "#ef4444", // rot borderColor: "gray", // rot
borderWidth: 1, borderWidth: 1,
pointRadius: 0, pointRadius: 0,
borderDash: [4, 2], borderDash: [4, 2],
@@ -250,10 +250,10 @@ export default function AnalogInputsChart() {
.filter((point) => typeof point.g === "number") .filter((point) => typeof point.g === "number")
.map((point) => ({ x: new Date(point.t), y: point.g })), .map((point) => ({ x: new Date(point.t), y: point.g })),
fill: false, fill: false,
borderColor: "#6366f1", // indigo borderColor: getColor("littwin-blue"),
borderWidth: 1, backgroundColor: "rgba(59,130,246,0.3)",
borderWidth: 2,
pointRadius: 0, pointRadius: 0,
borderDash: [2, 2],
tension: 0.1, tension: 0.1,
}, },
] ]

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "cpl-v4", "name": "cpl-v4",
"version": "1.6.611", "version": "1.6.612",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "cpl-v4", "name": "cpl-v4",
"version": "1.6.611", "version": "1.6.612",
"dependencies": { "dependencies": {
"@fontsource/roboto": "^5.1.0", "@fontsource/roboto": "^5.1.0",
"@headlessui/react": "^2.2.4", "@headlessui/react": "^2.2.4",

View File

@@ -1,6 +1,6 @@
{ {
"name": "cpl-v4", "name": "cpl-v4",
"version": "1.6.611", "version": "1.6.612",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev",