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

Improve sunbust and treemap click events behavior #4454

Merged
merged 1 commit into from
Jan 2, 2020

Conversation

etpinard
Copy link
Contributor

resolves #4338

  • plotly_click is now always triggers when clicking on sectors
    except when a custom plotly_(sunburst|treemap)click handler
    returns false
  • plotly_(sunburst|treemap)click now includes info about the "next"
    level that we transition to (if any)

Refer to #4338 (comment) for an overview of what the current behaviour is.

Demo: https://codepen.io/etpinard/pen/abzLZYo

Peek 2019-12-30 17-09

cc @plotly/plotly_js

- plotly_click is now always triggers when clicking on sectors
  except when a custom `plotly_(sunburst|treemap)click` handler
  return false
- `plotly_(sunburst|treemap)click` now includes info about the "next"
  level that we transition to (if any)
@etpinard etpinard added this to the v1.52.0 milestone Dec 30, 2019
@archmoj
Copy link
Contributor

archmoj commented Jan 2, 2020

@etpinard thanks very much for the PR.
💃 💃 💃

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

Successfully merging this pull request may close these issues.

plotly_click event doesn't fire when clicking non-root/leaf nodes of sunburst trace
2 participants