#2369: reset max of x-axis in UpdateChart to make sure that the max-value is updated whenever the type of residual (squared, abs, relative) is changed.