Custom tick generation

Add functionality to provide custom tick generator for quantitative scale.

Close #1058.
Maybe "Gets ticks generated by the default algorithm." ? It's not strictly the d3 `ticks()` call, and we might change it in the future.