Skip to content
ChartslibraryUI
Get Pro

React control chart

A process over time against its own natural limits, marking the points that are real signals.

Get Pro to install · $79 once<ControlChart />

A control chart separates signal from noise. Every process wobbles; the question is whether this week's number is part of the usual wobble or a real change. The chart draws the values over time with a centre line and natural process limits, and marks the points that are signals.

It is an XmR (individuals) chart: the limits are three sigma from the mean, with sigma estimated from the average moving range, the standard method that doesn't need normal data. Three kinds of signal are marked: a point outside the limits, a run of eight points on one side of the centre, and a steady trend of six points rising or falling. Set a baseline to compute the limits from the period before a change and judge the points after it against them, and a floor so the lower limit never goes below zero. Choose the run-chart form for a median line without limits.

With favorable set, signals in the good direction are coloured good.

When to use

  • Response or resolution times by week
  • Defect, error or incident rates
  • Judging whether a process change really worked

When not to use

Good practice

  • Use at least 15 to 20 points before you trust the limits.
  • Set a baseline to judge points after a change against the old process.
  • Investigate signals; don't react to every point inside the limits.

Installation

Control chart is a Pro chart.

Installation is part of Pro

Get Pro to install it with your access key and the shadcn CLI, and use it in unlimited projects.

Unlock with Pro

Usage

Usage examples are part of Pro

Every example on this page comes with its code in Pro. The props and data shape below are public.

Unlock with Pro

Data

One row per measurement in time order with an x key and a numeric value key.

[{ week: "W1", hours: 7.8 }, { week: "W2", hours: 8.4 }, ...]

Missing values are null. Invalid values make the chart say what’s wrong instead of drawing a misleading picture. How charts handle bad data

Props

Every chart also accepts the shared frame props: title, subtitle, source, height, mode, toolbar. Common API

export interface ControlChartProps extends FrameProps {
  /** Rows to draw, one measurement per row, in time order. See the Data section for the shape. */
  data: Row[];
  /** Key of the x value (date, week, batch). */
  x: string;
  /** Key of the measured value. */
  value: string;
  /** "xmr" (default): mean and natural process limits (±3σ from the average moving range). "run": median only, a run chart. */
  kind?: "xmr" | "run";
  /** Compute the centre line and limits from the first N points only, then hold them, to judge later points against a baseline. Default: all points. */
  baseline?: number;
  /** Lowest possible value, e.g. 0 for counts and durations. The lower limit is not drawn below it. */
  floor?: number;
  /** Which direction is good, to colour signals. Default "none": signals are marked but not judged. */
  favorable?: Favorable;
  /** Number format for values: "currency", "percent", "integer", "compact" or a format object. */
  format?: FormatInput;
}

Line chart

Trends over time for one to four series, with gaps for missing data and marked forecasts.

Pro

Actual vs forecast

Actuals solid, forecast dashed from the last actual, plan line and uncertainty band.

Strip plot

Every observation visible by group, with the median marked.

Sign in to ChartslibraryUI

New here? The same step creates your account.

Continue with Google
or

No password needed. Bought Pro? Use the email you paid with and your license is there. By signing in you agree to the Terms and Privacy policy.