Struct vega_lite_4::DomainUnionWithBuilder
source · pub struct DomainUnionWithBuilder { /* private fields */ }
Expand description
Builder for DomainUnionWith
.
Implementations§
source§impl DomainUnionWithBuilder
impl DomainUnionWithBuilder
sourcepub fn field<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn field<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The field name to extract selected values for, when a selection is projected over multiple fields or encodings.
sourcepub fn selection<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn selection<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The name of a selection.
sourcepub fn encoding<VALUE: Into<SingleDefUnitChannel>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn encoding<VALUE: Into<SingleDefUnitChannel>>( &mut self, value: VALUE ) -> &mut Self
The encoding channel to extract selected values for, when a selection is projected over multiple fields or encodings.
sourcepub fn union_with<VALUE: Into<Vec<SelectionInitInterval>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn union_with<VALUE: Into<Vec<SelectionInitInterval>>>( &mut self, value: VALUE ) -> &mut Self
Customized domain values to be union with the field’s values.
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.
-
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. -
domain
for ordinal and nominal fields can be an array that lists valid input values.
sourcepub fn expr<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn expr<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Vega expression (which can refer to Vega-Lite parameters).
sourcepub fn build(&self) -> Result<DomainUnionWith, DomainUnionWithBuilderError>
pub fn build(&self) -> Result<DomainUnionWith, DomainUnionWithBuilderError>
Trait Implementations§
source§impl Clone for DomainUnionWithBuilder
impl Clone for DomainUnionWithBuilder
source§fn clone(&self) -> DomainUnionWithBuilder
fn clone(&self) -> DomainUnionWithBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for DomainUnionWithBuilder
impl Send for DomainUnionWithBuilder
impl Sync for DomainUnionWithBuilder
impl Unpin for DomainUnionWithBuilder
impl UnwindSafe for DomainUnionWithBuilder
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