V 1.5.5 fix: Stundenzahl im 7d-Tooltip entfernt

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-08 17:16:28 +02:00
parent a07a2f54a0
commit eb8f609876
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "wetterstation-frontend", "name": "wetterstation-frontend",
"private": true, "private": true,
"version": "1.5.4", "version": "1.5.5",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
+2 -2
View File
@@ -303,7 +303,7 @@ const WeatherDashboard = ({ data, currentData = [], rainData = [], timeRange = '
xAxisConfig.labels = { format: '{value:%d.%m}', align: 'center' } xAxisConfig.labels = { format: '{value:%d.%m}', align: 'center' }
xAxisMin = now - 7 * 24 * 3600 * 1000 xAxisMin = now - 7 * 24 * 3600 * 1000
xAxisMax = now xAxisMax = now
tooltipDateFormat = '%d.%m.%Y - %Hh' tooltipDateFormat = '%d.%m.%Y'
break break
case '30d': case '30d':
xAxisConfig.labels = { format: '{value:%d.%m}', align: 'center' } xAxisConfig.labels = { format: '{value:%d.%m}', align: 'center' }
@@ -749,7 +749,7 @@ const WeatherDashboard = ({ data, currentData = [], rainData = [], timeRange = '
...getCommonOptions(), ...getCommonOptions(),
tooltip: { tooltip: {
formatter: function() { formatter: function() {
const dateFormat = timeRange === '24h' ? '%d.%m.%Y %H:%M' : (timeRange === '7d' || timeRange === '30d' ? '%d.%m.%Y - %Hh' : '%d.%m.%Y') const dateFormat = timeRange === '24h' ? '%d.%m.%Y %H:%M' : '%d.%m.%Y'
const dateStr = Highcharts.dateFormat(dateFormat, this.x) const dateStr = Highcharts.dateFormat(dateFormat, this.x)
return `${dateStr}<br/><span style="color:${this.color}">\u25CF</span> ${this.series.name}: <b>${this.y.toFixed(0)}°</b>` return `${dateStr}<br/><span style="color:${this.color}">\u25CF</span> ${this.series.name}: <b>${this.y.toFixed(0)}°</b>`
} }