A part of my React.js+plotly.js web app is a scatter plot of a time series. I want to have movable vertical lines for controlling some behavior of the app. I can draw the lines using shapes, but don’t know how to move them using the mouse. Is there a way to do this?
You can find an example in https://codepen.io/fingerpori/pen/GGLWoz. I want to be able to move the red and green vertical lines left or right.