diff --git a/www/assets/js/toolbox_weather.js b/www/assets/js/toolbox_weather.js index 6fca4e6..a6310a3 100644 --- a/www/assets/js/toolbox_weather.js +++ b/www/assets/js/toolbox_weather.js @@ -120,7 +120,8 @@ function loadWeather(reload) { borderWidth: 0, spanGaps: true, backgroundColor: "#03A9F4", - borderColor: "#03A9F4" + borderColor: "#03A9F4", + lineTension: 0.5 } ] }, @@ -161,9 +162,10 @@ function loadWeather(reload) { drawBorder: false }, ticks: { + beginAtZero: true, min: 0, - max: Math.round(maxprecip), - stepSize: (Math.round(maxprecip) / 2), + autoSkip: true, + maxTicksLimit: 3, callback: function (value, index, values) { if (getStorage("units") == "metric") { return value + ' mm'; diff --git a/www/pages/toolbox/weather.html b/www/pages/toolbox/weather.html index 3cc8133..144a14f 100644 --- a/www/pages/toolbox/weather.html +++ b/www/pages/toolbox/weather.html @@ -98,7 +98,7 @@
- +