The log.ticks() function is used to return ticks that are uniformly spaced within each integer power of base and each tick lies in scale’s domain. The values returned by ticks() lies in the domain. If the order of the in-domain is greater than count then one tick per power is returned. If the count is not given as a parameter then by default it is set to 10.
Parameters: This function accepts a single parameter as mentioned above and described below:
- count: It is the number of ticks required.
Return Values: This function does not return anything.
Below given are a few examples of the function given above.
Example 2: When base is set to 2