Dynamic yaxis space

Richard - Again, this is just a PR to have another set of eyes on it. This adjusts the space provided for labels on the y-axis depending on the magnitude of the numbers, to prevent the value labels from overflowing the pane and to prevent the axis label from overlapping the value labels.