Updating options for a grouped chart makes all of the charts get the same options
See original GitHub issueDemo: https://codesandbox.io/s/vue-apexcharts-sync-annotation-problem-kz2ff
Steps to reproduce: Click on the Set annotation button
-
What is the behavior you expect? The first chart gets an annotation between the first and the second xaxis point, while the second chart gets an annotation between the sixth and the seventh point.
-
What is happening instead? Both charts get an annotation between the sixth and the seventh point.
This only happens to grouped charts - if I remove group: "sameGroup"
, the problem goes away.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Update the data in an existing chart - Microsoft Support
In the chart, select a data series. For example, in a column chart, click a column, and all the columns of that data...
Read more >Update, Change, and Manage the Data Used in a Chart in Excel
To edit the data selection of a chart, right click the chart and select the Select Data option - or select the chart,...
Read more >Excel Charts: Tips, Tricks and Techniques - Ablebits
To adjust the overlap between two chart series or to change the spacing between columns, right click any series on the chart and...
Read more >How to auto update a chart after entering new data in Excel?
This article is talking about how to auto update a chart while entering new data into the relative range in Excel.
Read more >How to Fix Excel Pivot Chart Problems and Formatting
Change to Combination Chart · At the top of the window, click the Clustered Column - Line on Secondary Axis option · If...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://codesandbox.io/s/react-basic-example-ky41h @junedchhipa
For the example above your solution works. But, I can’t make it work where the Chart render component does not have idea about how many others are being rendered so each chart needs to call
ApexCharts.exec
themselves or the caller (in the example caseApp
should callApexCharts.exec
.Basically I want the sync to work in this kind of a setup. Would appriciate your help.
Thanks
For the time being, I suggest using the
exec()
method for updating a chart in a grouped charts situation. https://apexcharts.com/docs/methods/#exec