X-Git-Url: https://git.toastfreeware.priv.at/chrisu/seepark.git/blobdiff_plain/72faf7d55093a0ec1af6a840150e422686b6f40b..866247a8ef351c97bf845799ef78f7eea25f9793:/web/static/seepark_web.js?ds=sidebyside diff --git a/web/static/seepark_web.js b/web/static/seepark_web.js index 6d8e1f1..583a14a 100644 --- a/web/static/seepark_web.js +++ b/web/static/seepark_web.js @@ -156,16 +156,14 @@ function dayschart(element, title, days, xtickformat) { ] }); - // workaround for unrendered dots - setTimeout(function () { chart.flush(); }, 5000); - // reload data setInterval( function() { chart.load({ url: api_base_url_sensors + beginend(days), mimeType: 'json' - }) + }); + chart.flush(); }, 5 * 60 * 1000 );