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 fca458be8e35b1504db5dc66a45f0d1048d6ac57..721c586c2f9cb8fb2d8387484760c9e32018ce3e 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) {