# Rolling 10-year chart

External component: grouped bar chart of rolling 10-year returns (for example Minimum, Average, Maximum). Title and subtitle are the entry `heading` and `postHeading`; groups, series and the axis caption are `data`; the footnote is `additionalCopy`.

## Fields & Schema

| Field | Type | Required | Notes |
|-------|------|----------|-------|
| `externalComponentType` | Symbol | Yes | Must be `"Rolling 10-year chart"` |
| `heading` | Text | No | Title (h2). |
| `postHeading` | Text | No | Subtitle under the title. |
| `additionalCopy` | RichText | No | Footnote disclosure under the chart. |
| `data.categories` | array of string | Yes | Groups, non-empty, each non-blank. |
| `data.series` | array | Yes | Non-empty. Each `{ "name", "values": [number] }`; `name` required, and `values` must hold exactly one finite number per category. |
| `data.axisLabel` | string | No | Caption under the chart. Superscript footnote markers link to the disclosure. |

Any invalid category or series makes the whole chart render nothing, so a partial edit never draws a misleading bar. Bar colour follows the series name (Eagle, S&P/500, Russell Growth, Russell/Value; others grey). Values print with two decimals and a `%` sign. A screen-reader table of the same data is included.

## Usage

```bash
# Add the component
cms-edit add "Rolling 10-year chart" --content-type externalComponent --target content

cms-edit set @ref heading "Rolling 10-year returns"
cms-edit set @ref data --json '{"categories":["Minimum","Average","Maximum"],"series":[{"name":"Eagle Equity","values":[-1.25,9.8,15.4]},{"name":"S&P 500","values":[-2.1,8.9,14.2]}],"axisLabel":"Annualized return"}'

cms-edit save
```

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