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.
The Math.abs on lines 47 and 53 are unnecessary since the width and height will always be positive.