فهرست منبع

HUE-8649 [frontend] Have the performance graph roll over instead of append

Johan Ahlen 7 سال پیش
والد
کامیت
b38051b
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      desktop/core/src/desktop/templates/ko_components/ko_performance_graph.mako

+ 1 - 0
desktop/core/src/desktop/templates/ko_components/ko_performance_graph.mako

@@ -505,6 +505,7 @@
             self.data = data;
           } else {
             data.forEach(function (newRow) {
+              self.data.shift();
               self.data.push(newRow);
             })
           }