A big amount or percent sits beside a ring, bar or fundraising thermometer, with what is left and the days to go clear at a glance. It fills the whole screen, fits any rectangle, sits in the middle, tucks into a corner, runs as one line in a corner or stretches as a band along an edge. You set the title, current value and goal, add a deadline and milestones, and choose a ring, bar or thermometer for a full screen.
Live card
Category: Operations. Tags: Numbers and metrics, Charts and gauges.
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 | |
prefix | string | "" | maxLength: 3 | Before every amount, for example $. |
unit | string | "" | maxLength: 12 | After every amount, for example kg or ' meals'. |
decimals | integer | 0 | minimum: 0; maximum: 2 | |
style | string | "ring", "bar", "thermometer" | The graphic of a full screen: a ring (when unset), a bar or a thermometer. Center, strip and chip always draw a bar. A corner draws the percent over a bar, or a ring when this is ring. | |
timeZone | string, null | null | ||
hero | string | "amount" | "amount", "percent" | The big figure: the amount raised, or the percent. The other is the small one. |
presence | string | "always" | "always", "milestone", "deadline-soon" | milestone: the card shows for presenceWindow minutes after a change that passes a milestone or the goal. deadline-soon: only while the deadline is soonDays or fewer days away. |
presenceWindow | integer | 10 | minimum: 1; maximum: 1440 | Minutes the card stays up after a milestone or the goal is passed (presence milestone). |
soonDays | integer | 3 | minimum: 0; maximum: 60 | Days before the deadline at which the card appears (presence deadline-soon). |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
value | number | Required | ||
goal | number | minimum: 1e-06; Required | ||
deadline | string, null | null | ISO 8601 date or instant; local dates are in the zone. | |
milestones | array | [] | maxItems: 8 | |
previous | number, null | null | The value before it changed at changedAt; the fill runs from it to the current value. | |
changedAt | string, null | null | ISO 8601 instant the value changed. Within a few seconds of it the card plays its moment: the fill runs from previous, milestones passed flash and a goal reached lands a burst. |
Example params
{
"theme": "neomustard"
}
screenrig card create --type progress --major 1 --file params.json --context-file context.md
Example data
{
"value": 1,
"goal": 1,
"deadline": null,
"milestones": [],
"previous": null,
"changedAt": null
}
Layouts
This core card fits every layout: full screen, center, wide, corner, chip, strip, or any free rectangle.
Layouts: full, free, center, wide, corner, chip, strip. Forms: landscape, portrait.
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.