Custom tick generation

Add functionality to provide custom tick generator for quantitative scale.

Close #1058.
If a tickGenerator always returns a number[] why does it return any[] here?