vue-apexcharts icon indicating copy to clipboard operation
vue-apexcharts copied to clipboard

Updating options on a synchronized chart updates options of all charts

Open nbst84 opened this issue 4 years ago • 2 comments

If charts A and B are synchronized, updating the title of chart A will also update the title of chart B.

See: https://codepen.io/nicolasbrigodiot/pen/bGBqevv

nbst84 avatar Feb 15 '21 10:02 nbst84

Happen to me, I need to show a chart based on user selected chart, when the selected chart changed, options from selected chart that doesn't exist on the other chart suddenly get assigned.

vano20 avatar Apr 01 '22 09:04 vano20

This happened because you mutated directly your chart options. You should instead use the updateOptions() method, setting the 4th parameter (updateSyncedCharts) to false.

frufin avatar Oct 05 '22 19:10 frufin