Charts
Histogram
A distribution against specification limits, with n, mean, standard deviation and Cpk stated in words.
npx dtheo@latest add histogramOvershoot across all runsRA-14 hip pitch · Bench 3 · since firmware 4.16
Use the arrow keys to move between bins. Hold Shift for larger steps.
- n
- 412
- Mean
- 5.6 %
- σ
- 2.5 %
- Cpk
- 0.60 · not capable
When to use
- Test results and quality data against a spec
- Is this run unusual, or is the whole process off?
- A few categories: use Bar chart
- Two measures together: use Scatter chart
API
values- Raw measurements, one per run or part.
number[] binWidth- Bin width in the values’ unit. Defaults to the Freedman–Diaconis rule.
number lower- Lower specification limit. Bins below it turn critical; Cpk uses it.
number upper- Upper specification limit. Bins above it turn critical; Cpk uses it.
number marker- Call out one value, such as this run.
{ value: number; label: string } normal= false- Overlay the normal curve with the sample mean and standard deviation.
boolean
Keyboard
- Arrow leftright
- Move to the next bin
- Shift + arrow
- Skip a tenth of the bins
- HomeEnd
- Jump to the first or last bin
- Escape
- Clear the readout
- Bins outside the limits turn critical and the readout says "out of spec".
- Cpk carries a word (capable, marginal, not capable) next to its number.