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
schemeinstead ofrange. -
Any directly specified
rangeforxandychannels will be ignored. Range can be customized via the view’s corresponding size (widthandheight) 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
Auto Trait Implementations§
impl Freeze for ScaleRange
impl RefUnwindSafe for ScaleRange
impl Send for ScaleRange
impl Sync for ScaleRange
impl Unpin for ScaleRange
impl UnwindSafe for ScaleRange
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more