I use plotly.js to draw time series. I’m trying to get Y-value for any given hover X-position (in hover event). I can get the value if I’m at the data point (or near enough) but I would need to get the value even in zoomed-in view when the data points are far away each other and the hover X-position is in between them.
Is there a function to achieve this? (The value should be interpolated for linear data, ideally corresponding to the line drawn. For stepped data it should be obviously the last state value at given time.)