Grafiken nun halb so hoch wie breit

This commit is contained in:
rxf
2026-02-08 20:08:00 +01:00
parent 2fc4bd9db6
commit ea0b8dd8f9
2 changed files with 7 additions and 6 deletions

View File

@@ -52,6 +52,7 @@
} }
.chart-wrapper { .chart-wrapper {
height: 250px; width: 100%;
aspect-ratio: 2 / 1;
position: relative; position: relative;
} }

View File

@@ -27,7 +27,7 @@ const WeatherDashboard = ({ data }) => {
// Gemeinsame Chart-Optionen // Gemeinsame Chart-Optionen
const getCommonOptions = () => ({ const getCommonOptions = () => ({
chart: { chart: {
height: 250, height: '50%',
animation: false, animation: false,
backgroundColor: 'transparent' backgroundColor: 'transparent'
}, },
@@ -108,8 +108,8 @@ const WeatherDashboard = ({ data }) => {
[1, 'rgba(255, 99, 132, 0.1)'] [1, 'rgba(255, 99, 132, 0.1)']
] ]
}, },
type: 'area', type: 'areaspline',
threshold: yMin, threshold: null,
tooltip: { tooltip: {
valueSuffix: ' °C' valueSuffix: ' °C'
} }
@@ -271,11 +271,11 @@ const WeatherDashboard = ({ data }) => {
scatter: { scatter: {
marker: { marker: {
enabled: true, enabled: true,
radius: 4, radius: 2,
states: { states: {
hover: { hover: {
enabled: true, enabled: true,
radius: 6 radius: 3
} }
} }
} }