kuva slope

Slope chart — compare paired before/after values for multiple items on two axes.

Input: one row per item with columns for label, before value, and after value.

FlagDefaultDescription
--label-col <COL>0Item label column
--before-col <COL>1Before (left axis) value column
--after-col <COL>2After (right axis) value column
--before-label <TEXT>BeforeLeft axis label
--after-label <TEXT>AfterRight axis label
--color-up <CSS>steelblueColor for items that increased
--color-down <CSS>firebrickColor for items that decreased
--no-direction-colorsoffUse a single uniform color for all lines
--show-valuesoffShow value labels at each endpoint
--line-width <PX>1.5Stroke width of slope lines
--dot-radius <PX>4.0Radius of endpoint dots
kuva slope data.tsv --label-col label --before-col before --after-col after

kuva slope data.tsv --label-col label --before-col q1 --after-col q2 \
    --before-label "Q1 2024" --after-label "Q2 2024" \
    --show-values --title "Quarterly Change"

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