add workaround for not rendered points after reload
authorgregor herrmann <gregor@toastfreeware.priv.at>
Mon, 3 Sep 2018 16:38:16 +0000 (18:38 +0200)
committergregor herrmann <gregor@toastfreeware.priv.at>
Mon, 3 Sep 2018 16:38:16 +0000 (18:38 +0200)
cf. e.g. https://github.com/c3js/c3/issues/975

web/static/seepark_web.js

index fca458b..721c586 100644 (file)
@@ -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) {