Chart data
Type, paste, sort and reshape the table of numbers a chart draws.
- Where
- Inspector, Chart section, Edit data
- Makes
- The table a chart draws
Every chart draws from a table. To edit it, select the chart and click Edit data in the Chart section, and the Chart data grid opens below the canvas, where the timeline usually sits. The chart redraws as you edit. Each edit is one undo step, and there’s nothing to save.
Pasting from a spreadsheet
Copy the block in your spreadsheet, including the header row. Click the cell where it should start, usually the first header cell, and press ⌘V. The grid grows to fit, nothing is discarded, and cells outside the block stay as they were. Text with no tabs or line breaks goes into the current cell as if you typed it.
- Chart data: pick a start cell
- Paste rows from a spreadsheet
Paste CSV takes a whole table as text and replaces the data with it. It detects comma, tab and semicolon delimiters, keeps quoted fields whole and skips empty lines:
Model,2025,2026
Tern,1840,2210
Rook,1320,1560
Jackdaw,960,1410
Magpie,610,580
The panel
- First row is header (on): the first row names the columns, and those names appear in the key and in the per-column parts (Bar: 2026). When it’s off, the first row is data and the columns are named Column 1, Column 2 and so on.
- Add row adds a row at the bottom.
- Add column adds a column at the right, which is plotted as a new series.
- Copy CSV copies the whole table, header included, as delimited text.
- Paste CSV opens a dialog with a Rows field, and Replace data or Cancel.
- Close
- Reverse rows
- The chip shows a number icon for a column that reads as numbers, and a text icon otherwise.
- Sort by column sorts ascending, then descending on a second click.
- Delete column. If you delete the names column, the chart picks its names again.
- Delete row
Sorting and reversing change the table itself, and the chart, which draws rows in table order, changes with it. Numbers sort as numbers (10 comes after 9), and anything that isn’t a number goes last in both directions.
Editing cells
Click a cell to edit it, or click a column header to rename it. Clicking anywhere else applies the change.
| Key | Function |
|---|---|
| ⇥ / ⇧⇥ | Next / previous cell, wrapping to the next row |
| ↵, ↓ | Next row, same column |
| ⇧↵, ↑ | Previous row, same column |
| → / ← | Next / previous cell, at the end / start of the text |
| Esc | Leave the cell, discarding the change |
How the table is read
Cells are stored exactly as you type them, and the chart works out each column’s role from what’s in it:
- A series is a column the chart plots. It has at least one number, and at least half of its non-empty cells are numbers.
- The first column that isn’t a series holds the names: the categories, slices or spokes.
- A table of only numbers has no names. Its rows are numbered, and a scatter chart uses the first column as x.
| Cell | Reads as |
|---|---|
1,280, $1,280 |
1280 |
42% |
42 |
(350) |
-350 |
1.2e3 |
1200 |
n/a, empty |
No value |
The chart ignores the signs $, £, €, ¥ and ₹, comma separators, spaces and a trailing percent sign. In a series, a cell that doesn’t read as a number turns red and is kept as you typed it. The chart leaves a gap there instead of plotting 0, and a line below the grid counts the unreadable cells.
A chart has no number format setting. Value labels print up to three decimals, without trailing zeros or the cell’s signs, so $1,280.50 prints as 1280.5. Axis numbers round to the step: no decimals for a step of 1 or more, one decimal for 0.1 or more, and two otherwise. A pie prints its shares as percentages.
| Kind | Several value columns draw |
|---|---|
| Bar Single, Pie, Radial | One bar, slice or ring per row, the sum of its columns |
| Bar Grouped or Stacked | One bar per column in each row |
| Line, Mountain, Radar | One line, slope or outline per column |
| Scatter | One set of points per column |
Adding a column adds its parts in the next chart color, and renaming a column renames its parts. On a pie, adding and removing rows adds and removes slice layers. Overrides on single copies survive changes to the values.
Limits
- Only the first 60 rows are plotted. When there are more, a line below the grid says how many.
- There are no formulas.
- A column’s role follows its content, and you can’t set it by hand.
- A chart can’t read its data from a table layer.