Creating a straight line using mouse dynamically


As we have a Lasso Select implementation where using the mouse button we can create the area of interest, similarly our requirement is to create a a straight line on top of the chart using the mouse button as done for Lasso.

I want to create a straight line on top of scatter charts dynamically.