Chart
Chart shows a summary by day, week, month, or by field values: either a record count or an aggregate of a field. For example, the total purchase cost for each day of the week ("Purchase cost per day") or how deliveries break down by status ("Deliveries by status").
In the widget catalog it is in the Digits group. For how to add a widget to a screen and select its data, see Custom screen.
The video shows purchase totals by day: axis set to Arrival, Total by Purchase cost, then lines by category with the Line type.
What to display
| Setting | What to choose | Required |
|---|---|---|
| Axis by field | What to group by: a date (e.g. "Arrival"), a list or radio-button field ("Category"), or a text field | yes |
| Value | What to calculate: Number of records, Total, Average, Minimum, or Maximum. For everything except number of records, select a numeric field in By which field below | no — defaults to number of records |
| Lines by field | A list or radio-button field: each value gets its own line (column, bar) in its own color | no |
For example, "Purchase cost per day" uses the "Arrival" date as the axis and Total by the "Purchase cost" field, while "Deliveries per day by category" uses "Arrival" as the axis, Number of records, and lines by the "Category" field.
Above the chart the calculated metric is shown, e.g. "Total: Purchase cost".
Axis
If the axis is a date, a Date step: Axis by field selector appears below it: Day, Week, or Month. The default is day. Weeks on the axis start on Monday.
If the page period contains more than 31 steps, the step automatically becomes larger: a quarter uses weeks, a year uses months. The setting itself does not change: when you return to a week-long Period, the chart goes back to days.
The axis has no gaps: days within the period that have no records are still shown with a zero. If the metric is a total, average, minimum, or maximum, they show "—". For a list field on the axis, all its options appear in order, even those with no records. Records with no value are grouped into a final item called No value.
Chart type
The Chart type field in the widget settings:
| Type | Appearance | Best for |
|---|---|---|
| Bars (default) | horizontal bars with the number next to each one | comparing items to each other |
| Columns | vertical columns | showing change over days, weeks, or months |
| Line | a line connecting data points | the same, especially over long periods |
| Shares | a single bar split into parts, with a legend listing color, name, number, and % | showing how a total is distributed across field values |
Shares displays up to six separate parts. If there are more values, the five largest are shown individually and the rest are combined into an Other part. Empty and zero values are excluded from shares; if there are no non-zero values at all, the widget displays "Nothing to split: all values are empty or zero." The Lines by field setting is not used for shares.
Multiple lines
With Lines by field, each field value gets its own line, and for columns and bars, its own column or bar at each axis point. A legend above the chart shows the color and name of each line.
There are eight distinguishable colors, so the chart shows at most eight lines, those with the largest totals. If there are more values, a note above the chart reads "Showing the 8 largest lines out of N."
Reading values
For Bars and Shares, all numbers are printed directly on the widget. For Columns and Line, hover over a data point or column to see a tooltip with the axis item and the value of each line.
With the keyboard: press Tab to focus the chart, use the left and right arrow keys to move to adjacent points, Home and End to jump to the first and last point, and Esc to dismiss the tooltip.
Period and filters
The chart is calculated from all records that fall within the period and match the page filters, not just those loaded on screen. If a page filter narrows the same field that the axis or lines are based on, only the values selected in the filter appear on the chart. For details, see Page period and filters.
When there is nothing to show, the widget displays "No records". If there are too many values, only a subset is shown and a note below the chart reads "Showing N of M groups".