House points card

The school houses as tall bars or a ladder of bars, ranked by points, with the leader crowned and the latest awards beside them.

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, Charts and gauges, Recognition.

Data and privacy

This card uses its configured properties and live card data.

An award names a house, never a student.

Properties

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

Static properties

NameTypeDefaultValues and limitsDescription
titlestring"House points"maxLength: 40
awardCountinteger5minimum: 1; maximum: 8How many recent awards the full layout lists.
hour12booleantrue

Dynamic properties

NameTypeDefaultValues and limitsDescription
housesarray[]minItems: 0; maxItems: 8The houses and their point totals. Rank, bar heights and the leader come from the totals.
houses[].namestringminLength: 1; maxLength: 24; Required
houses[].pointsintegerminimum: 0; maximum: 999999; Required
houses[].colorstringpattern: "^#[0-9A-Fa-f]{6}$"The house colour as #RRGGBB. Absent, the house takes a colour from the theme.
awardsarray[]minItems: 0; maxItems: 40Recent awards, newest first by time. An award names a house, never a student.
awards[].housestringminLength: 1; maxLength: 24; RequiredA house name from houses.
awards[].pointsintegerminimum: 1; maximum: 999; Required
awards[].reasonstring""maxLength: 80Why the points were given, for example Helping a new friend.
awards[].atstring""maxLength: 40ISO 8601 instant of the award.

Example params

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

Example data

{
  "houses": [],
  "awards": []
}

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.