kuva waffle

Waffle chart — proportional grid of filled squares (or circles), one cell per unit.

Input: one row per category with label, value, and optionally color columns.

FlagDefaultDescription
--label-col <COL>0Category label column
--value-col <COL>1Proportional value column
--color-col <COL>Per-category color column (CSS strings); defaults to category10 palette
--rows <N>10Number of grid rows
--cols <N>10Number of grid columns
--gap <F>0.1Gap between cells as a fraction of cell size
--shape <SHAPE>squareCell shape: square or circle
--show-percentsoffAppend percentage to legend labels
--show-countsoffAppend cell count to legend labels
--legend <LABEL>Add a legend
kuva waffle data.tsv --label-col category --value-col value --color-col color

kuva waffle data.tsv --label-col category --value-col value \
    --shape circle --show-percents --legend "Energy Mix" \
    --title "Energy Sources"

See also: Shared flags — output, appearance.