[−][src]Enum vega_lite_3::Stack
Type of stacking offset if the field should be stacked.
stack
is only applicable for x
and y
channels with continuous domains.
For example, stack
of y
can be used to customize stacking for a vertical bar chart.
stack
can be one of the following values:
"zero"
ortrue
: stacking with baseline offset at zero value of the scale (for creating typical stacked bar and area chart)."normalize"
- stacking with normalized domain (for creating normalized stacked bar and area charts.
-"center"
- stacking with center baseline (for streamgraph).null
orfalse
- No-stacking. This will produce layered bar and area chart.
Default value: zero
for plots with all of the following conditions are true:
(1) the mark is bar
or area
;
(2) the stacked measure channel (x or y) has a linear scale;
(3) At least one of non-position channels mapped to an unaggregated field that is
different from x and y. Otherwise, null
by default.
See also: stack
documentation.
Variants
Bool(bool)
Enum(StackOffset)
Trait Implementations
impl Clone for Stack
[src]
impl Debug for Stack
[src]
impl<'de> Deserialize<'de> for Stack
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl From<StackOffset> for Stack
[src]
fn from(original: StackOffset) -> Stack
[src]
impl From<bool> for Stack
[src]
impl Serialize for Stack
[src]
Auto Trait Implementations
impl RefUnwindSafe for Stack
impl Send for Stack
impl Sync for Stack
impl Unpin for Stack
impl UnwindSafe for Stack
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,