I have 3 draggable shapes on my subplot.To distingush them i add annotation using plotly.afterplot function. So whenever a shape is drag and dropped, i get position using parameter(eg :_fullLayout.shapes[0].x0) and assign the x value to corresponding annotation’s xvalue. But the problem is when shape is on drag, respective annotation would be at previous position. I want annotation to move along with shape. Is that possible?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Drag dropping markers fixed to the trace and getting data points on drop | 0 | 2496 | October 26, 2019 | |
Positioning user-created shapes and annotations | 2 | 3027 | August 2, 2017 | |
Can I drag and drop annotation only? Without editing text and other element of scatter plot. | 0 | 536 | February 3, 2021 | |
Dynamically change annotation's position | 4 | 4424 | June 20, 2019 | |
Stop dragging annotations while moving the text | 0 | 871 | February 26, 2016 |