[][src]Struct vega_lite_3::CompositionConfig

pub struct CompositionConfig {
    pub columns: Option<f64>,
    pub spacing: Option<f64>,
}

Default configuration for all concatenation view composition operators (concat, hconcat, and vconcat)

Default configuration for the facet view composition operator

Default configuration for the repeat view composition operator

Fields

columns: Option<f64>

The number of columns to include in the view composition layout.

Default value: undefined -- An infinite number of columns (a single row) will be assumed. This is equivalent to hconcat (for concat) and to using the column channel (for facet and repeat).

Note:

  1. This property is only for:
  • the general (wrappable) concat operator (not hconcat/vconcat)
  • the facet and repeat operator with one field/repetition definition (without row/column nesting)
  1. Setting the columns to 1 is equivalent to vconcat (for concat) and to using the row channel (for facet and repeat).
spacing: Option<f64>

The default spacing in pixels between composed sub-views.

Default value: 20

Trait Implementations

impl Clone for CompositionConfig[src]

impl Debug for CompositionConfig[src]

impl Serialize for CompositionConfig[src]

impl<'de> Deserialize<'de> for CompositionConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]