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.
- 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.
-
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.
-
Constant domain
for ordinal and nominal fields can be an array that lists valid
input values.
-
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]
.
-
Domain can also takes an object defining a field or encoding of a selection that
interactively
determines the scale
domain.
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
Deserialize this value from the given Serde deserializer.
Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Serialize this value into the given Serde serializer.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.