Columns, bars, lines, areas or a donut are built for distance, with one hero figure, few gridlines and direct labels. It fills the whole screen, sits in a box in the middle, tucks into a corner as a small square, runs as one line in a corner or stretches as a band along an edge. You choose columns, bars, a line, an area or a donut, whether the series stack, the hero as the latest value, the total of the first series or its peak, a horizontal target line, and which direction of change is good.
Live card
Category: Operations. Tags: Charts and gauges, Numbers and metrics, Offices and workplaces.
Data and privacy
This card uses its configured properties and live card data.
Properties
For theme, background, accent, colour overrides and position, see Common properties.
Static properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
title | string | "" | maxLength: 60 | |
subtitle | string | "" | maxLength: 80 | |
kind | string | "column" | "column", "bar", "line", "area", "donut" | column: vertical bars; bar: horizontal bars; donut uses the first series. |
prefix | string | "" | maxLength: 3 | Before every value, for example $. |
unit | string | "" | maxLength: 6 | After every value, for example % or k. |
decimals | integer | 0 | minimum: 0; maximum: 4 | |
stacked | boolean | false | Stack the series (column and bar). | |
showValues | boolean | true | ||
targetLabel | string | "Target" | maxLength: 24 | |
heroValue | string | "auto" | "auto", "latest", "total", "max", "none" | The hero figure: the latest value (a stack's last total), the total of the first series, its peak, or none. auto is the latest value, and the total for horizontal bars, whose categories are not a sequence. A donut's is its total (its largest share when the values are percentages). |
showChange | boolean | true | Show the change of the latest value against the point before it. | |
goodWhen | string | "up" | "up", "down" | Which direction of change is good (down for costs and wait times). |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
series | array | minItems: 1; maxItems: 4; Required | ||
series[].name | string | "" | maxLength: 32 | |
series[].values | array | minItems: 1; maxItems: 31; Required | ||
labels | array | [] | maxItems: 31 | Category labels, one per value. |
target | number, null | null | A horizontal target line. | |
changedAt | string, null | null | ISO 8601 instant the latest point arrived. From that instant the hero counts from the figure before it to the new one, on every screen together. |
Example params
{
"theme": "neomustard"
}
screenrig card create --type chart --major 1 --file params.json
Example data
{
"series": [
{
"values": [
1
]
}
],
"labels": [],
"target": null,
"changedAt": null
}
Layouts
This core card fits every layout: full screen, center, wide, corner, chip, strip, or any free rectangle.
Layouts: full, center, wide, corner, chip, strip. Forms: landscape, portrait, square, strip.
Use this card
Add this card to a playlist as in Publish a card canvas, place it with the layouts and anchors and update its data as in Write live values.