Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onClick for shared tooltips #452

Closed
ThinkSalat opened this issue Mar 20, 2019 · 4 comments
Closed

onClick for shared tooltips #452

ThinkSalat opened this issue Mar 20, 2019 · 4 comments

Comments

@ThinkSalat
Copy link

I'd like to invoke an onClick event when clicking on a shared tooltip. At the moment that isn't possible, but it would be very useful in one of my use cases. Ideally, it'd call the onClick event whenever the tooltip is showing, using the data from the datapoints from which tooltip is receiving its information.

@junedchhipa
Copy link
Contributor

Hi @ThinkSalat
Sorry, a shared tooltip don't have access to the underlying graphics as the calculation is based on mouse position hovering over the chart area.
In the current click event, I will try to inject those data and see how it goes.

@ThinkSalat
Copy link
Author

It does have access to the current data series index and data point index though, which would be enough for my purposes. If the tooltip formatted has access to that info, then the onClick on should be able to as well!

@junedchhipa
Copy link
Contributor

Cool, I will see this soon

@junedchhipa junedchhipa transferred this issue from apexcharts/react-apexcharts Mar 29, 2019
@junedchhipa
Copy link
Contributor

Added a new event
chart.events.markerClick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants