The preview above is the live component gallery. Open it full size to switch between desktop and phone widths.
Options
Examples
A loss stored as a positive amount
A step’s sign comes from its value. Make churn negative with a SQL metric:How the numbers work
- Start is the metric when the period starts; end is the metric when it ends, read the way a KPI reads it.
- Steps are summed over the period, with the same filters, segments and horizon as the ends.
- Start and end come from the data, never from the steps. When start plus the steps doesn’t equal the end, the gap is its own “Unexplained” bar (HM4092). Hatchmark never moves a number to close it.
- The gap is exact for integer and decimal columns. Float columns allow for rounding.
- With
range: all_timethe bridge starts at 0. - When the metric’s rows, under the block’s filters, start inside the period, the bridge starts at the first day that has them, and the steps cover the days after it, so that day’s changes aren’t counted twice. A one-day period that holds that first day starts and ends on it.
Behavior
- Start and end rise from zero in grey; each step floats on the running total.
- A step’s colour follows the metric’s
better: good when it moves the balance the right way. - Each bar carries its signed value. On narrow cards the chart becomes rows, so step names aren’t cut.
- Hover, tap or the arrow keys show the change and the balance after it.
- When the period has an end value but its metric has no rows before the period or inside it, the card draws the end alone and says why.
Checks
hatchmark explain <code> explains a check and how to fix it.