Diverging scales topic

Diverging scales are similar to linear scales, but the input domain and output range always have exactly three elements. Diverging scales are typically used for a color encoding; see d4_scale_chromatic. These scales do not expose invert and interpolate methods. There are also log, pow, and symlog variants of diverging scales.

Classes

ScaleDiverging<Y> Diverging scales
Diverging scales are similar to linear scales, but the input domain and output range always have exactly three elements.
ScaleDivergingLog<Y> Diverging scales
A diverging scale with a logarithmic transform, analogous to ScaleLog.
ScaleDivergingPow<Y> Diverging scales
A diverging scale with an exponential transform, analogous to a ScalePow.
ScaleDivergingSymlog<Y> Diverging scales
A diverging scale with a logarithmic transform, analogous to a ScaleSymlog.