Progress card

Shows how far a goal has come with a ring, bar or thermometer, what is left and the days to go.

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

This card is drawn in your browser by the same code the Players run, with sample data.

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

NameTypeDefaultValues and limitsDescription
titlestring""maxLength: 60
prefixstring""maxLength: 3Before every amount, for example $.
unitstring""maxLength: 12After every amount, for example kg or ' meals'.
decimalsinteger0minimum: 0; maximum: 2
stylestring"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.
timeZonestring, nullnull
herostring"amount""amount", "percent"The big figure: the amount raised, or the percent. The other is the small one.
presencestring"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.
presenceWindowinteger10minimum: 1; maximum: 1440Minutes the card stays up after a milestone or the goal is passed (presence milestone).
soonDaysinteger3minimum: 0; maximum: 60Days before the deadline at which the card appears (presence deadline-soon).

Dynamic properties

NameTypeDefaultValues and limitsDescription
valuenumberRequired
goalnumberminimum: 1e-06; Required
deadlinestring, nullnullISO 8601 date or instant; local dates are in the zone.
milestonesarray[]maxItems: 8
previousnumber, nullnullThe value before it changed at changedAt; the fill runs from it to the current value.
changedAtstring, nullnullISO 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.