{
  "version": "xarts.series-diagnostics/1",
  "family": "series-diagnostics",
  "provenance": {
    "legacyId": "attribute-control"
  },
  "document": {
    "header": {
      "title": "The Worst-Looking Lot Is Not the Signal",
      "subtitle": "Reject rate by lot, judged against limits that widen when the lot is small"
    },
    "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": "attribute-control",
    "embedSpec": true,
    "geometryDecimals": 2
  },
  "operation": "attribute-control",
  "data": {
    "unit": null,
    "countLabel": "Rechazados (viales, inspección visual)",
    "exposureLabel": "Inspeccionados (viales del lote)",
    "coordinateLabel": "Lote",
    "rows": [
      {
        "id": "lot-1",
        "label": "L01",
        "count": 47,
        "exposure": 1180
      },
      {
        "id": "lot-2",
        "label": "L02",
        "count": 52,
        "exposure": 1244
      },
      {
        "id": "lot-3",
        "label": "L03",
        "count": 49,
        "exposure": 1301
      },
      {
        "id": "lot-4",
        "label": "L04",
        "count": 55,
        "exposure": 1276
      },
      {
        "id": "lot-5",
        "label": "L05",
        "count": 51,
        "exposure": 1330
      },
      {
        "id": "lot-6",
        "label": "L06",
        "count": 46,
        "exposure": 1288
      },
      {
        "id": "lot-7",
        "label": "L07",
        "count": 14,
        "exposure": 196
      },
      {
        "id": "lot-8",
        "label": "L08",
        "count": 58,
        "exposure": 1352
      },
      {
        "id": "lot-9",
        "label": "L09",
        "count": 54,
        "exposure": 1410
      },
      {
        "id": "lot-10",
        "label": "L10",
        "count": 61,
        "exposure": 1367
      },
      {
        "id": "lot-11",
        "label": "L11",
        "count": 48,
        "exposure": 1298
      },
      {
        "id": "lot-12",
        "label": "L12",
        "count": 57,
        "exposure": 1441
      },
      {
        "id": "lot-13",
        "label": "L13",
        "count": 50,
        "exposure": 1385
      },
      {
        "id": "lot-14",
        "label": "L14",
        "count": 44,
        "exposure": 1256
      },
      {
        "id": "lot-15",
        "label": "L15",
        "count": 56,
        "exposure": 1329
      },
      {
        "id": "lot-16",
        "label": "L16",
        "count": 59,
        "exposure": 1402
      },
      {
        "id": "lot-17",
        "label": "L17",
        "count": 45,
        "exposure": 1298
      },
      {
        "id": "lot-18",
        "label": "L18",
        "count": 53,
        "exposure": 1361
      },
      {
        "id": "lot-19",
        "label": "L19",
        "count": 48,
        "exposure": 1290
      },
      {
        "id": "lot-20",
        "label": "L20",
        "count": 57,
        "exposure": 1344
      },
      {
        "id": "lot-21",
        "label": "L21",
        "count": 164,
        "exposure": 3120
      },
      {
        "id": "lot-22",
        "label": "L22",
        "count": 52,
        "exposure": 1372
      },
      {
        "id": "lot-23",
        "label": "L23",
        "count": 47,
        "exposure": 1295
      },
      {
        "id": "lot-24",
        "label": "L24",
        "count": 50,
        "exposure": 1318
      }
    ]
  },
  "calculation": {
    "model": "p",
    "assumption": "reference-default",
    "order": "input-order",
    "missing": "reject",
    "center": {
      "source": "estimated",
      "baseline": "all-subgroups"
    },
    "limitMultiplier": 3,
    "lowerLimit": "truncate-zero",
    "signal": "strictly-outside",
    "minimumBaselineForWarning": 20
  },
  "layout": {
    "view": "subgroups-and-stepped-limits",
    "margin": {
      "top": 30,
      "right": 22,
      "bottom": 44,
      "left": 56
    },
    "domainPaddingFraction": 0.12,
    "axisInkPadding": 0,
    "axisMeasurementNumerals": "proportional-nums",
    "yTicks": 5,
    "minimumStepWidth": 3,
    "warningGap": 6,
    "warningOffset": 8,
    "signalLabelOffset": 10,
    "legendExportMeasurement": "basic-pairs"
  },
  "marks": {
    "points": {
      "color": "series.blue",
      "radius": 3.2,
      "signalColor": "negative",
      "signalRadius": 5,
      "signalStrokeWidth": 1.6
    },
    "connection": {
      "color": "series.blue",
      "width": 1.4,
      "opacity": 0.55
    },
    "limits": {
      "color": "textSecondary",
      "width": 1.25,
      "dash": "5,3",
      "fill": "series.blue",
      "fillOpacity": 0.09,
      "truncatedColor": "warning",
      "truncatedWidth": 3
    },
    "center": {
      "color": "textPrimary",
      "width": 1.4
    }
  },
  "labels": {
    "fontSize": 11,
    "warningColor": "negative",
    "model": {
      "p": "Carta p · binomial",
      "np": "Carta np · binomial",
      "c": "Carta c · Poisson",
      "u": "Carta u · Poisson"
    },
    "undeclaredAssumption": "MODELO SIN DECLARAR",
    "undeclaredUnit": "unidad sin declarar",
    "warningAssumption": "modelo sin declarar: los límites salen del modelo por defecto, no de una decisión",
    "warningShort": "{baseline} subgrupos, por debajo de {minimum}: el centro todavía no es un criterio",
    "warningTruncation": "LCL recortado a cero en {truncated} de {n} subgrupos: ahí la carta no puede detectar una mejora",
    "variableLimits": [
      "Límites {k}σ · uno por subgrupo · n de {minExposure} a {maxExposure}",
      "Límites {k}σ · n de {minExposure} a {maxExposure}",
      "{k}σ · n {minExposure}–{maxExposure}"
    ],
    "constantLimits": [
      "Límites {k}σ · subgrupo constante · n = {minExposure}",
      "Límites {k}σ · n = {minExposure}",
      "{k}σ · n {minExposure}"
    ],
    "center": "Centro {center}",
    "above": "Por encima de SU límite: señal",
    "below": "Por debajo de SU límite: señal",
    "inside": "Dentro de sus propios límites",
    "tooltipOf": " de ",
    "tooltipLimits": " · límites ",
    "proportionDecimals": 1,
    "rateDecimals": 2
  },
  "annotations": []
}
