{
  "orthogonal": {
    "margin": {
      "top": 40,
      "right": 96,
      "bottom": 72,
      "left": 132
    },
    "axis": {
      "stroke": "transparent",
      "tickStroke": "transparent",
      "tickLength": 0,
      "labelColor": "#2a2a2a",
      "tickLabelColor": "#3d3d3d",
      "labelFontSize": 14,
      "tickLabelFontSize": 13,
      "labelFontFamily": "'Inter', system-ui, -apple-system, sans-serif",
      "tickLabelFontFamily": "'Inter', system-ui, -apple-system, sans-serif",
      "baselineStroke": "#3d3d3d",
      "baselineWidth": 1.5,
      "titleColor": "#2a2a2a",
      "titleFontSize": 13,
      "titleFontWeight": 700
    },
    "grid": {
      "stroke": "#d6cfbc",
      "strokeOpacity": 1,
      "strokeDasharray": ""
    },
    "measureAxis": true,
    "axisInkPadding": 12,
    "leftLabelOverflow": 0,
    "axisProportionalNumbers": true,
    "domain": {
      "padding": 0.15,
      "nice": true,
      "boundedPercent": false,
      "paddingMode": "span"
    },
    "format": {
      "values": "number",
      "axis": "value",
      "compactDecimals": 0
    },
    "colors": {
      "primary": "#112c47",
      "hover": "#1f6f82",
      "stem": "#4b8596",
      "series": {}
    },
    "stemOpacity": 0.8,
    "labelOffset": 10,
    "labelFit": "all",
    "percentLabels": {
      "minimumSize": 26,
      "characterWidth": 9,
      "color": "auto",
      "suffix": "%"
    },
    "individual": {
      "categoryColors": {
        "Market": "#112c47",
        "Size": "#1f6f82",
        "Value": "#4b8596",
        "Momentum": "#1f5a3d",
        "Quality": "#ac7a2a",
        "Sector": "#553d6e",
        "Selection": "#a25c2a",
        "Interaction": "#874c5e"
      },
      "total": {
        "fill": "#112c47",
        "opacity": 0.85,
        "stroke": "#112c47",
        "strokeWidth": 2,
        "fontWeight": 700
      },
      "zeroLine": {
        "stroke": "#6a6458",
        "strokeWidth": 1
      },
      "valueLabel": {
        "fill": "#2a2a2a",
        "fontSize": 14,
        "fontFamily": "'Inter', system-ui, -apple-system, sans-serif",
        "fontWeight": 600
      },
      "signedValues": true
    },
    "legend": {
      "position": "right"
    }
  },
  "version": "xarts.bars/1",
  "family": "bars",
  "provenance": {
    "legacyId": "factorattribution"
  },
  "data": {
    "rows": [
      {
        "Factor": "Market",
        "Contribution (bps)": 185,
        "Type": "item"
      },
      {
        "Factor": "Size",
        "Contribution (bps)": -42,
        "Type": "item"
      },
      {
        "Factor": "Value",
        "Contribution (bps)": 73,
        "Type": "item"
      },
      {
        "Factor": "Momentum",
        "Contribution (bps)": 56,
        "Type": "item"
      },
      {
        "Factor": "Quality",
        "Contribution (bps)": 28,
        "Type": "item"
      },
      {
        "Factor": "Sector",
        "Contribution (bps)": -18,
        "Type": "item"
      },
      {
        "Factor": "Selection",
        "Contribution (bps)": 95,
        "Type": "item"
      },
      {
        "Factor": "Interaction",
        "Contribution (bps)": -31,
        "Type": "item"
      },
      {
        "Factor": "Total Return",
        "Contribution (bps)": 346,
        "Type": "total"
      }
    ]
  },
  "encoding": {
    "category": "Factor",
    "value": "Contribution (bps)",
    "kind": "Type"
  },
  "calculation": {
    "normalize": "none",
    "negative": "diverge",
    "duplicates": "reject",
    "order": "input",
    "totalRow": {
      "policy": "verify-or-compute",
      "tolerance": 1e-9
    }
  },
  "layout": {
    "orientation": "horizontal",
    "arrangement": "single",
    "seriesOrder": [],
    "bandPadding": 0.25,
    "groupPadding": 0.14
  },
  "marks": {
    "colorMap": {},
    "radius": 2,
    "opacity": 0.8,
    "colorBy": "sign-total",
    "geometry": "bar"
  },
  "labels": {
    "visible": true,
    "segments": false,
    "decimals": 0,
    "divisor": 1,
    "prefix": "",
    "suffix": "bps",
    "fontSize": 14,
    "totals": false,
    "totalsValue": "source"
  },
  "axes": {
    "valueTitle": "",
    "grid": true,
    "ticks": 6
  },
  "legend": {
    "visible": false
  },
  "target": {
    "visible": false,
    "label": "Objetivo"
  },
  "references": [],
  "annotations": [],
  "document": {
    "textOverflow": "preserve",
    "header": {
      "title": "Return Attribution",
      "subtitle": "Brinson-style factor decomposition of portfolio returns"
    },
    "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": 600
    },
    "locale": "en-US",
    "fonts": "reference",
    "surface": "theme",
    "framePadding": 24
  },
  "output": {
    "filename": "factorattribution",
    "embedSpec": true,
    "geometryDecimals": 2
  }
}
