Hi,
In my app I plot some of my results using Plotly. While Plotly makes the plot interactive (zooming, selecting a portion of a plot, etc), yet I couldn’t find a way to herness the selected vertical span (the start and end x-coordinates ). That is, I want a user to be able to drag a vertical span (from x1 to x2) on the plot, and only the selected region to be displayed. To do so, I need to get access to the values of x1 and x2.
Plotly will zoom-in when you select a box or span by dragging your mouse, but I don’t get these numbers (x1, and x2). I’d like to save these numbers whenever a user selects a x-box, to do something for the user.
Can anyone please help?
Thanks