Skip to main content

Module marimekko

Module marimekko 

Source
Expand description

StatMarimekko: variable-width column layouts — variwide charts and Marimekko (mosaic) charts.

Columns are the distinct x values in data order; a column’s width is its share of the summed weight (1 per row when unmapped). Columns sit side by side over x ∈ [0, 1] with an optional gap between them.

  • Variwide: each column is one bar of height y (the first row’s).
  • Mosaic: each column is split by fill into stacked segments whose heights are their share of the column (y ∈ [0, 1]).

Output: one row per bar / segment with xmin/xmax/ymin/ymax, x (the column centre), y (the bar top / segment share), column (the category), value (summed weight), share (of the column in a mosaic, of the total in a variwide) and the carried fill.

Structs§

StatMarimekko
Variwide / Marimekko stat behind GeomMarimekko.