From: gregor herrmann Date: Thu, 6 Sep 2018 21:44:14 +0000 (+0200) Subject: add back .flush after chart creation. X-Git-Url: https://git.toastfreeware.priv.at/chrisu/seepark.git/commitdiff_plain/b39f9b6701a2ec07f419591806a91647865f8e7e add back .flush after chart creation. another incidence of empty charts (timing issues?) after a manual reload of the page ... --- diff --git a/web/static/seepark_web.js b/web/static/seepark_web.js index 40fd919..e12e464 100644 --- a/web/static/seepark_web.js +++ b/web/static/seepark_web.js @@ -162,6 +162,9 @@ function dayschart(element, title, days, xtickformat) { ] }); + // workaround for unrendered dots + setTimeout(function () { chart.flush(); }, 5000); + // reload data in charts setInterval( function() {