pub enum DomainUnion {
DomainClass(DomainClass),
Enum(Domain),
UnionArray(Vec<SortElement>),
}Expand description
Customized domain values.
For quantitative fields, domain can take the form of a two-element array with minimum
and maximum values. Piecewise
scales can be created by
providing a domain with more than two entries.
If the input field is aggregated, domain can also be a string value "unaggregated",
indicating that the domain should include the raw data values prior to the aggregation.
For temporal fields, domain can be a two-element array minimum and maximum values, in
the form of either timestamps or the DateTime definition
objects.
For ordinal and nominal fields, domain can be an array that lists valid input
values.
The selection property can be used to interactively
determine the scale
domain.
Variants§
Trait Implementations§
Source§impl Debug for DomainUnion
impl Debug for DomainUnion
Source§impl<'de> Deserialize<'de> for DomainUnion
impl<'de> Deserialize<'de> for DomainUnion
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
Auto Trait Implementations§
impl Freeze for DomainUnion
impl RefUnwindSafe for DomainUnion
impl Send for DomainUnion
impl Sync for DomainUnion
impl Unpin for DomainUnion
impl UnwindSafe for DomainUnion
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