D3.js continuous.rangeRound() Function
The continuous.rangeRound() function is used set the range of the scale to the specified array of values. It also sets the interpolator to interpolatorRound. The rounding interpolator may be useful for avoiding antialiasing artifacts.
continuous.rangeRound( [range] )
Parameters: This function accepts a single parameter as mentioned above and described below.
- [range]: It is an array that contains the range for the domain specified.
Return Values: This function does not return anything.
Below programs illustrate the continuous.rangeRound() function in D3.js: