Updated to display y-axis according to max value

y axis is always updated to display the whole range of values properly.