{
  "version": "xarts.coordinate-marks/1",
  "family": "coordinate-marks",
  "operation": "provided-observations",
  "provenance": {
    "legacyId": "sectorrotation"
  },
  "data": {
    "rows": [
      {
        "id": "1",
        "label": "Technology",
        "x": 4.2,
        "y": 2.8,
        "size": 28,
        "group": "observations"
      },
      {
        "id": "2",
        "label": "Healthcare",
        "x": 1.5,
        "y": -1.2,
        "size": 13,
        "group": "observations"
      },
      {
        "id": "3",
        "label": "Financials",
        "x": 2.1,
        "y": 3.5,
        "size": 12,
        "group": "observations"
      },
      {
        "id": "4",
        "label": "Consumer Disc.",
        "x": -0.8,
        "y": 1.9,
        "size": 10,
        "group": "observations"
      },
      {
        "id": "5",
        "label": "Industrials",
        "x": -1.5,
        "y": 2.4,
        "size": 9,
        "group": "observations"
      },
      {
        "id": "6",
        "label": "Energy",
        "x": -3.2,
        "y": -2.8,
        "size": 5,
        "group": "observations"
      },
      {
        "id": "7",
        "label": "Consumer Staples",
        "x": -2,
        "y": -0.5,
        "size": 7,
        "group": "observations"
      },
      {
        "id": "8",
        "label": "Utilities",
        "x": -2.8,
        "y": 1.1,
        "size": 3,
        "group": "observations"
      },
      {
        "id": "9",
        "label": "Materials",
        "x": 0.5,
        "y": -1.8,
        "size": 3,
        "group": "observations"
      },
      {
        "id": "10",
        "label": "Real Estate",
        "x": -1.2,
        "y": -2.5,
        "size": 3,
        "group": "observations"
      },
      {
        "id": "11",
        "label": "Comm. Services",
        "x": 3,
        "y": 0.8,
        "size": 8,
        "group": "observations"
      }
    ]
  },
  "encoding": {
    "id": "id",
    "label": "label",
    "x": "x",
    "y": "y",
    "size": "size",
    "group": "group",
    "units": {
      "x": {
        "label": "Relative Performance",
        "unit": "percentage-points"
      },
      "y": {
        "label": "Momentum",
        "unit": "percentage-points"
      },
      "size": {
        "label": "Market weight",
        "unit": "percentage-points"
      }
    },
    "groups": [
      {
        "id": "observations",
        "label": "observations",
        "fill": "blue",
        "stroke": "blue",
        "strokeWidth": 1.5,
        "labelWeight": 500
      }
    ]
  },
  "calculation": {
    "xDomain": {
      "source": "extent",
      "padding": [
        1,
        1
      ],
      "includeZero": false
    },
    "yDomain": {
      "source": "extent",
      "padding": [
        1,
        1
      ],
      "includeZero": false
    },
    "niceX": false,
    "niceY": false,
    "size": {
      "mapping": "sqrt-interpolated",
      "domain": {
        "source": "extent",
        "padding": [
          0,
          0
        ],
        "includeZero": false
      },
      "radiusRange": [
        8,
        30
      ]
    },
    "quadrants": {
      "x": 0,
      "y": 0,
      "boundary": "upper-inclusive",
      "colorByQuadrant": true,
      "cells": [
        {
          "id": "upper-right",
          "label": "Leading",
          "color": "emerald"
        },
        {
          "id": "lower-right",
          "label": "Weakening",
          "color": "amber"
        },
        {
          "id": "lower-left",
          "label": "Lagging",
          "color": "red"
        },
        {
          "id": "upper-left",
          "label": "Improving",
          "color": "teal"
        }
      ]
    }
  },
  "profile": {
    "placement": {
      "mode": "measured",
      "maxWidth": 180,
      "maxLines": 4,
      "lineHeight": 1.35,
      "gap": 10,
      "edge": 10,
      "gridStep": 14,
      "guideWidth": 0.75,
      "guideColor": "textMuted"
    },
    "margin": {
      "top": 40,
      "right": 56,
      "bottom": 96,
      "left": 96
    },
    "measureY": true,
    "axis": {
      "smart": true,
      "axisLines": false,
      "tickMarks": false,
      "baseline": true,
      "grid": false,
      "columns": false,
      "ticksX": 6,
      "ticksY": 5,
      "format": "signed-percent",
      "titleX": "Relative Performance"
    },
    "marks": {
      "fillOpacity": 0.7,
      "strokeOpacity": 0.9
    },
    "labels": {
      "fill": "textPrimary",
      "fontSize": 11,
      "fontWeight": 500,
      "position": "above-radius",
      "dx": 0,
      "dy": -4,
      "visible": true
    },
    "quadrants": {
      "visible": true,
      "labels": {
        "fill": "textMuted",
        "fontSize": 10,
        "fontWeight": 600
      },
      "opacity": 1,
      "opacityStyle": false,
      "backgroundOpacity": 0.06,
      "placement": "centers",
      "fractions": [
        [
          0.82,
          0.18
        ],
        [
          0.82,
          0.82
        ],
        [
          0.18,
          0.82
        ],
        [
          0.18,
          0.18
        ]
      ],
      "dominantMiddle": true
    },
    "crosshair": {
      "visible": true,
      "stroke": "textMuted",
      "width": 1,
      "dash": "4,4",
      "opacity": 1,
      "opacityStyle": false
    },
    "endpoints": {
      "labels": {
        "fill": "textSecondary",
        "fontSize": 12,
        "fontWeight": 600
      },
      "padding": 6,
      "xLow": "Economy",
      "xHigh": "Premium",
      "yLow": "Traditional",
      "yHigh": "Innovative",
      "visible": false
    }
  },
  "annotations": [],
  "document": {
    "header": {
      "title": "Sector Rotation",
      "subtitle": "Relative strength quadrant analysis of market sectors"
    },
    "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": "sectorrotation",
    "embedSpec": true,
    "geometryDecimals": 2
  }
}
