title: d3 tick marks on integers only
body: <p>I have a d3 bar chart whose values range from 0-3. I would like the y-axis to only show integer values, which I can do by</p>
  
  <pre><code>var yAxis = d3.svg.axis().scale(y).orient("right").tickFormat(d3.format("d"));
  </code></pre>
  
  <p>However, there are still tick marks at the non-integer markings. Setting the tick format only hides those labels. I can explicitly set the number of ticks or the tick values, but what I'd like to do is to just be able to specify that tick marks only appear at integer values. Is that possible?</p>
  
  <p><img src="https://i.stack.imgur.com/NC9sH.png" alt="enter image description here"></p>