Tick generator using interval.

Close #1166.
How about this:
```
var firstTick = Math.ceil(domain[0] / interval) * interval;
      for(var tick = firstTick; tick <= domain[1]; tick += interval) {
        generatedTicks.push(tick);
      }
```