Skip to content
DocsChartsTarget trendLast updated Nov 2, 2026

Target trend

A measure against its target, and when it slipped. Sample data: P95 run time, last 6 hours, 9.1 s against a 5 s target, doubled since 09:40.

p95 run time against the targetp95 run time held between 4.3 s and 4.7 s under the 5 s target until 09:40, then rose to 9.1 s now.05 S10 STARGET 5 SDOUBLED 09:409.1 s04:4007:40NOWP95 RUN TIMETARGET
p95 run time against the target
Timep95 run time (s)
04:404.3
04:504.62
05:004.44
05:104.36
05:204.68
05:304.7
05:404.68
05:504.41
06:004.43
06:104.36
06:204.41
06:304.52
06:404.4
06:504.55
07:004.55
07:104.55
07:204.49
07:304.62
07:404.4
07:504.31
08:004.63
08:104.34
08:204.64
08:304.58
08:404.64
08:504.43
09:004.56
09:104.56
09:204.57
09:304.55
09:405.87
09:506.86
10:008.11
10:109.35
10:209.17
10:309.22
10:409.1
p95 run time against the targetp95 run time held between 4.3 s and 4.7 s under the 5 s target until 09:40, then rose to 9.1 s now.05 S10 STARGET 5 SDOUBLED 09:409.1 s04:4007:40NOWP95 RUN TIMETARGET
p95 run time against the target
Timep95 run time (s)
04:404.3
04:504.62
05:004.44
05:104.36
05:204.68
05:304.7
05:404.68
05:504.41
06:004.43
06:104.36
06:204.41
06:304.52
06:404.4
06:504.55
07:004.55
07:104.55
07:204.49
07:304.62
07:404.4
07:504.31
08:004.63
08:104.34
08:204.64
08:304.58
08:404.64
08:504.43
09:004.56
09:104.56
09:204.57
09:304.55
09:405.87
09:506.86
10:008.11
10:109.35
10:209.17
10:309.22
10:409.1

Installation

  1. 1

    Set up the registry once

    Your token in .env and @chartory in components.json. Skip this when another chart is already installed.

    Installation guide
  2. 2

    Add the chart

    One command adds the Target trend component to your project.

    npx shadcn add @chartory/target-trend
  3. 3

    Use it

    Pass your rows. The props are the Figma properties.

    usage.tsx
    import { TargetTrend }  from "@/components/chartory/target-trend"<TargetTrend  data={p95RunTime}  size="m"  legend/>

Props

<TargetTrend>

Every prop but data is a Figma property with the same name and values.

PropTypeDefault
data: The chart's data. The tables below list every field.TargetTrendDataRequired
size: The size class. Each one is laid out again from the data."xs" | "s" | "m" | "l""m"
legend: Shows the legend row under the plot.booleantrue

TargetTrendData

The data prop: one object for the whole chart.

PropTypeDefault
vals: The values, in order.number[]Required
min: The bottom of the value scale.numberRequired
max: The top of the value scale.numberRequired
target: The target value.numberRequired
ticks: The axis ticks: [value, label] pairs.[number, string][]Required
tok: The colour token, e.g. "data/primary".stringRequired
change: The change point: index and label.TargetTrendChangeRequired
xl: The x axis labels: [position, label] pairs.[number, string][]Required
endText: The label at the end.stringRequired
targetText: The target's label.stringRequired

TargetTrendChange

The change object.

PropTypeDefault
i: The index of the item it belongs to.numberRequired
text: The label as shown.stringRequired

The data as a JSON Schema: schemas/target-trend.json

Target trend chart: a React and Figma chart in four sizes

What does a target trend chart show?

A target trend chart draws one measure against a target line and marks the moment it crossed or doubled. A dashed target, a marker at the change and the latest value make the slip clear. Use it for run times, latency and error rates that have a service target.

Chartory ships it as a Figma component and a React component with the same name. The code installs from the shadcn registry with one command and lands in your project as a file you own.

What is the Target trend component?

It is one <TargetTrend> component. Its props are the Figma properties with the same names and values, and the props table above lists them. The data is one value per point, a target.

Sizes XS, S, M and L re-lay the chart out from the data instead of scaling it, so labels stay readable at every size.

When should I use it?

  • Is there a target? Yes means the target trend fits.
  • Is the slip itself the story? Yes means the target trend fits.
  • Is it one measure? Yes means the target trend fits.

When does another type fit better?

  • No target to hold. Use Line chart instead.
  • The steps of an incident. Use Incident tape instead.
  • Several regions or models. Use Multi-line chart instead.

Target trend questions

Installing, data, Figma and plans.

  • Yes. It installs through the shadcn registry with the shadcn CLI, and the file lands in your project.

Stay in the loop

New charts, by email.

Get an email when new chart types and releases ship.

Unsubscribe any time.