Ver Fonte

simplified code

Rodja Trappe há 2 anos atrás
pai
commit
0252b04a83
1 ficheiros alterados com 1 adições e 2 exclusões
  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: {