Title: Mouse event data for 'pie' and 'sankey' plots doesn't return `curveNumber` or `pointNumber` · Issue #1875 · plotly/plotly.js · GitHub
Open Graph Title: Mouse event data for 'pie' and 'sankey' plots doesn't return `curveNumber` or `pointNumber` · Issue #1875 · plotly/plotly.js
X Title: Mouse event data for 'pie' and 'sankey' plots doesn't return `curveNumber` or `pointNumber` · Issue #1875 · plotly/plotly.js
Description: 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: The hover event for a pie plot currently returns (from Dash): Both types of eventD...
Open Graph Description: 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: The hover event for a pie plot currently r...
X Description: 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: The hover event for a pie plot currently r...
Opengraph URL: https://github.com/plotly/plotly.js/issues/1875
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Mouse event data for 'pie' and 'sankey' plots doesn't return `curveNumber` or `pointNumber`","articleBody":"An example of sankey plot, view console for hover event output:\r\nhttps://codepen.io/monfera/pen/VbKrXM\r\n\r\nThe hover event for a sankey plot currently returns:\r\n\r\n\r\nThe hover event for a pie plot currently returns (from Dash):\r\n\r\n\r\nBoth types of eventData don't include `curveNumber` or `pointNumber`. \r\n\r\nIn 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.\r\n\r\nFrom what I was able to find I think the issue stems from here: https://github.com/plotly/plotly.js/blob/3e83252e05ca4bcebad611c923806a961ccc6672/src/components/fx/hover.js#L172 ","author":{"url":"https://github.com/alishobeiri","@type":"Person","name":"alishobeiri"},"datePublished":"2017-07-12T14:35:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1875/plotly.js/issues/1875"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f43df95e-d85b-91ae-3540-e11367b68ddf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 83BE:2853C4:199CA1:236AC9:6A5535EB |
| html-safe-nonce | 6fa99bc3a8bdafe4c8ef0ec4804dc9bba8fc7242ec0286c54443279f3b027a8a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4M0JFOjI4NTNDNDoxOTlDQTE6MjM2QUM5OjZBNTUzNUVCIiwidmlzaXRvcl9pZCI6IjI1MTA3MTY5ODgyODYxMjE0NTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | baaf55af927848754baa5c0097904a9f29fbedee6e27f0ad5040be5965de2bf9 |
| hovercard-subject-tag | issue:242402410 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.js/1875/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6d5457f9a8468c3d42d6c0a5f5bad1476c7c96fde21bc9cd9efa65b989970587/plotly/plotly.js/issues/1875 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6d5457f9a8468c3d42d6c0a5f5bad1476c7c96fde21bc9cd9efa65b989970587/plotly/plotly.js/issues/1875 |
| og:image:alt | 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: The hover event for a pie plot currently r... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alishobeiri |
| hostname | github.com |
| expected-hostname | github.com |
| None | fbd8fce4d63ac394c5405faa20aa50d5c9e56b979ac43ee1b26f8e7c47c4cd89 |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 45646037 |
| octolytics-dimension-repository_nwo | plotly/plotly.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 45646037 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.js |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 811f50b757204c6a1b4da0ea780075b3e1cc9e57 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width