🚀 Gen 5 of the leading AI app deployment platform launches October 6. Click for the livestream.

Delete annotation and shapes in editable mode

The editable mode of Plotly.JS is really great.

I want to add the ability to remove annotation/shapes. For examples, select an annotation and press Delete key should remove it.

How difficult is it to modify Plotly.JS source code for this features? Which module should I look into?

This one: https://github.com/plotly/plotly.js/blob/master/src/components/annotations/draw.js

Actually, if you drag the added annotation to other place and click the original point again, the annotation will be moved. Please see here.

Hi andrey,
did you found a solution for this, actually i am stuck in some same sort of problem.