Skip to content
Hazine

KPI rows

1 of 6 shipped. Each take is a different structure, and the note under its title says how.

  • kpi rows

    One card per metric in an even grid: every figure has equal weight, with no chart, no comparison between cards and no interaction.

    shadcn add @hazine/stats-grid

    Depends on @hazine/heading, @hazine/metric-card

Planned 5

  • KPI Row as Chart Tabs

    The figures are controls, not just readouts: the row and the chart form one tabbed unit joined by a shared border and an active-tile indicator, so a single chart area serves every metric instead of one chart per number.

  • KPI Tiles with Sparklines

    A row, not a tile: all sparklines share one period and one time axis so shapes can be compared across metrics, a single range label sits in the row header, each tile is a link to its report, and the row scrolls with snap points on narrow screens instead of wrapping. The single tile with its generated summary sentence lives in data display.

    Pro
  • Goal Progress KPI Row

    Values are framed against a target rather than a previous period: the bar includes a pace tick for where progress should be today, and status is derived from the gap to that tick.

    Pro
  • Period Comparison KPI Row

    Both periods are shown as figures with a paired mini bar, not just a delta chip; a per-metric polarity flag decides whether an increase reads as good or bad.

    Pro
  • Hero Number with Supporting Figures

    Deliberately unequal hierarchy: one metric takes most of the width at display size with an inline area chart, and the rest are demoted to a compact stacked list.

    Pro