From 795835043ae221d4e661ce45823162f86b6bba87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reinhard=20X=2E=20F=C3=BCrst?= Date: Thu, 7 May 2026 13:10:44 +0200 Subject: [PATCH] V 1.5.4 Regen-Chart: interaktive Legende zum Ein-/Ausschalten der Linien Co-Authored-By: Claude Sonnet 4.6 --- frontend/package.json | 2 +- frontend/src/components/WeatherDashboard.jsx | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/package.json b/frontend/package.json index 9558a25..431c9df 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "wetterstation-frontend", "private": true, - "version": "1.5.3", + "version": "1.5.4", "type": "module", "scripts": { "dev": "vite", diff --git a/frontend/src/components/WeatherDashboard.jsx b/frontend/src/components/WeatherDashboard.jsx index 52cd3f6..c709ff9 100644 --- a/frontend/src/components/WeatherDashboard.jsx +++ b/frontend/src/components/WeatherDashboard.jsx @@ -657,6 +657,13 @@ const WeatherDashboard = ({ data, currentData = [], rainData = [], timeRange = ' return { ...getCommonOptions(), + legend: { + enabled: series.length > 1, + align: 'right', + verticalAlign: 'top', + floating: true, + itemStyle: { fontSize: '11px', fontWeight: 'normal' } + }, yAxis: { ...getCommonOptions().yAxis, title: { text: null }