Change y-axis value to corresponding stat when x-axis is changed.