Skip to contents

Package-owned, backend-independent layout settings. Child charts retain separate ECharts options (EChartsOption in src/export/option.ts); this layout does not merge or renumber their axes, series, or legends. Rows fill from left to right, with equally sized cells. Unused final cells remain empty. Settings serialize as ordinary JSON with to_list().

Usage

PanelLayout(ncol = 1L, gap = 12, padding = 0)

Arguments

ncol

Integer [1, Inf): Number of columns.

gap

Numeric [0, Inf): Finite gap between cells in pixels.

padding

Numeric [0, Inf): Finite outer padding in pixels.

Value

PanelLayout: Validated layout settings.

Examples

#> $ncol
#> [1] 2
#> 
#> $gap
#> [1] 12
#> 
#> $padding
#> [1] 0
#>