Skip to content

Ability to make points or bar sections editable (ideally with drag and drop) #7410

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

Open
celia-lm opened this issue Apr 30, 2025 · 1 comment

Comments

@celia-lm
Copy link

Something like this:
Image

Similar to what is possible with shapes when editable=True is set in the config: https://github.com/plotly/plotly.js/blob/master/src/plot_api/plot_config.js#L47

Changing the position of the point (or bar section) should:

  • modify the underlying traces
  • trigger an event like restyle or relayout
  • be restricted based on the current state of the graph. In the example of the screenshot, it should only be possible that the bar region is moved to "China" or "Canada" and their respective x positions, since those are the available values. Similarly, the y position would be determined by the current "height" of the bar the region is moved to.
@gvwilson
Copy link
Contributor

thanks @celia-lm - it would be great to add, but I think it would be a lot of work - I'll talk to the team.

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

No branches or pull requests

2 participants