{
  "version": "xarts.intervals/1",
  "family": "intervals",
  "operation": "nested-ranges",
  "provenance": {
    "legacyId": "bullet"
  },
  "document": {
    "textOverflow": "preserve",
    "header": {
      "title": "KPI Dashboard",
      "subtitle": "Actual vs target for key metrics"
    },
    "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": "bullet-quality",
    "embedSpec": true,
    "geometryDecimals": 2
  },
  "data": {
    "rows": [
      {
        "id": "row-1",
        "label": "Revenue",
        "value": 270,
        "levels": [
          150,
          225,
          300
        ],
        "target": 250
      },
      {
        "id": "row-2",
        "label": "Profit",
        "value": 165,
        "levels": [
          100,
          160,
          200
        ],
        "target": 180
      },
      {
        "id": "row-3",
        "label": "Customer Satisfaction",
        "value": 82,
        "levels": [
          50,
          70,
          90
        ],
        "target": 75
      },
      {
        "id": "row-4",
        "label": "Market Share",
        "value": 43,
        "levels": [
          30,
          45,
          60
        ],
        "target": 50
      },
      {
        "id": "row-5",
        "label": "Employee Engagement",
        "value": 68,
        "levels": [
          40,
          60,
          80
        ],
        "target": 70
      }
    ]
  },
  "source": {
    "kind": "performance-thresholds",
    "unit": "Unspecified in source",
    "comparability": "unspecified",
    "levels": [
      {
        "label": "Poor Range"
      },
      {
        "label": "Satisfactory Range"
      },
      {
        "label": "Good Range"
      }
    ],
    "direction": "higher-is-better",
    "baseline": 0
  },
  "calculation": {
    "order": "input",
    "domain": {
      "basis": "levels",
      "includeZero": true,
      "paddingRatio": 0.05,
      "nice": true
    },
    "estimateWithin": "none"
  },
  "layout": {
    "orientation": "horizontal",
    "scales": "shared-as-reported",
    "margin": {
      "top": 32,
      "right": 48,
      "bottom": 64,
      "left": 220
    },
    "bandPadding": 0.3
  },
  "layers": [
    {
      "id": "threshold-2",
      "label": "Good Range",
      "lower": null,
      "upper": 2,
      "height": 1,
      "fill": "#eeeae3",
      "opacity": 1,
      "hoverOpacity": 1,
      "radius": 0,
      "coverage": null
    },
    {
      "id": "threshold-1",
      "label": "Satisfactory Range",
      "lower": null,
      "upper": 1,
      "height": 1,
      "fill": "#d2c9bb",
      "opacity": 1,
      "hoverOpacity": 1,
      "radius": 0,
      "coverage": null
    },
    {
      "id": "threshold-0",
      "label": "Poor Range",
      "lower": null,
      "upper": 0,
      "height": 1,
      "fill": "#a89c89",
      "opacity": 1,
      "hoverOpacity": 1,
      "radius": 0,
      "coverage": null
    }
  ],
  "marks": {
    "focal": {
      "kind": "bar",
      "fill": "series.blue",
      "opacity": 0.9,
      "hoverOpacity": 1,
      "thickness": 0.6,
      "barRadius": 0
    },
    "target": {
      "visible": true,
      "color": "textPrimary",
      "width": 2
    },
    "reference": {
      "visible": false,
      "value": 0,
      "color": "textMuted",
      "width": 1,
      "dash": "4,3"
    }
  },
  "axes": {
    "valueTicks": 5,
    "categoryTicks": "all",
    "gridColumns": true,
    "gridRows": true,
    "baseline": false,
    "leftBaseline": true,
    "tickLabelFontSize": 14,
    "exportMeasurement": "shaped",
    "valueFormat": "number",
    "labelOverflow": "reject"
  },
  "labels": {
    "value": "Actual",
    "target": "Target"
  },
  "interaction": {
    "tooltip": true
  },
  "annotations": []
}
