Enum vega_lite::ScaleRange
source · pub enum ScaleRange {
String(String),
UnionArray(Vec<PrecisionValue>),
}
Expand description
The range of the scale. One of:
-
A string indicating a pre-defined named scale range (e.g., example,
"symbol"
, or"diverging"
). -
For continuous scales, two-element array indicating minimum and maximum values, or an array with more than two entries for specifying a piecewise scale.
-
For discrete and discretizing scales, an array of desired output values.
Notes:
-
For sequential, ordinal, and discretizing color scales, you can also specify a color
scheme
instead ofrange
. -
Any directly specified
range
forx
andy
channels will be ignored. Range can be customized via the view’s corresponding size (width
andheight
) or via range steps and paddings properties for band and point scales.
Variants§
String(String)
UnionArray(Vec<PrecisionValue>)
Trait Implementations§
source§impl Debug for ScaleRange
impl Debug for ScaleRange
source§impl<'de> Deserialize<'de> for ScaleRange
impl<'de> Deserialize<'de> for ScaleRange
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more