Pārlūkot izejas kodu

fix update of echart options when number of series changes

Falko Schindler 1 gadu atpakaļ
vecāks
revīzija
483d5f21ce
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      nicegui/elements/echart.js

+ 1 - 1
nicegui/elements/echart.js

@@ -17,7 +17,7 @@ export default {
   methods: {
     update_chart() {
       convertDynamicProperties(this.options, true);
-      this.chart.setOption(this.options);
+      this.chart.setOption(this.options, { notMerge: this.chart.options.series.length != this.options.series.length });
     },
   },
   props: {