0

One of graph, I display the number of persons in each category, so the axis is ordinal. If I put 10 ticks and elasticX, it starts with a max number of several hundreds, and each tick as a good number.

However, if I click on other charts and I filter until the max category has only 5 persons, the tick will be a 0,5 | 1 | 1,5 | 2...

It obviously looks silly to display an option of 1.5 person. Is there a way to adjust the number of ticks so it doesn't display a step < 1?

Gordon
  • 19,811
  • 4
  • 36
  • 74
Xavier
  • 1,157
  • 9
  • 29

1 Answers1

0

pure d3 solution, thanks for the tip:

.tickFormat(d3.format("d"))
Xavier
  • 1,157
  • 9
  • 29