Explorar o código

simplified code

Rodja Trappe %!s(int64=2) %!d(string=hai) anos
pai
achega
0252b04a83
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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: {