kuva mosaic

Mosaic / Marimekko chart — two-way contingency table where column widths encode one marginal and stacked segments encode the other.

Input: one row per cell with column-category, row-category, and count/value columns.

FlagDefaultDescription
--col-col <COL>0Column-category column (determines bar widths)
--row-col <COL>1Row-category column (determines stacked segments)
--value-col <COL>2Count or value column
--gap <PX>2.0Pixel gap between tiles
--no-percentsoffHide percentage labels inside tiles
--show-valuesoffShow raw values inside tiles
--legend <LABEL>Add a legend
kuva mosaic data.tsv --col-col region --row-col outcome --value-col count

kuva mosaic data.tsv --col-col region --row-col outcome --value-col count \
    --show-values --title "Outcomes by Region"

See also: Shared flags — output, appearance, axes.