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

Get current active / clicked shape from plotly figure #2727

Open
subsurfaceiodev opened this issue Jan 19, 2024 · 4 comments
Open

Get current active / clicked shape from plotly figure #2727

subsurfaceiodev opened this issue Jan 19, 2024 · 4 comments
Labels
feature something new P3 backlog

Comments

@subsurfaceiodev
Copy link

Is your feature request related to a problem? Please describe.
As discussed in https://community.plotly.com/t/how-to-get-current-active-shape/42235 and https://stackoverflow.com/questions/76163350/shape-click-eventactive-shape-index-how-to-retrieve-the-index-of-a-drawn-sha, it would be a great feature to get the current active / clicked shape from a plotly figure via a callback in dash.

Describe the solution you'd like
A simple 'active_shape' or similar property from figure to use in callbacks.

@nebom76
Copy link

nebom76 commented Jan 21, 2024

This is a very interesting function. With this function, Plotly is very useful for many applications. When are the feature requests processed? I think this feature is very easy to implement because this works in Dash Graph "erase active shape".

@Coding-with-Adam Coding-with-Adam added feature something new P3 backlog labels Jan 22, 2024
@Coding-with-Adam
Copy link

Coding-with-Adam commented Jan 22, 2024

Thanks for creating this Feature Request, @subsurfaceiodev
This is part of a larger ongoing topic.

@pranathivemuri
Copy link

pranathivemuri commented Apr 2, 2024

This would be a very useful feature for my use case as well where I want to select a closedPath or a shape and change the label of it i.e annotate with a different label.

@Jeffresh
Copy link

For image annotation this is a must.

@gvwilson gvwilson assigned gvwilson and unassigned gvwilson Jul 26, 2024
@gvwilson gvwilson changed the title [Feature Request] Get current active / clicked shape from plotly figure Get current active / clicked shape from plotly figure Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new P3 backlog
Projects
None yet
Development

No branches or pull requests

6 participants