Fix hourly graph y axis labels close #176

This commit is contained in:
Matt Walsh
2026-01-22 22:12:32 -06:00
parent 6c9fb4cf68
commit 0d9c445919
2 changed files with 2 additions and 1 deletions

View File

@@ -94,7 +94,7 @@ class HourlyGraph extends WeatherDisplay {
// calculate temperature scale for min and max of dewpoint and temperature
const minScale = Math.min(...this.data.dewpoint, ...this.data.temperature);
const maxScale = Math.max(...this.data.dewpoint, ...this.data.temperature);
const thirdScale = (minScale + maxScale) / 3;
const thirdScale = (maxScale - minScale) / 3;
const midScale1 = Math.round(minScale + thirdScale);
const midScale2 = Math.round(minScale + (thirdScale * 2));
const tempScale = calcScale(minScale, availableHeight - 10, maxScale, 10);

View File

@@ -133,6 +133,7 @@ const smallIcon = (link, _isNightTime) => {
case 'wind_few':
case 'wind_few-n':
case 'wind_':
return addPath('Wind.gif');
case 'wind_sct':