]> ToastFreeware Gitweb - chrisu/seepark.git/blobdiff - web/static/seepark_web.js
loaddays: wrap .flush in a setTimeout
[chrisu/seepark.git] / web / static / seepark_web.js
index 5cdeca5b9b65ea1065e8148ccd8e4788cd076187..7e727a1f0927b31351122c6f2a8c00f9ac289e77 100644 (file)
@@ -67,7 +67,6 @@ function dayschart(element, title, days, xtickformat) {
                        chart.resize({
                                width: getwidth(element)
                        });
                        chart.resize({
                                width: getwidth(element)
                        });
-                       // chart.flush();
                },
                transition: {
                        duration: null
                },
                transition: {
                        duration: null
@@ -189,7 +188,7 @@ function loaddays(chart, element, days) {
                        unload: true
                });
        };
                        unload: true
                });
        };
-       chart.flush();
+       setTimeout(function () { chart.flush(); }, 5000);
 }
 
 function beginend(days) {
 }
 
 function beginend(days) {