A chart's data is its categories and its series, or for a scatter or bubble chart, its points. This page shows how to give it, and how it is saved in the document.
- `categories` are the labels along the category axis, the slices of a pie, or the spokes of a radar chart. They are text, or numbers such as years. On a column, bar, line or area chart they can be dates too: see [Dates](#dates).
A column, bar, line or area chart's categories can be in groups, such as quarters in years. The axis labels the categories, with each group's name below its categories:
- Each group has a `name` and its `categories`, text or numbers. The series have a value for each category in every group, in order: here, six.
- A group can hold groups instead, such as months in quarters in years, for another row of labels. Every group at the same depth holds groups as deep, so each category has as many groups.
- A group has at least one category. Categories in groups can't be dates.
Pages shows only the groups' names. See [Chart Compatibility](usage/chart-compatibility.md).
Each chart's data is saved twice: in the chart, which Word draws it from, and in an Excel workbook inside the document. **Edit Data** in Word opens the workbook in Excel, and Word redraws the chart when the data changes.
The workbook has one sheet, laid out as Word lays out a new chart's data:
- For a chart with categories, the sheet is the table above: the series' names in row 1 from column B, the categories in column A from row 2, and each series' values below its name.
- Categories in groups take a column each for the groups and the categories, from column A, the outermost groups first. A group's name is in the row of its first category. The series start in the column after them.
- A stock chart's series are in Word's order: the volumes, the opening, high and low prices, and the closing prices, those given.
- For a scatter chart, each series has two columns: `X` above its x values, and its name above its y values. A bubble chart's series have a third, `Size`, above their sizes.
- Custom error bars' lengths are in columns after the series: each series' `(+)` and `(-)` lengths, or for a scatter or bubble chart, its `x` and then its `y` lengths. See [Custom Error Bars](usage/chart-trendlines-and-error-bars.md#custom-error-bars).