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

Mouse event data for 'pie' and 'sankey' plots doesn't return curveNumber or pointNumber #1875

Closed
alishobeiri opened this issue Jul 12, 2017 · 1 comment · Fixed by #1896
Closed
Assignees

Comments

@alishobeiri
Copy link

alishobeiri commented Jul 12, 2017

An example of sankey plot, view console for hover event output:
https://codepen.io/monfera/pen/VbKrXM

The hover event for a sankey plot currently returns:
image

The hover event for a pie plot currently returns (from Dash):
image

Both types of eventData don't include curveNumber or pointNumber.

In the case that there is more than one pie or sankey trace per plot it isn't possible to identify which trace triggered the mouse event without having access to the curveNumber and ideally the pointNumber as well.

From what I was able to find I think the issue stems from here:

if((subplot === 'pie' || subplot === 'sankey') && !noHoverEvent) {

@etpinard
Copy link
Contributor

Thanks for pointing this out.

The event data for these two trace types is a big mess!

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

Successfully merging a pull request may close this issue.

2 participants