Charts / React BI charts / Time series
A process measured day by day against its centre line and control limits, with Western Electric or Nelson rule violations flagged and limits recalculated after a process change.
React component ControlChart, data through props. One or more measures over a continuous run of time. Tags: control chart, spc, shewhart, xmr, p chart, nelson rules, western electric, quality.
npm i klar-charts
import 'klar-charts/styles.css'
import { ThemeScope, ControlChart } from 'klar-charts'
# or copy the source:
npx shadcn@latest add https://klar.run/r/bi-control-chart.json<ControlChart
data={m === 'xmr' ? fulfilment.xmr : fulfilment.p}
mode={m as 'xmr' | 'p'}
ruleset={r as 'western-electric' | 'nelson'}
unit="h"
valueLabel={m === 'xmr' ? 'Fulfilment time' : 'Late share'}
subgroupNoun="Day"
height={m === 'xmr' ? 480 : 420}
/>