Fix hourly graph y axis labels close #176
This commit is contained in:
parent
6c9fb4cf68
commit
0d9c445919
2 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -133,6 +133,7 @@ const smallIcon = (link, _isNightTime) => {
|
|||
|
||||
case 'wind_few':
|
||||
case 'wind_few-n':
|
||||
case 'wind_':
|
||||
return addPath('Wind.gif');
|
||||
|
||||
case 'wind_sct':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue