![]() |
VOOZH | about |
The ticks() function in D3.js is used to form an array of between a given range of start and stop both inclusive such that each element is uniformly and equally spaced.
Syntax:
d3.ticks(start,stop,count);
Parameters: This function accepts three parameters as mentioned above and described below:
Return value: It returns an array of nicely-rounded numbers.
Below given are a few examples of ticks() function.
Example 1:
Output:
👁 ImageExample 2: