title: Getting the ticks in d3 v4
body: <p>How can I generate an array of ticks in d3 v4? So for example I have my x scale setup, and the range is <code>0 - 1000</code>, I want 4 ticks so it'd be <code>[0, 250, 500, 1000]</code> or the range is <code>2017-June - 2018-June</code> to 10 ticks then the result would be something like <code>[2017-June, 2017-Aug, ..., ...,]</code> etc.</p>
  
  <p>I've tried this but it returns a function</p>
  
  <pre><code>d3.axisBottom(x).ticks(10);
  </code></pre>