Enum vega_lite::ScaleType

source ·
pub enum ScaleType {
    Band,
    BinLinear,
    BinOrdinal,
    Linear,
    Log,
    Ordinal,
    Point,
    Pow,
    Sequential,
    Sqrt,
    Time,
    Utc,
}
Expand description

The type of scale. Vega-Lite supports the following categories of scale types:

  1. Continuous Scales – mapping continuous domains to continuous output ranges ("linear", "pow", "sqrt", "log", "time", "utc", "sequential").

  2. Discrete Scales – mapping discrete domains to discrete ("ordinal") or continuous ("band" and "point") output ranges.

  3. Discretizing Scales – mapping continuous domains to discrete output ranges ("bin-linear" and "bin-ordinal").

Default value: please see the scale type table.

Variants§

§

Band

§

BinLinear

§

BinOrdinal

§

Linear

§

Log

§

Ordinal

§

Point

§

Pow

§

Sequential

§

Sqrt

§

Time

§

Utc

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.