[−][src]Enum vega_lite_4::SortUnion
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)
UnionArray(Vec<SelectionInitInterval>)
Trait Implementations
impl Clone for SortUnion
[src]
impl Debug for SortUnion
[src]
impl<'de> Deserialize<'de> for SortUnion
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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]
pub fn from(original: EncodingSortField) -> SortUnion
[src]
impl From<Sort> for SortUnion
[src]
impl From<Vec<&'_ str, Global>> for SortUnion
[src]
impl From<Vec<SelectionInitInterval, Global>> for SortUnion
[src]
pub fn from(original: Vec<SelectionInitInterval>) -> SortUnion
[src]
impl From<Vec<String, Global>> for SortUnion
[src]
impl Serialize for SortUnion
[src]
Auto Trait Implementations
impl RefUnwindSafe for SortUnion
[src]
impl Send for SortUnion
[src]
impl Sync for SortUnion
[src]
impl Unpin for SortUnion
[src]
impl UnwindSafe for SortUnion
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,