Grafiken nun halb so hoch wie breit
This commit is contained in:
@@ -52,6 +52,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.chart-wrapper {
|
.chart-wrapper {
|
||||||
height: 250px;
|
width: 100%;
|
||||||
|
aspect-ratio: 2 / 1;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user