{
  "orthogonal": {
    "margin": {
      "top": 32,
      "right": 76,
      "bottom": 76,
      "left": 76
    },
    "axis": {
      "stroke": "transparent",
      "tickStroke": "transparent",
      "tickLength": 0,
      "labelColor": "#2a2a2a",
      "tickLabelColor": "#3d3d3d",
      "labelFontSize": 14,
      "tickLabelFontSize": 12,
      "labelFontFamily": "'Inter', system-ui, -apple-system, sans-serif",
      "tickLabelFontFamily": "'Inter', system-ui, -apple-system, sans-serif",
      "baselineStroke": "#3d3d3d",
      "baselineWidth": 1.5,
      "titleColor": "#2a2a2a",
      "titleFontSize": 13,
      "titleFontWeight": 700
    },
    "grid": {
      "stroke": "#d6cfbc",
      "strokeOpacity": 1,
      "strokeDasharray": ""
    },
    "spacing": {
      "edge": 16,
      "categoryGap": 0,
      "noteMaxLines": 4,
      "noteLineHeight": 1.4,
      "legend": {
        "fontSize": 11,
        "swatch": 12,
        "labelGap": 6,
        "itemGap": 16,
        "rowGap": 6,
        "rowPadding": 4,
        "plotGap": 20
      },
      "lineGeometry": "segments"
    },
    "measureAxis": true,
    "axisInkPadding": 16,
    "leftLabelOverflow": 0,
    "axisProportionalNumbers": false,
    "domain": {
      "padding": 0.1,
      "nice": true,
      "boundedPercent": false
    },
    "format": {
      "values": "magnitude",
      "axis": "default",
      "compactDecimals": 0
    },
    "colors": {
      "primary": "#112c47",
      "hover": "#1f6f82",
      "stem": "#4b8596",
      "series": {}
    },
    "stemOpacity": 0.8,
    "labelOffset": 7,
    "labelFit": "ranked",
    "percentLabels": {
      "minimumSize": 26,
      "characterWidth": 9,
      "color": "auto",
      "suffix": "%"
    },
    "overlays": {
      "edgePair": false,
      "seriesOpacity": {},
      "lines": {
        "cumulative": {
          "color": "#9c1f1a",
          "dash": "",
          "lineCap": "butt",
          "curve": "linear",
          "pointFill": "#9c1f1a",
          "pointStroke": "none",
          "pointStrokeWidth": 0,
          "legendShape": "line"
        }
      },
      "rightAxis": {
        "domain": [
          0,
          100
        ],
        "padding": 0,
        "nice": false,
        "decimals": 0,
        "trim": true,
        "prefix": "",
        "suffix": "%",
        "measurementDx": "0.5em"
      },
      "references": [
        {
          "axis": "percent",
          "value": 80,
          "color": "#6a6458",
          "width": 1,
          "dash": "4 3"
        }
      ],
      "legend": {
        "container": "flex",
        "order": "before",
        "keys": [],
        "labels": {}
      }
    },
    "legend": {
      "position": "top",
      "exportMeasurement": "glyph-advances"
    }
  },
  "version": "xarts.bars/1",
  "family": "bars",
  "provenance": {
    "legacyId": "pareto"
  },
  "data": {
    "rows": [
      {
        "Category": "Missing Parts",
        "Count": 120
      },
      {
        "Category": "Surface Defects",
        "Count": 95
      },
      {
        "Category": "Wrong Dimensions",
        "Count": 72
      },
      {
        "Category": "Color Mismatch",
        "Count": 54
      },
      {
        "Category": "Weld Failures",
        "Count": 38
      },
      {
        "Category": "Alignment Issues",
        "Count": 26
      },
      {
        "Category": "Material Cracks",
        "Count": 18
      },
      {
        "Category": "Label Errors",
        "Count": 12
      },
      {
        "Category": "Other",
        "Count": 9
      }
    ]
  },
  "encoding": {
    "category": "Category",
    "value": "Count"
  },
  "calculation": {
    "normalize": "none",
    "negative": "reject",
    "duplicates": "reject",
    "order": "input",
    "requireDescending": true,
    "integerValues": true,
    "positiveTotal": true
  },
  "layout": {
    "orientation": "vertical",
    "arrangement": "single",
    "seriesOrder": [],
    "bandPadding": 0.2,
    "groupPadding": 0.14
  },
  "marks": {
    "colorMap": {},
    "radius": 0,
    "opacity": 0.9,
    "colorBy": "series",
    "geometry": "bar"
  },
  "labels": {
    "visible": false,
    "segments": false,
    "decimals": 0,
    "divisor": 1,
    "prefix": "",
    "suffix": "",
    "fontSize": 13,
    "totals": false,
    "totalsValue": "source"
  },
  "axes": {
    "valueTitle": "",
    "grid": true,
    "ticks": 5
  },
  "legend": {
    "visible": false
  },
  "target": {
    "visible": false,
    "label": "Target"
  },
  "lines": [
    {
      "id": "cumulative",
      "label": "Cumulative %",
      "measure": "running-percent",
      "axis": "percent",
      "quantizeDecimals": 1,
      "color": "negative",
      "width": 2,
      "points": true,
      "radius": 3.5,
      "decimals": 1
    }
  ],
  "annotations": [],
  "document": {
    "header": {
      "title": "Defect Pareto Analysis",
      "subtitle": "Defects by cause, with the cumulative share"
    },
    "footer": {
      "source": "xarts · demo data",
      "notes": "Illustrative data to explore the chart and replace with your own."
    },
    "spacing": {
      "horizontalPadding": 32,
      "topPadding": 24,
      "bottomPadding": 24,
      "minimumTextGap": 6
    }
  },
  "presentation": {
    "theme": "anlak",
    "dimensions": {
      "width": 800,
      "height": 540
    },
    "locale": "en-US",
    "fonts": "reference",
    "surface": "theme",
    "framePadding": 24
  },
  "output": {
    "filename": "pareto",
    "embedSpec": true,
    "geometryDecimals": 2
  }
}
