Class challenge card

Class against class: lanes with a runner for each class racing to a goal on reading minutes, attendance or a fundraiser, with the leader marked, the total together and the time left.

Live card

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

Category: Schools. Tags: Schools and campuses, Leaderboards and standings, Recognition.

Data and privacy

This card uses its configured properties and live card data.

A class is a name, never a student.

Properties

For theme, background, accent, colour overrides and position, see Common properties.

Static properties

NameTypeDefaultValues and limitsDescription
formatstring"number""number", "percent", "money"How values show: a number with its unit, a percentage or an amount of money.
unitstring""maxLength: 12The unit after a number, for example min or books.
currencystring"$"maxLength: 3The symbol before an amount of money.
scaleFromnumber0minimum: 0; maximum: 99999999Where the bars start, so close values (attendance of 94 to 98 percent) still show a difference.
showTotalbooleantrueShow the total of all classes (the average for percentages) and the countdown.
timeZonestring, nullnull

Dynamic properties

NameTypeDefaultValues and limitsDescription
titlestring"Class challenge"maxLength: 40The heading, for example Reading challenge.
classesarray[]minItems: 0; maxItems: 10The classes and their values. Rank, bar lengths and the leader come from the values. A class is a name, never a student.
classes[].namestringminLength: 1; maxLength: 48; Required
classes[].valuenumberminimum: 0; maximum: 99999999; Required
classes[].colorstringpattern: "^#[0-9A-Fa-f]{6}$"The class colour as #RRGGBB. Absent, the class takes a colour from the theme.
classes[].prevValuenumberminimum: 0; maximum: 99999999The class's value before the latest update (Primetime). Until updatedAt the board shows these; from it the bars race to the new values and a change of leader is a moment.
goalnumber0minimum: 0; maximum: 99999999The target. 0 sets none.
goalForstring"each""each", "total"each: every class races to the goal. total: the classes reach it together.
endsAtstring""maxLength: 40ISO 8601 instant the challenge ends (a time without an offset is wall time in the screen's zone). Empty shows no countdown.
updatedAtstring""maxLength: 40ISO 8601 instant of the latest score update, shared by every screen (Primetime). The race and a change of leader play from it. Empty plays nothing.

Example params

{
  "theme": "neomustard"
}
screenrig card create --type class-challenge --major 1 --file params.json --context-file context.md

Example data

{
  "title": "Class challenge",
  "classes": [],
  "goal": 0,
  "goalFor": "each",
  "endsAt": "",
  "updatedAt": ""
}

Layouts

This fullscreen card fills the whole screen in landscape or portrait and is not placed as a corner, chip, or strip.

Layouts: full. 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.