D3.js bandScale band() Function
The band() function in d3.js library is used to return a start of the band from the range corresponding to the given input domain.
Parameters: This function takes a single parameter as given above and described below.
- Value: This accepts a value from the specified domain.
Return Value: This function returns a value from the specified range.
Example: The following example demonstrates the above function.