Get data along the line drawn by user

Hello, is it possible to draw a line on a scatter plot in a dash plotly app and then return the coordinates of that line through the callback?
I was able to draw a line, but could not figure out how to access its properties, such as position on the plot.
Thanks,
Olga

Hi @olyabr ,

yes, it’s possible to do that. Here is an example:

1 Like

This is exactly what I needed to figure out! So greateful for your help!