Notebook charts
A chart card draws one table card of the same notebook. It redraws by itself whenever the table changes, so it never needs running again, and it doesn't need the Python sandbox. For tables see the notebooks page.
Chart a table
+ Add card → Chart adds a chart and opens its settings, filled in from the notebook's first table. Pick the Table, the Type, and a column for each of the type's inputs; each list shows only the columns that fit. The chart draws as you change them, and they save a second after you stop, or when you click Done or press Esc. Edit under the chart (or a double-click on it) opens the settings again. Point at a bar, slice or point to see its value.
The chart reads every row of its table, up to its 5,000. Renaming the table or a column keeps the chart working.
Pick a chart type
- Bar: a label column (Text, Status, Date or Checkbox) and one or more Number or Currency columns, side by side.
- Line: a column to run along (Date, Number, Text or Status) and one or more Number or Currency columns. Dates and numbers are spaced by value.
- Pie: a label column and one Number or Currency column. Past eight slices, the smallest join "Other".
- Scatter: an X column (Number, Currency or Date) and a Y column (Number or Currency), and Colour by a Text or Status column if you like. The first three values get a colour each; the rest show grey as "Other".
- Bubble: as scatter, with a Size column for each bubble's area.
Group rows
Bar, line and pie charts can turn on Group rows: one bar, point or slice per label, its values summed up by the Summary you pick (Sum, Count, Average, Min, Max or Median). Count counts rows, so it needs no value column: a Status label with Count shows how many rows are in each status. With a Date label, Group dates by picks Day, Week, Month or Year, so a table of daily spending makes a monthly chart. Weeks start on Monday.
Without grouping, every row is its own bar, point or slice.
When the table changes
Adding, changing or deleting a row or column redraws the chart, whoever made the change: you, an agent, or another window. A value that doesn't fit its column, such as text in a Number column, is left out, and "2 rows skipped" under the chart says how many. When the table, or a column the chart needs, is deleted, the card says so in place of the chart; Edit picks another.
On your phone and other computers
The Remote control page's Notebooks tab (see the remote-control page) and a paired computer's notebooks (see other-computers) show charts too, drawn from the table there. Tap a mark on the phone to see its value. A chart's settings change only on the computer the notebook is on.
In exports, print and email
Exporting a notebook (PDF, Word, OpenDocument, web page, Markdown or Jupyter), printing it, emailing it and filing it on GitHub all put each chart in as a picture, drawn from the table as it is then, on white, under the card's title. See the notebook-files page. Importing that file back gives a picture, not a chart card.
Have an agent make one
Ask a notebook's chat, or an agent in Chat, Shell or Code: "make a bar chart of spend by month from the Budget table", then "make it a line chart". The agent names the table, type and columns; the card says where it came from, and ⋯ → History… undoes it. An agent reading the notebook sees a chart's settings and the numbers it draws. See the notebook-agents page.
What charts don't do
- Draw a table from another notebook, or a Python card's output.
- Filter rows: a chart draws every row of its table.
- Formulas, two value axes, zoom, or clicking through to a row.
- Area, stacked and other chart types; use a Python card for those (see
notebook-files). - Change their settings on the phone or another computer.