Title: `on_sunburstclick`, `on_treemapclick` · Issue #2571 · plotly/plotly.py · GitHub
Open Graph Title: `on_sunburstclick`, `on_treemapclick` · Issue #2571 · plotly/plotly.py
X Title: `on_sunburstclick`, `on_treemapclick` · Issue #2571 · plotly/plotly.py
Description: Seeing the on_click support: plotly.py/packages/python/plotly/plotly/basedatatypes.py Lines 5190 to 5240 in 267c187 def on_click(self, callback, append=False): """ Register function to be called when the user clicks on one or more points...
Open Graph Description: Seeing the on_click support: plotly.py/packages/python/plotly/plotly/basedatatypes.py Lines 5190 to 5240 in 267c187 def on_click(self, callback, append=False): """ Register function to be called wh...
X Description: Seeing the on_click support: plotly.py/packages/python/plotly/plotly/basedatatypes.py Lines 5190 to 5240 in 267c187 def on_click(self, callback, append=False): """ Register function ...
Opengraph URL: https://github.com/plotly/plotly.py/issues/2571
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`on_sunburstclick`, `on_treemapclick`","articleBody":"Seeing the `on_click` support:\r\n\r\nhttps://github.com/plotly/plotly.py/blob/267c1873b6d720e61ab886c58fba2d201aa2712b/packages/python/plotly/plotly/basedatatypes.py#L5190-L5240\r\n\r\nI am looking for similar `on_treemapclick` and `on_sunburstclick` support referenced:\r\n\r\nhttps://github.com/plotly/plotly.js/pull/4454\r\n\r\nFor something like:\r\n\r\n```\r\nimport plotly.graph_objects as go\r\n\r\ntm = go.Treemap(\r\n labels = [\"Eve\",\"Cain\", \"Seth\", \"Enos\", \"Noam\", \"Abel\", \"Awan\", \"Enoch\", \"Azura\"],\r\n parents = [\"\", \"Eve\", \"Eve\", \"Seth\", \"Seth\", \"Eve\", \"Eve\", \"Awan\", \"Eve\"]\r\n)\r\nfig = go.FigureWidget(tm)\r\n\r\nfig.show()\r\n```\r\n\r\n```\r\nfrom ipywidgets import Output\r\n\r\nout = Output()\r\ndef click_fn(trace, points, state):\r\n with out:\r\n print(trace, points, state)\r\ntm.on_click(click_fn)\r\n\r\ndef treemapclick_fn(trace, data, state):\r\n with out:\r\n print(trace, data, state)\r\ntm.on_treemapclick(treemapclick_fn)\r\nout\r\n```\r\n\r\n`on_click` in the above is not rendering, either.\r\n\r\nI have plotly version 4.5.0.","author":{"url":"https://github.com/thewtex","@type":"Person","name":"thewtex"},"datePublished":"2020-06-16T02:02:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2571/plotly.py/issues/2571"}
| 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:a5b26a81-2e7c-0086-6b8b-cc2fcf1e980c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ABA6:DE273:3467EF:49A446:6A584916 |
| html-safe-nonce | b437e855c9122a7f9e405115af3b5a9ed3ad0c29d2567ab62816be0969ffa627 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkE2OkRFMjczOjM0NjdFRjo0OUE0NDY6NkE1ODQ5MTYiLCJ2aXNpdG9yX2lkIjoiNzY5MjMzMjk1MjAwNTkyMTA0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4b63c1f2318b2c4d95444b59817502e1f6d6b0fe85df1698c1aa986a587c8c66 |
| hovercard-subject-tag | issue:639313008 |
| 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.py/2571/issue_layout |
| twitter:image | https://opengraph.githubassets.com/60da7cf92276639dc09a425ad1fdedddd0ad92e1b2195f5e5236dd58c3ce281f/plotly/plotly.py/issues/2571 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/60da7cf92276639dc09a425ad1fdedddd0ad92e1b2195f5e5236dd58c3ce281f/plotly/plotly.py/issues/2571 |
| og:image:alt | Seeing the on_click support: plotly.py/packages/python/plotly/plotly/basedatatypes.py Lines 5190 to 5240 in 267c187 def on_click(self, callback, append=False): """ Register function to be called wh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | thewtex |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.py git https://github.com/plotly/plotly.py.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 14579099 |
| octolytics-dimension-repository_nwo | plotly/plotly.py |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14579099 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.py |
| 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 | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width