I have been going through some code and I encountered .tickSize(10,1) and .tickSize(10, 0) I know the first argument fixes the tickSize. Can anybody explain what the second argument do?
What does the second argument do in the .tickSize(10, 1) in d3.axis?
213 views Asked by Sathish Kannan At
1
It sets the size of the first and last ticks on the axis. You can play with it here to see what changing the second parameter does but here are some screenshots to demonstrate it:
Rendered Axis:
Changing the code to
.tickSize(10,50)results in an axis that looks like the following (notice the size of the first and last 'outer' ticks):