Conditionally switch from preferred tick spacing to auto

Space ticks on the vertical axis of the bar chart every 0.5, except when
that would make the tick labels too crowded.