D3.js | d3.continuous.clamp() Function
The d3.continuous.clamp() function in D3.js is used to enable or disable the clamp. If the clamp is disabled then the range of domain’s value might be out of range but if the clamp is enabled then the range of domain’s value will always be in range.
continuous.clamp( Value )
Parameters: This function accept single parameter Value which is either true or false.
Return Value: This function does not return any value.
Below programs illustrate the d3.continuous.clamp() function in D3.js: