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 {
height: 250px;
width: 100%;
aspect-ratio: 2 / 1;
position: relative;
}

View File

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