title: Get constant interval of ticks value in d3.scaleTime()
body: <p><a href="http://jsfiddle.net/sarathsaleem/8tmLrb9t/5/" rel="nofollow noreferrer">DEMO</a> </p>
  
  <p>I need to get a constant interval of ticks values between any random date using <strong><em>d3.scaleTime()</em></strong> and plot in an axis.</p>
  
  <p>But </p>
  
  <pre><code>timeScale.nice(intervalValue);
  //or 
  axisXScale.tickValues(timeScale.ticks(10));
  </code></pre>
  
  <p>doesnt help , I am always getting random number of ticks values.</p>
  
  <p>As per D3 documentation</p>
  
  <pre><code># continuous.ticks([count])
  
  Returns approximately count representative values from the scale’s domain. If count is not specified, it defaults to 10.
  The returned tick values are uniformly spaced, have human-readable values (such as multiples of powers of 10), and are guaranteed to be within the extent of the domain.
  Ticks are often used to display reference lines, or tick marks, in conjunction with the visualized data.
  The specified count is only a hint; the scale may return more or fewer values depending on the domain.
  </code></pre>
  
  <p>So is there any way we can get a constant number rather than approximation</p>