Struct vega_lite::SchemeParams

source ·
pub struct SchemeParams {
    pub extent: Option<Vec<f64>>,
    pub name: String,
}

Fields§

§extent: Option<Vec<f64>>

For sequential and diverging schemes only, determines 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: String

A color scheme name for sequential/ordinal scales (e.g., "category10" or "viridis").

For the full list of supported schemes, please refer to the Vega Scheme reference.

Trait Implementations§

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.