From: gregor herrmann Date: Mon, 3 Sep 2018 16:38:16 +0000 (+0200) Subject: add workaround for not rendered points after reload X-Git-Url: https://git.toastfreeware.priv.at/chrisu/seepark.git/commitdiff_plain/1cbe9b42e992ed53c21afc0a5e03167cc0df8f00 add workaround for not rendered points after reload cf. e.g. https://github.com/c3js/c3/issues/975 --- diff --git a/web/static/seepark_web.js b/web/static/seepark_web.js index fca458b..721c586 100644 --- a/web/static/seepark_web.js +++ b/web/static/seepark_web.js @@ -155,6 +155,8 @@ function dayschart(element, title, days, xtickformat) { {axis: 'y', start: 100, end: 999, class: 'region-boiling'} ] }); + // woraround for unrendered dots + setTimeout(function () { chart.flush(); }, 5000); }; function loaddays(chart, element, days) {