![]() |
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.copy() function in d3.js is used to construct and return the exact copy of the original scale. Any change in the original scale does not affect the copy scale and vice-versa.
Syntax:
diverging.copy();
Parameters: This function does not take any parameters.
Return Values: This function return the copy of the original scale.
Below given are a few examples of the function given above.
Example 1:
Output:
👁 ImageExample 2: