D3.js scaleQuantile quantile() Function
The quantile() function of d3.scaleQuantile() in D3.js is used to return a value from the range corresponding to the given input value. This input value lies in the specified domain.
quantile( value )
Parameters: This function accepts a single parameter as given above and described below:
- value: It takes a numeric value that lies in the domain.
Return Values: This function return a value corresponding to the specified range.
The below program illustrates the quantile() function in D3.js: