Fix regression computing for chart

Regression lines used to have completlety inaccurate values for
the second to fourth point. Resulting lines were not flat but had
a very high "bump"