pub enum DomainUnion {
    DomainUnionWith(DomainUnionWith),
    Enum(DomainEnum),
    UnionArray(Vec<Option<DomainElement>>),
}
Expand description

Customized domain values in the form of constant values or dynamic values driven by a selection.

  1. Constant domain for quantitative fields can take one of the following forms:
  • A two-element array with minimum and maximum values. To create a diverging scale, this two-element array can be combined with the domainMid property. - An array with more than two entries, for Piecewise quantitative scales. - A string value "unaggregated", if the input field is aggregated, to indicate that the domain should include the raw data values prior to the aggregation.
  1. Constant domain for temporal fields can be a two-element array with minimum and maximum values, in the form of either timestamps or the DateTime definition objects.

  2. Constant domain for ordinal and nominal fields can be an array that lists valid input values.

  3. To combine (union) specified constant domain with the field’s values, domain can be an object with a unionWith property that specify constant domain to be combined. For example, domain: {unionWith: [0, 100]} for a quantitative scale means that the scale domain always includes [0, 100], but will include other values in the fields beyond [0, 100].

  4. Domain can also takes an object defining a field or encoding of a selection that interactively determines the scale domain.

Variants§

§

DomainUnionWith(DomainUnionWith)

§

Enum(DomainEnum)

§

UnionArray(Vec<Option<DomainElement>>)

Trait Implementations§

source§

impl Clone for DomainUnion

source§

fn clone(&self) -> DomainUnion

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DomainUnion

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for DomainUnion

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<[&str; 1]> for DomainUnion

source§

fn from(v: [&str; 1]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 10]> for DomainUnion

source§

fn from(v: [&str; 10]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 11]> for DomainUnion

source§

fn from(v: [&str; 11]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 12]> for DomainUnion

source§

fn from(v: [&str; 12]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 13]> for DomainUnion

source§

fn from(v: [&str; 13]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 14]> for DomainUnion

source§

fn from(v: [&str; 14]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 15]> for DomainUnion

source§

fn from(v: [&str; 15]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 16]> for DomainUnion

source§

fn from(v: [&str; 16]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 17]> for DomainUnion

source§

fn from(v: [&str; 17]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 18]> for DomainUnion

source§

fn from(v: [&str; 18]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 19]> for DomainUnion

source§

fn from(v: [&str; 19]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 2]> for DomainUnion

source§

fn from(v: [&str; 2]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 20]> for DomainUnion

source§

fn from(v: [&str; 20]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 21]> for DomainUnion

source§

fn from(v: [&str; 21]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 22]> for DomainUnion

source§

fn from(v: [&str; 22]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 23]> for DomainUnion

source§

fn from(v: [&str; 23]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 24]> for DomainUnion

source§

fn from(v: [&str; 24]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 25]> for DomainUnion

source§

fn from(v: [&str; 25]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 26]> for DomainUnion

source§

fn from(v: [&str; 26]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 27]> for DomainUnion

source§

fn from(v: [&str; 27]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 28]> for DomainUnion

source§

fn from(v: [&str; 28]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 29]> for DomainUnion

source§

fn from(v: [&str; 29]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 3]> for DomainUnion

source§

fn from(v: [&str; 3]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 30]> for DomainUnion

source§

fn from(v: [&str; 30]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 31]> for DomainUnion

source§

fn from(v: [&str; 31]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 32]> for DomainUnion

source§

fn from(v: [&str; 32]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 4]> for DomainUnion

source§

fn from(v: [&str; 4]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 5]> for DomainUnion

source§

fn from(v: [&str; 5]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 6]> for DomainUnion

source§

fn from(v: [&str; 6]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 7]> for DomainUnion

source§

fn from(v: [&str; 7]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 8]> for DomainUnion

source§

fn from(v: [&str; 8]) -> Self

Converts to this type from the input type.
source§

impl From<[&str; 9]> for DomainUnion

source§

fn from(v: [&str; 9]) -> Self

Converts to this type from the input type.
source§

impl From<DomainEnum> for DomainUnion

source§

fn from(original: DomainEnum) -> DomainUnion

Converts to this type from the input type.
source§

impl From<DomainUnionWith> for DomainUnion

source§

fn from(original: DomainUnionWith) -> DomainUnion

Converts to this type from the input type.
source§

impl From<Vec<&str, Global>> for DomainUnion

source§

fn from(v: Vec<&str>) -> Self

Converts to this type from the input type.
source§

impl From<Vec<Option<DomainElement>, Global>> for DomainUnion

source§

fn from(original: Vec<Option<DomainElement>>) -> DomainUnion

Converts to this type from the input type.
source§

impl From<Vec<String, Global>> for DomainUnion

source§

fn from(v: Vec<String>) -> Self

Converts to this type from the input type.
source§

impl Serialize for DomainUnion

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,