瀏覽代碼

simplified code

Rodja Trappe 2 年之前
父節點
當前提交
0252b04a83
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      nicegui/elements/chart.js

+ 1 - 2
nicegui/elements/chart.js

@@ -10,8 +10,7 @@ export default {
     update_chart() {
       while (this.chart.series.length > this.options.series.length) this.chart.series[0].remove();
       while (this.chart.series.length < this.options.series.length) this.chart.addSeries({}, false);
-      this.chart.update(this.options, false);
-      this.chart.redraw();
+      this.chart.update(this.options);
     },
   },
   props: {