Control chart
ProIs the process stable? Measurements with their mean and control limits. Points outside the limits and long runs on one side are marked once and listed.
pnpm dlx shadcn@latest add @caliper/control-chart2 signals
| Period | Value | Signal |
|---|---|---|
| #4120 | 213 | |
| #4121 | 207 | |
| #4122 | 201 | |
| #4123 | 199 | |
| #4124 | 202 | |
| #4125 | 210 | |
| #4126 | 217 | |
| #4127 | 219 | |
| #4128 | 216 | |
| #4129 | 211 | |
| #4130 | 207 | |
| #4131 | 209 | |
| #4132 | 216 | |
| #4133 | 223 | |
| #4134 | 226 | |
| #4135 | 223 | |
| #4136 | 216 | |
| #4137 | 209 | |
| #4138 | 206 | |
| #4139 | 209 | |
| #4140 | 215 | |
| #4141 | 218 | |
| #4142 | 280 | Above the upper limit |
| #4143 | 210 | |
| #4144 | 202 | |
| #4145 | 198 | |
| #4146 | 200 | |
| #4147 | 207 | |
| #4148 | 225 | |
| #4149 | 227 | |
| #4150 | 224 | |
| #4151 | 219 | |
| #4152 | 215 | |
| #4153 | 216 | |
| #4154 | 223 | 7 in a row above the mean |
| #4155 | 220 |
When to use #
Use it for
- Build times, defect rates, daily error counts.
- Deciding whether a spike needs action or is noise.
Skip it when
- Trends you expect to grow; limits assume a stable process.
- Fewer than about 20 points.
Installation #
pnpm dlx shadcn@latest add @caliper/control-chart
Adds its 6 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
Usage #
Import it from your copy of the source. The example behind the preview comes with the source. It is built from controlLimits and ControlChart.
import { controlLimits, ControlChart } from "@/components/ui/control-chart"
The worked example comes with Pro
The 10-line example behind the preview opens here with a Pro or Team licence.
API reference #
controlLimits
component
No props of its own; it accepts the native props of its root element.
ControlChart
component
Accessibility #
It exposes group and status semantics, with aria-hidden, aria-label, aria-busy and aria-pressed kept in step with state. Changes that matter are announced through a live region.
No custom key handling; Tab and the native activation keys do the work.
Motion #
It declares no animation in its component source. Any transition comes from its stylesheet, which uses the duration tokens that collapse to instant under prefers-reduced-motion.