Please help with my plotting requirement

I want to create a scatter plot. After plotting the chart, I need to be able to click anywhere on the chart to draw a horizontal line. I should also be able to move that line by holding it and dragging it on the screen.

Is this chart feasible using plotly.js ? If not, can someone recommend an opensource charting library that offers this functionality.

I think plotly doesn’t support catching click anywhere https://github.com/plotly/plotly.js/issues/2696