V 1.5.3 Wind: die Boe heller und im Hintergrund
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "wetterstation-frontend",
|
"name": "wetterstation-frontend",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.5.2",
|
"version": "1.5.3",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@@ -688,15 +688,13 @@ const WeatherDashboard = ({ data, currentData = [], rainData = [], timeRange = '
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const series = hideGusts
|
const gustSeries = {
|
||||||
? [windSpeedSeries]
|
|
||||||
: [windSpeedSeries, {
|
|
||||||
name: 'Böe' + windGustSuffix,
|
name: 'Böe' + windGustSuffix,
|
||||||
data: withGaps(sortedData
|
data: withGaps(sortedData
|
||||||
.filter(item => item.wind_gust != null)
|
.filter(item => item.wind_gust != null)
|
||||||
.map(item => [new Date(item.datetime).getTime(), item.wind_gust])),
|
.map(item => [new Date(item.datetime).getTime(), item.wind_gust])),
|
||||||
color: 'rgb(255, 100, 0)',
|
color: 'rgba(255, 160, 80, 0.6)',
|
||||||
fillColor: 'rgba(255, 100, 0, 0.15)',
|
fillColor: 'rgba(255, 160, 80, 0.08)',
|
||||||
type: 'area',
|
type: 'area',
|
||||||
lineWidth: 1.5,
|
lineWidth: 1.5,
|
||||||
connectNulls: false,
|
connectNulls: false,
|
||||||
@@ -706,7 +704,10 @@ const WeatherDashboard = ({ data, currentData = [], rainData = [], timeRange = '
|
|||||||
valueDecimals: 1,
|
valueDecimals: 1,
|
||||||
valueSuffix: ' km/h'
|
valueSuffix: ' km/h'
|
||||||
}
|
}
|
||||||
}]
|
}
|
||||||
|
const series = hideGusts
|
||||||
|
? [windSpeedSeries]
|
||||||
|
: [gustSeries, windSpeedSeries]
|
||||||
return {
|
return {
|
||||||
...getCommonOptions(),
|
...getCommonOptions(),
|
||||||
legend: {
|
legend: {
|
||||||
|
|||||||
Reference in New Issue
Block a user