{
  "version": "xarts.intervals/1",
  "family": "intervals",
  "operation": "nested-ranges",
  "provenance": {
    "legacyId": "gradient-interval"
  },
  "document": {
    "textOverflow": "preserve",
    "header": {
      "title": "Election Forecast Margins",
      "subtitle": "Forecast margin by state with 50%, 80% and 95% ranges"
    },
    "footer": {
      "source": "xarts · demo data",
      "notes": "Illustrative data to explore the chart and replace with your own."
    },
    "spacing": {
      "horizontalPadding": 24,
      "topPadding": 22,
      "bottomPadding": 16,
      "minimumTextGap": 4
    }
  },
  "presentation": {
    "theme": "anlak",
    "dimensions": {
      "width": 800,
      "height": 560
    },
    "locale": "en-US",
    "fonts": "reference",
    "surface": "theme",
    "framePadding": 24
  },
  "output": {
    "filename": "gradient-interval-quality",
    "embedSpec": true,
    "geometryDecimals": 2
  },
  "data": {
    "rows": [
      {
        "id": "row-1",
        "label": "Arizona",
        "value": 1.2,
        "levels": [
          -3.5,
          -1.8,
          0,
          2.4,
          4.2,
          5.9
        ],
        "target": null
      },
      {
        "id": "row-2",
        "label": "Georgia",
        "value": 0.5,
        "levels": [
          -4.2,
          -2.3,
          -0.6,
          1.6,
          3.3,
          5.2
        ],
        "target": null
      },
      {
        "id": "row-3",
        "label": "Michigan",
        "value": 3.8,
        "levels": [
          -0.5,
          1.2,
          2.6,
          5,
          6.4,
          8.1
        ],
        "target": null
      },
      {
        "id": "row-4",
        "label": "Nevada",
        "value": 0.8,
        "levels": [
          -4,
          -2,
          -0.3,
          1.9,
          3.6,
          5.6
        ],
        "target": null
      },
      {
        "id": "row-5",
        "label": "Pennsylvania",
        "value": 2.1,
        "levels": [
          -2.2,
          -0.4,
          1,
          3.2,
          4.6,
          6.4
        ],
        "target": null
      },
      {
        "id": "row-6",
        "label": "Wisconsin",
        "value": 3.2,
        "levels": [
          -1,
          0.8,
          2.1,
          4.3,
          5.6,
          7.4
        ],
        "target": null
      },
      {
        "id": "row-7",
        "label": "North Carolina",
        "value": -0.5,
        "levels": [
          -5.3,
          -3.2,
          -1.7,
          0.7,
          2.2,
          4.3
        ],
        "target": null
      },
      {
        "id": "row-8",
        "label": "Florida",
        "value": -2.1,
        "levels": [
          -7,
          -5,
          -3.3,
          -0.9,
          0.8,
          2.8
        ],
        "target": null
      }
    ]
  },
  "source": {
    "kind": "provided-quantiles",
    "unit": "percentage points",
    "levels": [
      {
        "probability": 0.025,
        "label": "Q2.5"
      },
      {
        "probability": 0.1,
        "label": "Q10"
      },
      {
        "probability": 0.25,
        "label": "Q25"
      },
      {
        "probability": 0.75,
        "label": "Q75"
      },
      {
        "probability": 0.9,
        "label": "Q90"
      },
      {
        "probability": 0.975,
        "label": "Q97.5"
      }
    ],
    "estimateDescription": "Provided forecast point estimate"
  },
  "calculation": {
    "order": "input",
    "domain": {
      "basis": "levels",
      "includeZero": false,
      "paddingRatio": 0.1,
      "nice": true
    },
    "estimateWithin": "none"
  },
  "layout": {
    "orientation": "horizontal",
    "scales": "shared-as-reported",
    "margin": {
      "top": 32,
      "right": 48,
      "bottom": 64,
      "left": 160
    },
    "bandPadding": 0.3
  },
  "layers": [
    {
      "id": "coverage-95",
      "label": "95%",
      "lower": 0,
      "upper": 5,
      "height": 0.7,
      "fill": "series.blue",
      "opacity": 0.15,
      "hoverOpacity": 0.195,
      "radius": 2,
      "coverage": 0.95
    },
    {
      "id": "coverage-80",
      "label": "80%",
      "lower": 1,
      "upper": 4,
      "height": 0.5,
      "fill": "series.blue",
      "opacity": 0.3,
      "hoverOpacity": 0.39,
      "radius": 2,
      "coverage": 0.8
    },
    {
      "id": "coverage-50",
      "label": "50%",
      "lower": 2,
      "upper": 3,
      "height": 0.3,
      "fill": "series.blue",
      "opacity": 0.55,
      "hoverOpacity": 0.7150000000000001,
      "radius": 2,
      "coverage": 0.5
    }
  ],
  "marks": {
    "focal": {
      "kind": "dot",
      "fill": "series.blue",
      "opacity": 1,
      "hoverOpacity": 1,
      "radius": 5,
      "hoverRadiusFactor": 1.3,
      "stroke": "surface",
      "strokeWidth": 2
    },
    "target": {
      "visible": false,
      "color": "textPrimary",
      "width": 2
    },
    "reference": {
      "visible": true,
      "value": 0,
      "color": "textMuted",
      "width": 1,
      "dash": "4,3"
    }
  },
  "axes": {
    "valueTicks": 6,
    "categoryTicks": "all",
    "gridColumns": false,
    "gridRows": true,
    "baseline": true,
    "leftBaseline": false,
    "tickLabelFontSize": 14,
    "exportMeasurement": "shaped",
    "valueFormat": "signed-percent",
    "labelOverflow": "reject"
  },
  "labels": {
    "value": "Estimate",
    "target": "Target"
  },
  "interaction": {
    "tooltip": true
  },
  "annotations": []
}
