Hiding Specific Axis Ticks

It is occasionally necessary to only show tick marks for specific ticks on an Axis. 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 ticks/gridlines have been modified, the labels still appear at default intervals. This behavior can be overridden using the .labels( ) method, as seen in this example.