X-Git-Url: https://git.toastfreeware.priv.at/chrisu/seepark.git/blobdiff_plain/b39f9b6701a2ec07f419591806a91647865f8e7e..4d0eef893a499d6078a60b8b703cef05e95c1092:/web/static/seepark_web.js diff --git a/web/static/seepark_web.js b/web/static/seepark_web.js index e12e464..5cdeca5 100644 --- a/web/static/seepark_web.js +++ b/web/static/seepark_web.js @@ -179,14 +179,17 @@ function loaddays(chart, element, days) { if (element.substr(0, 7) == 'chart_w') { chart.load({ url: api_base_url_sensors + beginend(days), - mimeType: 'json' + mimeType: 'json', + unload: true }); } else { chart.load({ url: api_base_url_weather + beginend(days), - mimeType: 'json' + mimeType: 'json', + unload: true }); - } + }; + chart.flush(); } function beginend(days) {