![]() |
VOOZH | about |
The tickIncrement() function of D3.js is used whenever one needs to be sure that the start is always less than the stop where the start and stop are given as a parameter in this function. If the tick step for the given start, stop and count is less than one then it returns the negative inverse tick step.
Syntax:
d3.tickIncrement(start, stop, count)
Parameter: This function accepts three parameters as mentioned above and describe below.
Return value: It returns an integer.
Example 1: When start is greater than stop:
Output:
👁 ImageExample 2: When the tick step is less than one: