{
  "version": "xarts.series-diagnostics/1",
  "family": "series-diagnostics",
  "provenance": {
    "legacyId": "cusum"
  },
  "document": {
    "header": {
      "title": "Ten Lots from Lift-off to the First Signal",
      "subtitle": "Cumulative deviation from the 250 g target: the upper arm lifts off for good at lot 16 and crosses the decision interval ten lots later"
    },
    "footer": {
      "source": "xarts · demo data",
      "notes": "Illustrative data to explore the chart and replace with your own."
    },
    "spacing": {
      "horizontalPadding": 24,
      "topPadding": 22,
      "bottomPadding": 24,
      "minimumTextGap": 6
    }
  },
  "presentation": {
    "theme": "anlak",
    "dimensions": {
      "width": 800,
      "height": 480
    },
    "locale": "en-US",
    "fonts": "reference",
    "surface": "theme",
    "framePadding": 24
  },
  "output": {
    "filename": "cusum",
    "embedSpec": true,
    "geometryDecimals": 2
  },
  "operation": "cusum",
  "data": {
    "unit": "g",
    "valueLabel": "Net Weight (g)",
    "coordinateLabel": "Lot",
    "rows": [
      {
        "id": "L01",
        "label": "L01",
        "coordinate": 1,
        "value": 248.2
      },
      {
        "id": "L02",
        "label": "L02",
        "coordinate": 2,
        "value": 250
      },
      {
        "id": "L03",
        "label": "L03",
        "coordinate": 3,
        "value": 247.4
      },
      {
        "id": "L04",
        "label": "L04",
        "coordinate": 4,
        "value": 250.9
      },
      {
        "id": "L05",
        "label": "L05",
        "coordinate": 5,
        "value": 250
      },
      {
        "id": "L06",
        "label": "L06",
        "coordinate": 6,
        "value": 249.5
      },
      {
        "id": "L07",
        "label": "L07",
        "coordinate": 7,
        "value": 250.6
      },
      {
        "id": "L08",
        "label": "L08",
        "coordinate": 8,
        "value": 249.4
      },
      {
        "id": "L09",
        "label": "L09",
        "coordinate": 9,
        "value": 248.9
      },
      {
        "id": "L10",
        "label": "L10",
        "coordinate": 10,
        "value": 249.3
      },
      {
        "id": "L11",
        "label": "L11",
        "coordinate": 11,
        "value": 249.3
      },
      {
        "id": "L12",
        "label": "L12",
        "coordinate": 12,
        "value": 250.8
      },
      {
        "id": "L13",
        "label": "L13",
        "coordinate": 13,
        "value": 251.4
      },
      {
        "id": "L14",
        "label": "L14",
        "coordinate": 14,
        "value": 250
      },
      {
        "id": "L15",
        "label": "L15",
        "coordinate": 15,
        "value": 248.7
      },
      {
        "id": "L16",
        "label": "L16",
        "coordinate": 16,
        "value": 251.3
      },
      {
        "id": "L17",
        "label": "L17",
        "coordinate": 17,
        "value": 252.6
      },
      {
        "id": "L18",
        "label": "L18",
        "coordinate": 18,
        "value": 251.3
      },
      {
        "id": "L19",
        "label": "L19",
        "coordinate": 19,
        "value": 250.5
      },
      {
        "id": "L20",
        "label": "L20",
        "coordinate": 20,
        "value": 249.2
      },
      {
        "id": "L21",
        "label": "L21",
        "coordinate": 21,
        "value": 251.8
      },
      {
        "id": "L22",
        "label": "L22",
        "coordinate": 22,
        "value": 251.1
      },
      {
        "id": "L23",
        "label": "L23",
        "coordinate": 23,
        "value": 251.9
      },
      {
        "id": "L24",
        "label": "L24",
        "coordinate": 24,
        "value": 250.2
      },
      {
        "id": "L25",
        "label": "L25",
        "coordinate": 25,
        "value": 251.1
      },
      {
        "id": "L26",
        "label": "L26",
        "coordinate": 26,
        "value": 253
      },
      {
        "id": "L27",
        "label": "L27",
        "coordinate": 27,
        "value": 250.2
      },
      {
        "id": "L28",
        "label": "L28",
        "coordinate": 28,
        "value": 251
      },
      {
        "id": "L29",
        "label": "L29",
        "coordinate": 29,
        "value": 252.1
      },
      {
        "id": "L30",
        "label": "L30",
        "coordinate": 30,
        "value": 250
      },
      {
        "id": "L31",
        "label": "L31",
        "coordinate": 31,
        "value": 251
      },
      {
        "id": "L32",
        "label": "L32",
        "coordinate": 32,
        "value": 250.1
      },
      {
        "id": "L33",
        "label": "L33",
        "coordinate": 33,
        "value": 250.5
      },
      {
        "id": "L34",
        "label": "L34",
        "coordinate": 34,
        "value": 249.7
      },
      {
        "id": "L35",
        "label": "L35",
        "coordinate": 35,
        "value": 249.7
      },
      {
        "id": "L36",
        "label": "L36",
        "coordinate": 36,
        "value": 252.5
      }
    ]
  },
  "process": {
    "center": {
      "source": "provided",
      "value": 250
    },
    "sigma": {
      "source": "estimated",
      "method": "mean-moving-range",
      "divisor": 1.128,
      "baseline": "all-observations"
    },
    "zeroDispersion": "reject"
  },
  "calculation": {
    "order": "strictly-increasing-coordinate",
    "missing": "reject",
    "initial": "zero",
    "recurrence": "two-sided-tabular",
    "signal": "strictly-outside",
    "kSigmas": 0.5,
    "hSigmas": 5
  },
  "layout": {
    "view": "cumulative-deviations",
    "margin": {
      "top": 24,
      "right": 20,
      "bottom": 56,
      "left": 48
    },
    "axisInkPadding": 0,
    "axisMeasurementNumerals": "proportional-nums",
    "domainPaddingFraction": 0.12,
    "nice": true,
    "referenceMarginFraction": 0.28,
    "pointPadding": 0.5,
    "yTicks": 6
  },
  "marks": {
    "decision": {
      "stroke": "negative",
      "strokeWidth": 1.5,
      "strokeDasharray": "6 3",
      "fill": "negative",
      "fillOpacity": 0.06
    },
    "zero": {
      "stroke": "textMuted",
      "strokeWidth": 1,
      "strokeDasharray": ""
    },
    "upper": {
      "stroke": "series.blue",
      "strokeWidth": 2,
      "fill": "series.blue",
      "fillOpacity": 0.12,
      "label": "Cumulative excess"
    },
    "lower": {
      "stroke": "series.teal",
      "strokeWidth": 2,
      "fill": "series.teal",
      "fillOpacity": 0.12,
      "label": "Cumulative shortfall"
    },
    "point": {
      "radius": 2.5,
      "firstSignalRadius": 5.5,
      "firstSignalStrokeWidth": 2,
      "signalColor": "negative"
    }
  },
  "labels": {
    "fontSize": 10,
    "color": "textMuted",
    "signalColor": "negative",
    "decimals": 1,
    "target": "Target",
    "upperArm": "Over target",
    "lowerArm": "Under target",
    "cumulativeDeviation": "Cumulative deviation",
    "beyond": "Beyond decision interval",
    "centerProvided": "Target {center}, declared in the data",
    "centerEstimated": "Target {center}, ESTIMATED as the mean of {n} observations",
    "sigmaProvided": "σ {sigma}, declared",
    "sigmaEstimated": "σ {sigma}, estimated from the mean moving range",
    "design": "k = {k}σ · h = {h}σ",
    "originSeparator": " · ",
    "originY": -6,
    "referenceGap": 6,
    "armOffset": 12,
    "firstSignalOffset": 10,
    "armThresholdFraction": 0.2
  },
  "annotations": []
}
