From 4d0eef893a499d6078a60b8b703cef05e95c1092 Mon Sep 17 00:00:00 2001 From: gregor herrmann Date: Sat, 8 Sep 2018 00:20:52 +0200 Subject: [PATCH 1/1] experiment again with re-loading chart data add unload:true, and add back .flush() which got lost in the refactoring --- web/static/seepark_web.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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) { -- 2.47.3