Leaderboard card

A ranked board with a podium for the top three, scores, rank movement and the gap to the leader.

Live card

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

Category: Operations. Tags: Leaderboards and standings, Offices and workplaces, Stores.

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"Leaderboard"maxLength: 60
unitstring""maxLength: 12Shown after scores, for example pts.
showinteger10minimum: 3; maximum: 20
highlightstring""maxLength: 40An entry name to emphasise.

Dynamic properties

NameTypeDefaultValues and limitsDescription
entriesarrayminItems: 1; maxItems: 50; Required
entries[].namestringminLength: 1; maxLength: 40; Required
entries[].scorenumberRequired
entries[].previousRankinteger, nullnullminimum: 1Last period's rank; null or absent marks the entry new.
entries[].teamstring""maxLength: 40
entries[].previousScorenumber, nullnullThe score before the latest change (Primetime counts from it to the new score); null or absent leaves the score as it is.
changedAtstring""maxLength: 40ISO instant of the board's latest change. Primetime plays the change (rows swap on springs, scores count to their new values, a new number one is announced) from this instant; without it the board has no moment.

Example params

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

Example data

{
  "entries": [
    {
      "name": "Example",
      "score": 1
    }
  ],
  "changedAt": ""
}

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.