Only build scale and calculate x,y values once, not once after each added datasetObject.
Remove unnecessary semicolons.