Fixes #8872. Use the automatic calculation by Flot to get the number of decimal places for ticks on the y-axis rather than the number of decimal places for the min value.