Setting Custom Ticks

Sometimes it’s necessary to override the default behavior to show only specific ticks. By passing an array of values to the .ticks( ) method, it’s possible to specify which ticks are visible on the axis:

var bottom = new d3plus.AxisBottom()
  .domain([0, 10])
  .ticks([1, 3, 5, 7, 8, 9, 10])
  .width(600)
  .height(300)
  .render();

Notice that while the tick/gridlines have been modified, the labels still appear at default intervals. This behavior can be overridden using the .labels( ) method.