Added grid lines and scale according to min and max in the database