Make y-axis label update when metric is changed.