dash icon indicating copy to clipboard operation
dash copied to clipboard

Get current active / clicked shape from plotly figure

Open subsurfaceiodev opened this issue 1 year ago • 4 comments

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.

subsurfaceiodev avatar Jan 19 '24 22:01 subsurfaceiodev

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".

nebom76 avatar Jan 21 '24 09:01 nebom76

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

Coding-with-Adam avatar Jan 22 '24 18:01 Coding-with-Adam

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.

pranathivemuri avatar Apr 02 '24 16:04 pranathivemuri

For image annotation this is a must.

Jeffresh avatar May 24 '24 06:05 Jeffresh