Input: a header line kpi NAME target T higher_is_better|lower_is_better, then a CSV with date and the KPI column (daily values).
Using the last 7 days and the 7 days before them, print:
trips: last 7 days mean 1333
vs previous 7 days: +8.7% (better)
target 1500: -11.1% -> off track
trend: ▅▆▅▆▇▁▁▆▇▆▇█▂▂ (min 850, max 1600)
The verdict is better or worse depending on the direction (for lower_is_better a decrease is better), or no change if the change is exactly 0; "on track" means mean ≥ target (higher is better) or ≤ target (lower is better). The sparkline maps each of the last 14 values to one of the 8 characters ▁▂▃▄▅▆▇█ with index ⌊(v − min)/(max − min) × 7 + 0.5⌋ (all ▁ if max = min). Means are printed with 0 decimals; percentages with :+.1%.