From c5d61d1d116d9a3d6003b6df4d5f5acc179a5264 Mon Sep 17 00:00:00 2001 From: Nils Stinnesbeck Date: Sat, 17 Oct 2026 22:25:35 +0200 Subject: [PATCH] Grafana: line charts in MG red The tiles, bar charts and route map were already MG red; the line charts still used Grafana's default palette. Now the first line of a pair is MG red (#E0424C) and the second light red (#FF9A9E), as in the app; the tyre chart adds deep (#A8323A) and pale (#FFD0D2) red. Covers SoC/range, power/speed, voltage/current, tyre pressures and the charging curve. Checked by rendering the Live and Charging dashboards. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01QLJfZQZeAKAwSqViTmLzki --- k8s/grafana/dashboards/charging.json | 30 ++++++ k8s/grafana/dashboards/live.json | 153 ++++++++++++++++++++++++++- 2 files changed, 182 insertions(+), 1 deletion(-) diff --git a/k8s/grafana/dashboards/charging.json b/k8s/grafana/dashboards/charging.json index 9550abd..30590d1 100644 --- a/k8s/grafana/dashboards/charging.json +++ b/k8s/grafana/dashboards/charging.json @@ -499,6 +499,36 @@ "value": "right" } ] + }, + { + "matcher": { + "id": "byName", + "options": "powerKw" + }, + "properties": [ + { + "id": "color", + "value": { + "mode": "fixed", + "fixedColor": "#E0424C" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "socPercent" + }, + "properties": [ + { + "id": "color", + "value": { + "mode": "fixed", + "fixedColor": "#FF9A9E" + } + } + ] } ] }, diff --git a/k8s/grafana/dashboards/live.json b/k8s/grafana/dashboards/live.json index 73605d9..3a93f6d 100644 --- a/k8s/grafana/dashboards/live.json +++ b/k8s/grafana/dashboards/live.json @@ -387,6 +387,36 @@ "value": "right" } ] + }, + { + "matcher": { + "id": "byName", + "options": "soc" + }, + "properties": [ + { + "id": "color", + "value": { + "mode": "fixed", + "fixedColor": "#E0424C" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "est_battery_range" + }, + "properties": [ + { + "id": "color", + "value": { + "mode": "fixed", + "fixedColor": "#FF9A9E" + } + } + ] } ] }, @@ -450,6 +480,36 @@ "value": "right" } ] + }, + { + "matcher": { + "id": "byName", + "options": "power" + }, + "properties": [ + { + "id": "color", + "value": { + "mode": "fixed", + "fixedColor": "#E0424C" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "speed" + }, + "properties": [ + { + "id": "color", + "value": { + "mode": "fixed", + "fixedColor": "#FF9A9E" + } + } + ] } ] }, @@ -583,6 +643,36 @@ "value": "right" } ] + }, + { + "matcher": { + "id": "byName", + "options": "voltage" + }, + "properties": [ + { + "id": "color", + "value": { + "mode": "fixed", + "fixedColor": "#E0424C" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "current" + }, + "properties": [ + { + "id": "color", + "value": { + "mode": "fixed", + "fixedColor": "#FF9A9E" + } + } + ] } ] }, @@ -631,7 +721,68 @@ "showPoints": "never" } }, - "overrides": [] + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "tire_pressure_fl" + }, + "properties": [ + { + "id": "color", + "value": { + "mode": "fixed", + "fixedColor": "#E0424C" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "tire_pressure_fr" + }, + "properties": [ + { + "id": "color", + "value": { + "mode": "fixed", + "fixedColor": "#FF9A9E" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "tire_pressure_rl" + }, + "properties": [ + { + "id": "color", + "value": { + "mode": "fixed", + "fixedColor": "#A8323A" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "tire_pressure_rr" + }, + "properties": [ + { + "id": "color", + "value": { + "mode": "fixed", + "fixedColor": "#FFD0D2" + } + } + ] + } + ] }, "options": { "legend": {