Enum vega_lite::InterpolateUnion
source · pub enum InterpolateUnion {
Enum(ScaleInterpolate),
ScaleInterpolateParams(ScaleInterpolateParams),
}
Expand description
The interpolation method for range values. By default, a general interpolator for
numbers, dates, strings and colors (in RGB space) is used. For color ranges, this
property allows interpolation in alternative color spaces. Legal values include rgb
,
hsl
, hsl-long
, lab
, hcl
, hcl-long
, cubehelix
and cubehelix-long
(‘-long’
variants use longer paths in polar coordinate spaces). If object-valued, this property
accepts an object with a string-valued type property and an optional numeric gamma
property applicable to rgb and cubehelix interpolators. For more, see the d3-interpolate
documentation.
Note: Sequential scales do not support interpolate
as they have a fixed
interpolator. Since Vega-Lite uses sequential scales for quantitative fields by default,
you have to set the scale type
to other quantitative scale type such as "linear"
to
customize interpolate
.