kuva pyramid

Population pyramid — back-to-back horizontal bar chart for comparing two distributions across age groups or categories.

Input: one row per age group with label, left value, and right value columns.

FlagDefaultDescription
--label-col <COL>0Age/category label column
--left-col <COL>1Left-side value column
--right-col <COL>2Right-side value column
--left-label <TEXT>LeftLabel for the left side (e.g. Male)
--right-label <TEXT>RightLabel for the right side (e.g. Female)
--left-color <CSS>#4C72B0Bar color for the left side
--right-color <CSS>#DD8452Bar color for the right side
--normalizeoffDisplay values as percentage of total
--show-valuesoffShow value labels at bar tips
--legendoffAdd a legend
kuva pyramid data.tsv --label-col age --left-col male --right-col female \
    --left-label Male --right-label Female

kuva pyramid data.tsv --label-col age --left-col male --right-col female \
    --left-label Male --right-label Female \
    --normalize --legend --title "Population by Age"

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