question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Updating options for a grouped chart makes all of the charts get the same options

See original GitHub issue

Demo: 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:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
thellimistcommented, Feb 8, 2020

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 case App should call ApexCharts.exec.

Basically I want the sync to work in this kind of a setup. Would appriciate your help.

Thanks

2reactions
junedchhipacommented, Jun 6, 2019

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found