# Strategy performance table

External component: annualized performance matrix. Periods are columns, series are rows; cells print display strings from the CMS.

## Fields & Schema

| Field | Type | Required | Notes |
|-------|------|----------|-------|
| `externalComponentType` | Symbol | Yes | Must be `"Strategy performance table"` |
| `additionalCopy` | RichText | No | Not rendered here. It is the footnote that the **Strategy performance chart** prints under its line chart. |
| `data.performanceLabel` | string | Yes | Top-left header label. |
| `data.columns` | array | Yes | Period columns: `{ "key", "label" }`, both required. Non-empty. |
| `data.lines` | array | Yes | Rows: `{ "field", "label" }`, both required. Non-empty. Rows with `field` `gross` or `net` are highlighted. |
| `data.table.rows` | array | No | One per column: `{ "key", "display": { <field>: "text" } }`. `key` matches a column `key`; missing cells show an em dash. |
| `data.asOfDisplay` | string | No | Subline under the top-left label. |
| `data.asOfPrefix` | string | No | Prepended to `asOfDisplay`. |
| `data.inceptionDate` | string | No | `YYYY-MM-DD`; shown as `(MM/DD/YYYY)` under the column whose `key` is `inception`. |

If `performanceLabel`, `columns` or `lines` is missing, nothing renders. Cells that are percents with more than one decimal are rounded to one decimal (for example `9.86%` shows `9.9%`); already one-decimal text is left as written.

## Usage

```bash
# Add the component
cms-edit add "Strategy performance table" --content-type externalComponent --target content

cms-edit set @ref data --json '{"performanceLabel":"Annualized performance","asOfDisplay":"09/30/2026","columns":[{"key":"1y","label":"1 Year"},{"key":"inception","label":"Since inception"}],"lines":[{"field":"gross","label":"Eagle (gross)"},{"field":"net","label":"Eagle (net)"},{"field":"sp500","label":"S&P 500"}],"inceptionDate":"2010-01-04","table":{"rows":[{"key":"1y","display":{"gross":"12.4%","net":"11.6%","sp500":"10.1%"}},{"key":"inception","display":{"gross":"9.8%","net":"9.0%","sp500":"8.7%"}}]}}'

# Footnote shown by the chart
cms-edit set @ref additionalCopy "Footnote text"

cms-edit save
```

`set data --json` replaces the whole object. Read the current `data` first and change only the key you mean to.
