Enable draggable annotations #728
Replies: 3 comments 2 replies
-
Should be almost as easy with an external plugin, so not sure if that is something that should be implementer. Always good to give examples though, so maybe a sample implementation instead? |
Beta Was this translation helpful? Give feedback.
-
@kurkle today I had time to think more about this enhancement. Well, finally I think you are right! This can be done by another plugin. |
Beta Was this translation helpful? Give feedback.
-
Codepen (drag with external plugin) https://codepen.io/stockinail/pen/jOZPWXy |
Beta Was this translation helpful? Give feedback.
-
We could happen that a user would like to move the annotations in an empty space on the chart in order to see the underlying data.
To enable that, we could add a new
draggable
option to the annotation that if is set totrue
, the user can drag the annotation (or annotations).mousedown
andmouseup
event types should be added by the user in order to activate it.The reset and the fallback to original position can be easily performed by a
chart.update()
to invoke externally (by a button or another controller).Beta Was this translation helpful? Give feedback.
All reactions