{
  "version": "xarts.coordinate-marks/1",
  "family": "coordinate-marks",
  "provenance": {
    "legacyId": "bcgmatrix"
  },
  "document": {
    "header": {
      "title": "Growth-Share Matrix",
      "subtitle": "Eight business units by market growth and relative share"
    },
    "footer": {
      "source": "xarts · demo data",
      "notes": "Illustrative data to explore the chart and replace with your own."
    },
    "spacing": {
      "horizontalPadding": 32,
      "topPadding": 24,
      "bottomPadding": 24,
      "minimumTextGap": 6
    }
  },
  "presentation": {
    "theme": "anlak",
    "dimensions": {
      "width": 1200,
      "height": 760
    },
    "locale": "en-US",
    "fonts": "reference",
    "surface": "theme",
    "framePadding": 24
  },
  "output": {
    "filename": "bcgmatrix",
    "embedSpec": true,
    "geometryDecimals": 2
  },
  "annotations": [],
  "operation": "classified-observations",
  "data": {
    "rows": [
      {
        "id": "1",
        "label": "Cloud Services",
        "x": 1.8,
        "y": 22,
        "size": 450,
        "providedClass": null,
        "providedXLabel": null,
        "providedYLabel": null
      },
      {
        "id": "2",
        "label": "Mobile Apps",
        "x": 1.4,
        "y": 18,
        "size": 280,
        "providedClass": null,
        "providedXLabel": null,
        "providedYLabel": null
      },
      {
        "id": "3",
        "label": "Enterprise SW",
        "x": 1.6,
        "y": 5,
        "size": 520,
        "providedClass": null,
        "providedXLabel": null,
        "providedYLabel": null
      },
      {
        "id": "4",
        "label": "Legacy Systems",
        "x": 0.4,
        "y": 2,
        "size": 180,
        "providedClass": null,
        "providedXLabel": null,
        "providedYLabel": null
      },
      {
        "id": "5",
        "label": "AI Platform",
        "x": 0.6,
        "y": 24,
        "size": 120,
        "providedClass": null,
        "providedXLabel": null,
        "providedYLabel": null
      },
      {
        "id": "6",
        "label": "Data Analytics",
        "x": 1.2,
        "y": 14,
        "size": 340,
        "providedClass": null,
        "providedXLabel": null,
        "providedYLabel": null
      },
      {
        "id": "7",
        "label": "IoT Solutions",
        "x": 0.3,
        "y": 16,
        "size": 80,
        "providedClass": null,
        "providedXLabel": null,
        "providedYLabel": null
      },
      {
        "id": "8",
        "label": "Cybersecurity",
        "x": 0.8,
        "y": 20,
        "size": 200,
        "providedClass": null,
        "providedXLabel": null,
        "providedYLabel": null
      }
    ]
  },
  "encoding": {
    "units": {
      "x": {
        "label": "Market Share",
        "unit": "ratio"
      },
      "y": {
        "label": "Growth Rate (%)",
        "unit": "percentage-points"
      },
      "size": {
        "label": "Revenue ($M)",
        "unit": "USD-millions"
      }
    }
  },
  "calculation": {
    "x": {
      "kind": "continuous",
      "domain": {
        "source": "zero-maximum",
        "padding": 0.1
      },
      "nice": true,
      "reversed": true,
      "cuts": [
        1
      ],
      "boundary": "upper-inclusive"
    },
    "y": {
      "kind": "continuous",
      "domain": {
        "source": "zero-maximum",
        "padding": 0.1
      },
      "nice": true,
      "reversed": false,
      "cuts": [
        10
      ],
      "boundary": "upper-inclusive"
    },
    "size": {
      "mapping": "sqrt-interpolated",
      "domain": {
        "source": "extent",
        "paddingMode": "fraction",
        "padding": [
          0.1,
          0.1
        ],
        "includeZero": false
      },
      "radiusRange": [
        8,
        35
      ]
    },
    "cells": [
      {
        "id": "1-1",
        "xBand": 1,
        "yBand": 1,
        "label": "Stars",
        "displayLabel": "Stars",
        "alphaSuffix": "",
        "fill": "amber",
        "markFill": "amber"
      },
      {
        "id": "0-1",
        "xBand": 0,
        "yBand": 1,
        "label": "Question Marks",
        "displayLabel": "?",
        "alphaSuffix": "",
        "fill": "teal",
        "markFill": "teal"
      },
      {
        "id": "1-0",
        "xBand": 1,
        "yBand": 0,
        "label": "Cash Cows",
        "displayLabel": "Cash Cows",
        "alphaSuffix": "",
        "fill": "emerald",
        "markFill": "emerald"
      },
      {
        "id": "0-0",
        "xBand": 0,
        "yBand": 0,
        "label": "Dogs",
        "displayLabel": "Dogs",
        "alphaSuffix": "",
        "fill": "red",
        "markFill": "red"
      }
    ]
  },
  "profile": {
    "placement": {
      "mode": "measured",
      "maxWidth": 180,
      "maxLines": 5,
      "lineHeight": 1.35,
      "gap": 10,
      "edge": 10,
      "gridStep": 10,
      "guideWidth": 0.75,
      "guideColor": "textMuted"
    },
    "margin": {
      "top": 40,
      "right": 64,
      "bottom": 96,
      "left": 128
    },
    "frame": "cartesian",
    "measureY": true,
    "reserveDomainRadius": false,
    "axis": {
      "xTitle": "Relative Market Share",
      "yTitle": "Market Growth Rate (%)",
      "ticksX": 5,
      "ticksY": null,
      "measurementNumbers": "proportional-nums",
      "formatX": "ratio-one-decimal",
      "formatY": "percent",
      "grid": true,
      "colTitleOffset": 40,
      "rowTitleOffset": -104,
      "tick": {
        "fontSize": 13,
        "fontWeight": 500,
        "fill": "textSecondary"
      },
      "title": {
        "fontSize": 13,
        "fontWeight": 600,
        "fill": "textSecondary"
      }
    },
    "cell": {
      "padding": 0,
      "opacity": 0.06,
      "stroke": "border",
      "strokeWidth": 0,
      "radius": 0,
      "label": {
        "fontSize": 13,
        "fontWeight": 600,
        "fill": "textMuted"
      },
      "labelMode": "corners",
      "labelBandExtra": 6,
      "labelInsets": {
        "left": 12,
        "right": 12,
        "top": 20,
        "bottom": 12
      }
    },
    "midline": {
      "stroke": "textMuted",
      "width": 1,
      "dash": "4 3",
      "opacity": 0.4
    },
    "marks": {
      "opacity": 0.8,
      "opacityAttribute": "fillOpacity",
      "stroke": "surface",
      "strokeWidth": 2,
      "fill": null,
      "hoverRadius": 2,
      "hoverStrokeWidth": 3,
      "radiusFit": "none",
      "minimumClampedRadius": 0
    },
    "labels": {
      "ink": {
        "fontSize": 13,
        "fontWeight": null,
        "fill": "textPrimary"
      },
      "exportMeasurement": "glyph-advances",
      "placement": "central",
      "gap": 3,
      "nameBandExtra": 4,
      "group": false,
      "guides": {
        "width": 0.5,
        "opacity": 0.4
      },
      "layer": "frame"
    },
    "legend": {
      "visible": false,
      "height": 36,
      "items": [],
      "step": 124,
      "dotSize": 10,
      "ink": {
        "fontSize": 13,
        "fontWeight": null,
        "fill": "textSecondary"
      },
      "opacity": 0.6
    }
  }
}
