Pareto chart
A Pareto chart finds the few causes behind most of a total: sorted columns and a cumulative share line, with the items up to a stated threshold highlighted.
- React
import { ParetoChart } from 'boardplot/react/pareto';- Reference
- Data, options and sizing
- Use for
- Few causes, most volume · Customer concentration · Defect causes by count
- Not for
- Negative contributions; pareto accumulates nonnegative parts of one total.
Defect causes with 80% threshold
A Pareto chart of eight defect causes with a cumulative curve and an 80% line; alignment drift (120), adhesive failure (80) and misprint (45) reach 82% of 300 defects.
defect-causes
JSON spec
This spec includes the theme shown and the options you selected.
{
"type": "pareto",
"data": {
"items": [
{
"id": "misprint",
"label": "Misprint",
"value": 45
},
{
"id": "alignment",
"label": "Alignment drift",
"value": 120
},
{
"id": "adhesive",
"label": "Adhesive failure",
"value": 80
},
{
"id": "scratch",
"label": "Surface scratch",
"value": 25
},
{
"id": "warp",
"label": "Panel warp",
"value": 15
},
{
"id": "labelling",
"label": "Labelling error",
"value": 10
},
{
"id": "packaging",
"label": "Packaging damage",
"value": 3
},
{
"id": "other",
"label": "Unclassified",
"value": 2
}
]
},
"options": {
"size": {
"width": 720,
"height": 404
},
"title": "Where the defects come from",
"subtitle": {
"measure": "Defects recorded",
"period": "FY25"
},
"totalScale": true,
"unit": "defects",
"source": "Quality log, plant 2",
"strings": {
"others": "Other causes"
}
}
}Line stops ranked by cause
A ranked column chart of ten line-stop causes with staircase labels; late supplier deliveries (412) and incorrect bill of materials (268) lead, and the top five make up 86% of 1,249 stops.
staircase-labels
JSON spec
This spec includes the theme shown and the options you selected.
Changed from the fixture: options.size from {"width":800,"height":560} to the width of the site frame.
{
"type": "pareto",
"data": {
"items": [
{
"id": "late",
"label": "Late supplier deliveries",
"value": 412
},
{
"id": "bom",
"label": "Incorrect bill of materials",
"value": 268
},
{
"id": "setup",
"label": "Machine setup errors on the press line",
"value": 190
},
{
"id": "training",
"label": "Operator training gaps",
"value": 121
},
{
"id": "packaging",
"label": "Damaged packaging at inbound",
"value": 88
},
{
"id": "bins",
"label": "Mislabelled bins",
"value": 61
},
{
"id": "calibration",
"label": "Calibration drift",
"value": 44
},
{
"id": "scanner",
"label": "Scanner software faults",
"value": 30
},
{
"id": "weather",
"label": "Weather delays",
"value": 21
},
{
"id": "other",
"label": "Other causes",
"value": 14
}
]
},
"options": {
"size": {
"width": 1000
},
"cumulative": false,
"categoryLabels": "staircase",
"title": "Late deliveries and bill-of-materials errors cause most line stops",
"subtitle": {
"measure": "Line stops by cause",
"period": "FY26"
},
"source": "Illustrative plant log"
}
}Top two defect causes at two thirds
A Pareto chart of six defect causes with a cumulative curve; alignment drift (120) and adhesive failure (80) together make up about two thirds of 295 defects.
curve-without-threshold
JSON spec
This spec includes the theme shown and the options you selected.
{
"type": "pareto",
"data": {
"items": [
{
"id": "misprint",
"label": "Misprint",
"value": 45
},
{
"id": "alignment",
"label": "Alignment drift",
"value": 120
},
{
"id": "adhesive",
"label": "Adhesive failure",
"value": 80
},
{
"id": "scratch",
"label": "Surface scratch",
"value": 25
},
{
"id": "warp",
"label": "Panel warp",
"value": 15
},
{
"id": "labelling",
"label": "Labelling error",
"value": 10
}
]
},
"options": {
"size": {
"width": 720,
"height": 404
},
"title": "Alignment drift and adhesive failure make up two thirds of defects",
"subtitle": {
"measure": "Defects recorded",
"period": "FY25"
},
"unit": "defects",
"threshold": false,
"source": "Quality log, plant 2"
}
}Minimal spec
Save this spec as pareto.json and run the command.
{
"type": "pareto",
"data": {
"items": [
{ "id": "billing", "label": "Billing", "value": 80 },
{ "id": "delivery", "label": "Delivery", "value": 15 },
{ "id": "other", "label": "Other", "value": 5 }
]
},
"options": { "unit": "cases", "title": "Billing accounts for 80% of cases", "source": "Illustrative data" }
}npx boardplot render pareto.json --out pareto.svg