Added a getTickByYear function which will return an array of ticks.

Assumes that the ticks will be displayed by year and uses the default
tickGenerator function unless that function produces ticks between
years.

Add tests for the new function.