Skip to content
Plotly templates

Pareto Chart

Defect categories ranked with cumulative % overlay (80/20 rule).

Template previewPlotly
Rendering…

Make it your own.

{
  "data": [
    { "type":"bar","name":"Defects",
      "x":["Mis-print","Smudge","Mis-align","Wrong colour","Tear","Other"],
      "y":[420,210,140,80,50,30],
      "marker":{"color":"#3666ff"} },
    { "type":"scatter","mode":"lines+markers","name":"Cumulative %",
      "x":["Mis-print","Smudge","Mis-align","Wrong colour","Tear","Other"],
      "y":[46.7,70.0,85.6,94.4,99.4,100.0],
      "yaxis":"y2",
      "line":{"color":"#dc2626","width":2.5},
      "marker":{"size":8,"color":"#dc2626"} }
  ],
  "layout":{
    "title":"Pareto of print defects",
    "xaxis":{"title":"Category"},
    "yaxis":{"title":"Count"},
    "yaxis2":{"title":"Cumulative %","overlaying":"y","side":"right","range":[0,105]},
    "legend":{"x":0.5,"y":1.1,"orientation":"h"}
  }
}