Struct vega_lite_4::CompositionConfig
source · pub struct CompositionConfig {
pub columns: Option<f64>,
pub spacing: Option<f64>,
}
Expand description
Default configuration for all concatenation and repeat view composition operators
(concat
, hconcat
, vconcat
, and repeat
)
Default configuration for the facet
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:
-
This property is only for: - the general (wrappable)
concat
operator (nothconcat
/vconcat
) - thefacet
andrepeat
operator with one field/repetition definition (without row/column nesting) -
Setting the
columns
to1
is equivalent tovconcat
(forconcat
) and to using therow
channel (forfacet
andrepeat
).
spacing: Option<f64>
The default spacing in pixels between composed sub-views.
Default value: 20
Trait Implementations§
source§impl Clone for CompositionConfig
impl Clone for CompositionConfig
source§fn clone(&self) -> CompositionConfig
fn clone(&self) -> CompositionConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more