-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
onClick for pies slices doesn't return any trace info #1456
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
Comments
Right. Sounds like an easy PR to make. @andrey-zakharov want to give it a shot? Adding a ref to trace in |
* Test that 'plotly_click' doesn't emit an undefined trace.
* Test that 'plotly_click' doesn't emit an undefined trace.
Unfortunately, still an issue with the latest (v1.30.0) |
Works for me: https://codepen.io/etpinard/pen/prxrbg?editors=0010 |
Chrome 60.0.3112, FF 54.0.1: click at green or orange area in your pen yields undefined in console (blue area is OK). |
thanks @blokhin , reopened. |
Any chance the bugfix will be included in the next release? |
Pie event data is currently very different from most other plotly event data. I'm going to clean this up as part of #2073. |
Note that pie event data changed a fair amount with #2117 - should all be for the better but if anyone was using all the various internal-use coordinates that were being reported previously you will have to find another way to retrieve them 🙈 |
Code sample:
http://codepen.io/anon/pen/ZeLdXK?editors=0011
If i click any pie other that the biggest one ( first ) no there is no any trace info in event data. neither in points[0], nor in event.trace. Actually, there is "event.points.trace = undefined".

console.log(e) gives only:
The text was updated successfully, but these errors were encountered: