D3 Axis records errors

Is there a way for the count argument for .ticks () to be a hard value that needs to be followed exactly instead of a hint? There are some cases where this formatting is really what you want to have.

+5
source share
1 answer

You can use the function .tickValues()to set tick values ​​explicitly. If called without arguments, it returns the current values ​​of the checkmark - this will allow you to check how many there are and add / remove / recount as necessary.

+5
source

All Articles