瀏覽代碼

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);
             })
           }