![]() |
VOOZH | about |
The diverging scales are very much similar to continuous scales. The only difference is that the output range of this scale is fixed by the interpolator thus the range is not configurable.
The diverging.domain() function is used to set the domain of the scale. The domain array must take three numeric values.
Syntax:
diverging.domain([domain]);
Parameters: This function accepts a single parameter as mentioned above and described below:
Return Values: This function does not return anything.
Example 1:
Output:
👁 ImageExample 2: