plotly / dash

Data Apps & Dashboards for Python. No JavaScript Required.
https://plotly.com/dash
MIT License
21.47k stars 2.07k forks source link

Get current active / clicked shape from plotly figure #2727

Open subsurfaceiodev opened 9 months ago

subsurfaceiodev commented 9 months ago

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 commented 9 months ago

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 commented 9 months ago

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

pranathivemuri commented 7 months ago

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 commented 5 months ago

For image annotation this is a must.