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