Struct vega_lite_4::SchemeParams
source · pub struct SchemeParams {
pub count: Option<f64>,
pub extent: Option<Vec<f64>>,
pub name: Option<String>,
pub expr: Option<String>,
}
Fields§
§count: Option<f64>
The number of colors to use in the scheme. This can be useful for scale types such as
"quantize"
, which use the length of the scale range to determine the number of discrete
bins for the scale domain.
extent: Option<Vec<f64>>
The extent of the color range to use. For example [0.2, 1]
will rescale the color
scheme such that color values in the range [0, 0.2) are excluded from the scheme.
name: Option<String>
A color scheme name for ordinal scales (e.g., "category10"
or "blues"
).
For the full list of supported schemes, please refer to the Vega Scheme reference.
expr: Option<String>
Vega expression (which can refer to Vega-Lite parameters).
Trait Implementations§
source§impl Clone for SchemeParams
impl Clone for SchemeParams
source§fn clone(&self) -> SchemeParams
fn clone(&self) -> SchemeParams
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SchemeParams
impl Debug for SchemeParams
source§impl Default for SchemeParams
impl Default for SchemeParams
source§fn default() -> SchemeParams
fn default() -> SchemeParams
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SchemeParams
impl<'de> Deserialize<'de> for SchemeParams
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
source§impl From<SchemeParams> for Scheme
impl From<SchemeParams> for Scheme
source§fn from(original: SchemeParams) -> Scheme
fn from(original: SchemeParams) -> Scheme
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for SchemeParams
impl Send for SchemeParams
impl Sync for SchemeParams
impl Unpin for SchemeParams
impl UnwindSafe for SchemeParams
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