D3.js queue() Function
The d3.queue() function is used to create a queue of a specified size. If the size is not given by default it is taken as infinite.
Parameters: This function accepts a single parameter mentioned above and described below:
- size: It is the optional parameter if it is not given then the size of the queue is infinite else size of the queue is the number given. The size specifies how many functions to run concurrently.
Returns: This function returns the object.
Below given are a few examples of the above function.
Example 1: When the size of the queue is not given by default it is of infinite size.
Example 2: When the size of the queue is given.