Improve tick-frequency calculation to handle small charts

On some small charts, the tick frequency can be low enough that labels end up overlapping each other.

E.g. The genreCount chart on the front page when the width is initialised as 300px.

In this case, the tick frequency should scale to display ticks each 500 instead of 200.
I personally don't like inline use of ++ or -- so I vote for just passing step as the parameter and adding "step++;" as the next line.