react-apexcharts
react-apexcharts copied to clipboard
Events not triggered properly in syncing charts
Description
Setting up events in synced charts by a group, only the events of the chart interacted with are triggered. That makes impossible execute certain code inside of these events, because they are not being notified.
Steps to Reproduce
Build a syncing chart, like the one in the examples, and set events for them such as before zoom. event.
Expected Behavior
All events handlers should be triggered, independent of the chart.
Actual Behavior
Only the chart interacted throught any action triggers its events.
Reproduction Link
I made a test for this issue, syncing charts with three chart with similar options and data. taken of the example of syncing charts. Each chart implements the same events configuration in their options, and prints the info of the event when its triggered via the console.
https://codesandbox.io/s/events-syncing-charts-9g28k?file=/src/App.js