The time.ticks() function is used to uniformly space dates that corresponds to the domain of the scale. The dates are always in the extent of the domain of the scale.
time.ticks( count )
Parameters: This function accepts a single parameter as mentioned above and described below:
- count: It is the number of ticks required. It is an optional parameter.
Return Values: This function does not return anything.
Below programs illustrate the time.ticks() function in D3.js:
Example 2: Ticks every interval.