add back .flush after chart creation.
authorgregor herrmann <gregor@toastfreeware.priv.at>
Thu, 6 Sep 2018 21:44:14 +0000 (23:44 +0200)
committergregor herrmann <gregor@toastfreeware.priv.at>
Thu, 6 Sep 2018 21:44:14 +0000 (23:44 +0200)
another incidence of empty charts (timing issues?) after a manual reload of
the page ...

web/static/seepark_web.js

index 40fd919c58fb041eda12571913bd7f9635041474..e12e464b570a8687f1df3b6484cdfaa320949ab0 100644 (file)
@@ -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() {
        // reload data in charts
        setInterval(
                function() {