{
  "orthogonal": {
    "margin": {
      "top": 32,
      "right": 76,
      "bottom": 76,
      "left": 76
    },
    "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": ""
    },
    "spacing": {
      "edge": 16,
      "categoryGap": 0,
      "noteMaxLines": 4,
      "noteLineHeight": 1.4,
      "legend": {
        "fontSize": 11,
        "swatch": 12,
        "labelGap": 6,
        "itemGap": 16,
        "rowGap": 6,
        "rowPadding": 4,
        "plotGap": 20
      },
      "lineGeometry": "segments"
    },
    "measureAxis": true,
    "axisInkPadding": 16,
    "leftLabelOverflow": 0,
    "axisProportionalNumbers": false,
    "domain": {
      "padding": 0.1,
      "nice": true,
      "boundedPercent": false
    },
    "format": {
      "values": "magnitude",
      "axis": "value",
      "compactDecimals": 0,
      "tiers": [
        {
          "at": 1000,
          "divisor": 1000,
          "suffix": "B",
          "decimals": 1,
          "trim": false
        },
        {
          "at": 0,
          "divisor": 1,
          "suffix": "M",
          "decimals": 1,
          "trim": true
        }
      ]
    },
    "colors": {
      "primary": "#112c47",
      "hover": "#1f6f82",
      "stem": "#4b8596",
      "series": {
        "Senior Debt ($M)": "#112c47",
        "Subordinated Debt ($M)": "#1f6f82",
        "Preferred Equity ($M)": "#1f5a3d",
        "Common Equity ($M)": "#3a6b4d"
      }
    },
    "stemOpacity": 0.8,
    "labelOffset": 7,
    "labelFit": "ranked",
    "percentLabels": {
      "minimumSize": 26,
      "characterWidth": 9,
      "color": "auto",
      "suffix": "%"
    },
    "overlays": {
      "edgePair": false,
      "seriesOpacity": {},
      "lines": {
        "ratio": {
          "color": "#ac7a2a",
          "dash": "",
          "curve": "linear",
          "pointFill": "#ac7a2a",
          "pointStroke": "#ffffff",
          "pointStrokeWidth": 2,
          "legendShape": "line-dot"
        }
      },
      "rightAxis": {
        "domain": null,
        "padding": 0.2,
        "nice": true,
        "decimals": 1,
        "trim": false,
        "prefix": "",
        "suffix": "x",
        "measurementDx": "0em"
      },
      "references": [],
      "legend": {
        "container": "flex",
        "order": "before",
        "keys": [
          "Senior Debt ($M)",
          "Subordinated Debt ($M)",
          "Preferred Equity ($M)",
          "Common Equity ($M)",
          "ratio"
        ],
        "labels": {
          "Senior Debt ($M)": "Senior Debt",
          "Subordinated Debt ($M)": "Subordinated Debt",
          "Preferred Equity ($M)": "Preferred Equity",
          "Common Equity ($M)": "Common Equity"
        }
      }
    },
    "legend": {
      "position": "top",
      "exportMeasurement": "glyph-advances"
    }
  },
  "version": "xarts.bars/1",
  "family": "bars",
  "provenance": {
    "legacyId": "capitalstructure"
  },
  "data": {
    "rows": [
      {
        "Year": "2020",
        "Senior Debt ($M)": 1200,
        "Subordinated Debt ($M)": 400,
        "Preferred Equity ($M)": 200,
        "Common Equity ($M)": 1800,
        "D/E Ratio": 0.89
      },
      {
        "Year": "2021",
        "Senior Debt ($M)": 1400,
        "Subordinated Debt ($M)": 450,
        "Preferred Equity ($M)": 250,
        "Common Equity ($M)": 2100,
        "D/E Ratio": 0.79
      },
      {
        "Year": "2022",
        "Senior Debt ($M)": 1100,
        "Subordinated Debt ($M)": 350,
        "Preferred Equity ($M)": 300,
        "Common Equity ($M)": 2400,
        "D/E Ratio": 0.54
      },
      {
        "Year": "2023",
        "Senior Debt ($M)": 900,
        "Subordinated Debt ($M)": 300,
        "Preferred Equity ($M)": 350,
        "Common Equity ($M)": 2800,
        "D/E Ratio": 0.38
      },
      {
        "Year": "2024",
        "Senior Debt ($M)": 750,
        "Subordinated Debt ($M)": 250,
        "Preferred Equity ($M)": 400,
        "Common Equity ($M)": 3200,
        "D/E Ratio": 0.28
      }
    ]
  },
  "encoding": {
    "category": "Year",
    "columns": [
      {
        "field": "Senior Debt ($M)",
        "series": "Senior Debt ($M)"
      },
      {
        "field": "Subordinated Debt ($M)",
        "series": "Subordinated Debt ($M)"
      },
      {
        "field": "Preferred Equity ($M)",
        "series": "Preferred Equity ($M)"
      },
      {
        "field": "Common Equity ($M)",
        "series": "Common Equity ($M)"
      }
    ]
  },
  "calculation": {
    "normalize": "none",
    "negative": "reject",
    "duplicates": "reject",
    "order": "input"
  },
  "layout": {
    "orientation": "vertical",
    "arrangement": "stacked",
    "seriesOrder": [
      "Senior Debt ($M)",
      "Subordinated Debt ($M)",
      "Preferred Equity ($M)",
      "Common Equity ($M)"
    ],
    "bandPadding": 0.3,
    "groupPadding": 0.14
  },
  "marks": {
    "colorMap": {},
    "radius": 0,
    "opacity": 0.9,
    "colorBy": "series",
    "geometry": "bar"
  },
  "labels": {
    "visible": false,
    "segments": false,
    "decimals": 1,
    "divisor": 1,
    "prefix": "$",
    "suffix": "",
    "fontSize": 13,
    "totals": false,
    "totalsValue": "source"
  },
  "axes": {
    "valueTitle": "",
    "grid": true,
    "ticks": 5,
    "ratio": {
      "title": "D/E Ratio proporcionado",
      "minimumMax": 0.00001,
      "decimals": 1
    }
  },
  "legend": {
    "visible": true
  },
  "target": {
    "visible": false,
    "label": "Target"
  },
  "lines": [
    {
      "id": "ratio",
      "label": "D/E Ratio",
      "measure": "provided",
      "axis": "ratio",
      "field": "D/E Ratio",
      "source": "D/E Ratio proporcionado en la tabla original; no se recalcula al cambiar los importes de capital.",
      "missing": "reject",
      "color": "negative",
      "width": 2.5,
      "points": true,
      "radius": 4,
      "decimals": 2
    }
  ],
  "annotations": [],
  "document": {
    "header": {
      "title": "Capital Structure Evolution",
      "subtitle": "Debt and equity composition over five years"
    },
    "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": 800,
      "height": 540
    },
    "locale": "en-US",
    "fonts": "reference",
    "surface": "theme",
    "framePadding": 24
  },
  "output": {
    "filename": "capitalstructure",
    "embedSpec": true,
    "geometryDecimals": 2
  }
}
