This page is generated from the product’s own definitions, so it is always current. To change it, change the product.
A line chart: one point per category joined into a line, with optional extra lines and reference lines.
When to use it. Use to show how a number changes over time; pick a Bar Chart to compare separate categories.
| Slot | Name | Required | Field types | Aggregations | What it shows |
|---|---|---|---|---|---|
slot.line.x | Categories | yes | date, string, enum | — | The field whose values run along the horizontal axis, one point per distinct value. Usually a date; text and choice fields also fit. |
slot.line.y | Values | yes | any | sum, avg, count, min, max, first, last | The number plotted at each point, combined across the rows in its category (sum by default); any column can be counted instead. Add series for more lines. |
slot.line.series | One line per | no | string, enum | — | An optional text or choice field that draws a separate line for each of its values. Set aside when Values has several series. |
slot.line.reference.1 | Reference line 1 | no | number, percentage | sum, avg, count, min, max, first, last | Optional number for reference line 1: a dashed line across the chart at this value, such as a target or an average. Set from the line's own picker; uses the first row by default. |
slot.line.reference.2 | Reference line 2 | no | number, percentage | sum, avg, count, min, max, first, last | Optional number for reference line 2: a dashed line across the chart at this value, such as a target or an average. Set from the line's own picker; uses the first row by default. |
slot.line.reference.3 | Reference line 3 | no | number, percentage | sum, avg, count, min, max, first, last | Optional number for reference line 3: a dashed line across the chart at this value, such as a target or an average. Set from the line's own picker; uses the first row by default. |
| Channel | Label | Value | Rules | Brand tokens | What it sets |
|---|---|---|---|---|---|
chart.axisMax | Axis to | number | yes | no | The number the value axis ends at. Empty lets the chart choose from the data. |
chart.axisMin | Axis from | number | yes | no | The number the value axis starts at. Empty lets the chart choose from the data. |
chart.axisPrefix | Tick prefix | string | yes | no | Text printed before each value-axis number, such as "$". Default none. |
chart.axisStep | Tick every | number | yes | no | Gap between tick marks on the value axis, in the data's own units. Empty lets the chart choose. |
chart.axisSuffix | Tick suffix | string | yes | no | Text printed after each value-axis number, such as "%" or " kg". Default none. |
chart.color | Color | color | yes | no | Colours each bar, slice, ring or line marker by a rule, where "This value" is that point's own value. Points no rule matches keep the chart's colours. |
chart.lastValue | Print each line’s last value | boolean: false, true | yes | no | Whether a line chart prints each line's last value at its end. Default off. |
chart.palette | Palette | colors | no | no | The colours a chart's series cycle through, taken from the brand profile. Not shown in Appearance; without a brand rule the chart keeps its own colours. |
chart.printedValues | Printed values | string: none, value, percent, series, total | yes | no | What each bar or point prints beside it: nothing, its value, its share of the total, its series name or its stack total. Default nothing. |
chart.reference.1.label | Line label | string | yes | no | The words printed beside reference line 1. A rule outcome replaces its typed label. |
chart.reference.1.value | Line value | number | yes | no | Where reference line 1 crosses the value axis. A rule outcome replaces its typed or bound number; an empty outcome keeps it. |
chart.reference.2.label | Line label | string | yes | no | The words printed beside reference line 2. A rule outcome replaces its typed label. |
chart.reference.2.value | Line value | number | yes | no | Where reference line 2 crosses the value axis. A rule outcome replaces its typed or bound number; an empty outcome keeps it. |
chart.reference.3.label | Line label | string | yes | no | The words printed beside reference line 3. A rule outcome replaces its typed label. |
chart.reference.3.value | Line value | number | yes | no | Where reference line 3 crosses the value axis. A rule outcome replaces its typed or bound number; an empty outcome keeps it. |
chart.showLegend | Show legend | boolean: false, true | yes | no | Whether the chart shows its legend, the key that names each series. Default on. |
chart.stacking | Several series | string: grouped, stacked, percent | yes | no | How a chart with several series draws them: side by side, stacked, or stacked to 100%. Default side by side. |
progress.squareEnds | Square ends | boolean: false, true | yes | no | Whether the progress bar has square ends instead of rounded ones. Default off. |
See channels for every channel, rule kinds for what a rule can be, and operations for the operations that create and change this kind.