Calm motion: animations on this site only fade, with no movement
Control chart
Measured values over time with the center line and the control limits (SPC)
Watches a process for change, in SPC (statistical process control). A point outside the control limits says that something changed and needs a look. The chart follows the control chart of Walter A. Shewhart.
Basic
| Point | Value | State |
|---|---|---|
| 07:30 | 120.02 mm | in control |
| 08:00 | 119.98 mm | in control |
| 08:30 | 120.05 mm | in control |
| 09:00 | 120.01 mm | in control |
| 09:30 | 119.96 mm | in control |
| 10:00 | 120.03 mm | in control |
| 10:30 | 120 mm | in control |
| 11:00 | 120.07 mm | in control |
| 11:30 | 120.19 mm | out of control |
| 12:00 | 120.04 mm | in control |
| 12:30 | 119.99 mm | in control |
| 13:00 | 120.02 mm | in control |
| 13:30 | 119.81 mm | out of control |
| 14:00 | 120.01 mm | in control |
valuesis the list of measures in time order.pointsgives a label for each, such as the time.center,ucl(upper control limit), andlcl(lower control limit) set the lines. Without them, the chart takes the mean of the values and the mean ± 3 standard deviations.- The limits are dashed red lines, and the mean is a solid line. A point out of control is a red diamond, and a point in control is a circle.
- The caption counts the points out of control and gives the three lines. A hidden table lists each point and its state for screen readers.
unitadds the unit to the numbers.heightsets the height in pixels (default 240). The chart takes the width of its box.- Change the words with
labelsor a label pack. The API table lists the keys.
The controlLimits function works out the lines. It is exported for your own views.
Usage
ts
import { BlessControlChart } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
values* | number[] | — | the measures in time order |
points | string[] | — | a label for each point, for example the time or the sample number |
ucl | number | — | fixed limits; without them, the chart works them out from the values |
lcl | number | — | |
center | number | — | |
unit | string | — | |
height | number | 240 | |
locale | string | "en" | |
labels | Partial<{ title: string; center: string; ucl: string; lcl: string; inControl: string; out: (count: number) => string; point: string; value: string; state: string; ok: string; bad: string; }> | — |