Scales Y-axis according element count