loaddays: wrap .flush in a setTimeout
authorgregor herrmann <gregor@toastfreeware.priv.at>
Wed, 3 Oct 2018 16:46:04 +0000 (18:46 +0200)
committergregor herrmann <gregor@toastfreeware.priv.at>
Wed, 3 Oct 2018 16:46:04 +0000 (18:46 +0200)
depending on location and browser, I still see empty charts.

web/static/seepark_web.js

index d763fdb..7e727a1 100644 (file)
@@ -188,7 +188,7 @@ function loaddays(chart, element, days) {
                        unload: true
                });
        };
-       chart.flush();
+       setTimeout(function () { chart.flush(); }, 5000);
 }
 
 function beginend(days) {