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 }