BUGFIX: Part1, first part of the autoscale bugfix. However this can not
be the final fix since it doesn't produce good scales for stepPlot
charts as well as line charts that have a window very near to the next
value left.
Test: Added test for the autoscale bugfix