[][src]Enum vega_lite_4::SortUnion

pub enum SortUnion {
    EncodingSortField(EncodingSortField),
    Enum(Sort),
    UnionArray(Vec<SelectionInitInterval>),
}

Sort order for the encoded field.

For continuous fields (quantitative or temporal), sort can be either "ascending" or "descending".

For discrete fields, sort can be one of the following: - "ascending" or "descending" -- for sorting by the values' natural order in JavaScript. - A string indicating an encoding channel name to sort by (e.g., "x" or "y") with an optional minus prefix for descending sort (e.g., "-x" to sort by x-field, descending). This channel string is short-form of a sort-by-encoding definition. For example, "sort": "-x" is equivalent to "sort": {"encoding": "x", "order": "descending"}. - A sort field definition for sorting by another field. - An array specifying the field values in preferred order. In this case, the sort order will obey the values in the array, followed by any unspecified values in their original order. For discrete time field, values in the sort array can be date-time definition objects. In addition, for time units "month" and "day", the values can be the month or day names (case insensitive) or their 3-letter initials (e.g., "Mon", "Tue"). - null indicating no sort.

Default value: "ascending"

Note: null and sorting by another channel is not supported for row and column.

See also: sort documentation.

Variants

EncodingSortField(EncodingSortField)
Enum(Sort)

Trait Implementations

impl Clone for SortUnion[src]

impl Debug for SortUnion[src]

impl<'de> Deserialize<'de> for SortUnion[src]

impl From<[&'_ str; 1]> for SortUnion[src]

impl From<[&'_ str; 10]> for SortUnion[src]

impl From<[&'_ str; 11]> for SortUnion[src]

impl From<[&'_ str; 12]> for SortUnion[src]

impl From<[&'_ str; 13]> for SortUnion[src]

impl From<[&'_ str; 14]> for SortUnion[src]

impl From<[&'_ str; 15]> for SortUnion[src]

impl From<[&'_ str; 16]> for SortUnion[src]

impl From<[&'_ str; 17]> for SortUnion[src]

impl From<[&'_ str; 18]> for SortUnion[src]

impl From<[&'_ str; 19]> for SortUnion[src]

impl From<[&'_ str; 2]> for SortUnion[src]

impl From<[&'_ str; 20]> for SortUnion[src]

impl From<[&'_ str; 21]> for SortUnion[src]

impl From<[&'_ str; 22]> for SortUnion[src]

impl From<[&'_ str; 23]> for SortUnion[src]

impl From<[&'_ str; 24]> for SortUnion[src]

impl From<[&'_ str; 25]> for SortUnion[src]

impl From<[&'_ str; 26]> for SortUnion[src]

impl From<[&'_ str; 27]> for SortUnion[src]

impl From<[&'_ str; 28]> for SortUnion[src]

impl From<[&'_ str; 29]> for SortUnion[src]

impl From<[&'_ str; 3]> for SortUnion[src]

impl From<[&'_ str; 30]> for SortUnion[src]

impl From<[&'_ str; 31]> for SortUnion[src]

impl From<[&'_ str; 32]> for SortUnion[src]

impl From<[&'_ str; 4]> for SortUnion[src]

impl From<[&'_ str; 5]> for SortUnion[src]

impl From<[&'_ str; 6]> for SortUnion[src]

impl From<[&'_ str; 7]> for SortUnion[src]

impl From<[&'_ str; 8]> for SortUnion[src]

impl From<[&'_ str; 9]> for SortUnion[src]

impl From<EncodingSortField> for SortUnion[src]

impl From<Sort> for SortUnion[src]

impl From<Vec<&'_ str, Global>> for SortUnion[src]

impl From<Vec<SelectionInitInterval, Global>> for SortUnion[src]

impl From<Vec<String, Global>> for SortUnion[src]

impl Serialize for SortUnion[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.