Changed logic to use percentage for y axis.