[][src]Struct vega_lite_4::DomainUnionWithBuilder

pub struct DomainUnionWithBuilder { /* fields omitted */ }

Builder for DomainUnionWith.

Implementations

impl DomainUnionWithBuilder[src]

pub fn field<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self[src]

The field name to extract selected values for, when a selection is projected over multiple fields or encodings.

pub fn selection<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self[src]

The name of a selection.

pub fn encoding<VALUE: Into<SingleDefUnitChannel>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

The encoding channel to extract selected values for, when a selection is projected over multiple fields or encodings.

pub fn union_with<VALUE: Into<Vec<SelectionInitInterval>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

Customized domain values to be union with the field's values.

  1. domain for quantitative fields can take one of the following forms:
  • a two-element array with minimum and maximum values. - an array with more than two entries, for Piecewise quantitative scales. (Alternatively, the domainMid property can be set for a diverging scale.) - 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. domain for temporal fields can be a two-element array minimum and maximum values, in the form of either timestamps or the DateTime definition objects.

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

pub fn expr<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self[src]

Vega expression (which can refer to Vega-Lite parameters).

pub fn build(&self) -> Result<DomainUnionWith, String>[src]

Builds a new DomainUnionWith.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for DomainUnionWithBuilder[src]

impl Default for DomainUnionWithBuilder[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> 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.