changed to use spline type line
added support for projection of x and y values for linear regressions