Updated the function to give a better fitted value.
The barchart also use the fittedValue calculation from Utitilies now.
Scatterchart can add, remove and update datapoints. and got a Legend.