Browse Source

Merge pull request #2068 from zauberzeug/echart

Fix update of echart options when number of series changes
Falko Schindler 1 year ago
parent
commit
e9c5824549
1 changed files with 1 additions and 1 deletions
  1. 1 1
      nicegui/elements/echart.js

+ 1 - 1
nicegui/elements/echart.js

@@ -17,7 +17,7 @@ export default {
   methods: {
   methods: {
     update_chart() {
     update_chart() {
       convertDynamicProperties(this.options, true);
       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: {
   props: {