Parcourir la source

Removed flicker when refreshing a singlestat panel with spark line

Torkel Ödegaard il y a 11 ans
Parent
commit
93fb02509b
1 fichiers modifiés avec 1 ajouts et 3 suppressions
  1. 1 3
      src/app/panels/singlestat/singleStatPanel.js

+ 1 - 3
src/app/panels/singlestat/singleStatPanel.js

@@ -134,9 +134,7 @@ function (angular, app, _, $) {
             color: panel.sparkline.lineColor
           };
 
-          setTimeout(function() {
-            $.plot(plotCanvas, [plotSeries], options);
-          }, 10);
+          $.plot(plotCanvas, [plotSeries], options);
         }
 
         function render() {