{
  "version": "xarts.ordered-series/1",
  "family": "ordered-series",
  "operation": "regression-bands",
  "provenance": {
    "legacyId": "confidence-band"
  },
  "data": {
    "x": {
      "label": "Ad Spend",
      "unit": "$K",
      "prefix": "$",
      "suffix": "K"
    },
    "y": {
      "label": "Actual Revenue",
      "unit": "$K",
      "prefix": "$",
      "suffix": "K"
    },
    "rows": [
      {
        "id": "observation-1",
        "label": "Observation 1",
        "x": 10,
        "y": 42
      },
      {
        "id": "observation-2",
        "label": "Observation 2",
        "x": 15,
        "y": 55
      },
      {
        "id": "observation-3",
        "label": "Observation 3",
        "x": 18,
        "y": 48
      },
      {
        "id": "observation-4",
        "label": "Observation 4",
        "x": 22,
        "y": 63
      },
      {
        "id": "observation-5",
        "label": "Observation 5",
        "x": 25,
        "y": 72
      },
      {
        "id": "observation-6",
        "label": "Observation 6",
        "x": 28,
        "y": 68
      },
      {
        "id": "observation-7",
        "label": "Observation 7",
        "x": 30,
        "y": 80
      },
      {
        "id": "observation-8",
        "label": "Observation 8",
        "x": 33,
        "y": 78
      },
      {
        "id": "observation-9",
        "label": "Observation 9",
        "x": 35,
        "y": 88
      },
      {
        "id": "observation-10",
        "label": "Observation 10",
        "x": 38,
        "y": 85
      },
      {
        "id": "observation-11",
        "label": "Observation 11",
        "x": 40,
        "y": 95
      },
      {
        "id": "observation-12",
        "label": "Observation 12",
        "x": 42,
        "y": 92
      },
      {
        "id": "observation-13",
        "label": "Observation 13",
        "x": 45,
        "y": 100
      },
      {
        "id": "observation-14",
        "label": "Observation 14",
        "x": 48,
        "y": 105
      },
      {
        "id": "observation-15",
        "label": "Observation 15",
        "x": 50,
        "y": 108
      },
      {
        "id": "observation-16",
        "label": "Observation 16",
        "x": 52,
        "y": 112
      },
      {
        "id": "observation-17",
        "label": "Observation 17",
        "x": 55,
        "y": 115
      },
      {
        "id": "observation-18",
        "label": "Observation 18",
        "x": 58,
        "y": 120
      },
      {
        "id": "observation-19",
        "label": "Observation 19",
        "x": 60,
        "y": 125
      },
      {
        "id": "observation-20",
        "label": "Observation 20",
        "x": 62,
        "y": 118
      },
      {
        "id": "observation-21",
        "label": "Observation 21",
        "x": 65,
        "y": 130
      },
      {
        "id": "observation-22",
        "label": "Observation 22",
        "x": 68,
        "y": 135
      },
      {
        "id": "observation-23",
        "label": "Observation 23",
        "x": 70,
        "y": 140
      },
      {
        "id": "observation-24",
        "label": "Observation 24",
        "x": 72,
        "y": 132
      },
      {
        "id": "observation-25",
        "label": "Observation 25",
        "x": 75,
        "y": 145
      },
      {
        "id": "observation-26",
        "label": "Observation 26",
        "x": 78,
        "y": 150
      },
      {
        "id": "observation-27",
        "label": "Observation 27",
        "x": 80,
        "y": 148
      },
      {
        "id": "observation-28",
        "label": "Observation 28",
        "x": 85,
        "y": 158
      },
      {
        "id": "observation-29",
        "label": "Observation 29",
        "x": 90,
        "y": 165
      },
      {
        "id": "observation-30",
        "label": "Observation 30",
        "x": 95,
        "y": 175
      }
    ]
  },
  "calculation": {
    "model": "ordinary-least-squares-with-intercept",
    "weights": "equal",
    "confidence": 0.95,
    "critical": {
      "kind": "provided-rounded",
      "value": 2.048,
      "degreesOfFreedom": 28,
      "confidence": 0.95,
      "decimals": 3
    },
    "steps": 80,
    "xPadding": 0.05,
    "yPadding": 0.1,
    "yOrigin": "zero",
    "domainInterval": "prediction",
    "highlights": 0
  },
  "layout": {
    "view": "band-explorer",
    "margin": {
      "top": 24,
      "right": 20,
      "bottom": 56,
      "left": 48
    },
    "xTicks": 6,
    "yTicks": 6,
    "axisInkPadding": 0,
    "maxAxisHeight": 88,
    "edgeGap": 8,
    "exportTextMeasurement": "glyph-advances",
    "axisMeasurementNumerals": "proportional-nums",
    "legendExportMeasurement": "basic-pairs"
  },
  "marks": {
    "point": {
      "visible": true,
      "color": "series.blue",
      "radius": 4,
      "opacity": 0.7,
      "stroke": "surface",
      "strokeWidth": 1.5,
      "label": "Data"
    },
    "line": {
      "color": "series.blue",
      "width": 2
    },
    "mean": {
      "visible": true,
      "color": "series.blue",
      "opacity": 0.25,
      "label": "{confidence}% CI"
    },
    "prediction": {
      "visible": true,
      "color": "series.blue",
      "opacity": 0.1,
      "label": "{confidence}% PI"
    },
    "residual": {
      "color": "accent",
      "ringWidth": 2,
      "ringGap": 3.5,
      "width": 1.25,
      "dash": "3 3"
    }
  },
  "labels": {
    "showAxes": false,
    "residualFontSize": 11,
    "residualWeight": 600,
    "residualColor": "textPrimary",
    "residualGap": 6,
    "maxResidualWidth": 132,
    "slope": "pendiente",
    "meanInterval": "de la media",
    "predictionInterval": "de una observación",
    "predicted": "Predicted",
    "residual": "residuo"
  },
  "summary": {
    "visible": false,
    "fontSize": 11,
    "titleFontSize": 13,
    "color": "textPrimary",
    "secondaryColor": "textSecondary",
    "background": "surface",
    "opacity": 0.88,
    "border": "borderLight",
    "paddingX": 10,
    "paddingY": 8,
    "lineGap": 4,
    "radius": 2
  },
  "annotations": [],
  "interaction": {
    "tooltip": true,
    "legend": true,
    "zoom": true
  },
  "document": {
    "header": {
      "title": "Ad Spend vs Revenue",
      "subtitle": "OLS regression with 95% confidence and prediction intervals"
    },
    "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": "confidence-band",
    "embedSpec": true,
    "geometryDecimals": 2
  }
}
