From 282065a04f0b9762a1019376712fdfc4a7bc4acf Mon Sep 17 00:00:00 2001 From: gregor herrmann Date: Wed, 5 Sep 2018 23:24:42 +0200 Subject: [PATCH] remove flush after creation, add flush after reload --- web/static/seepark_web.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 ); -- 2.47.3