Election results card

Election night results: each race with its candidates ranked by votes, the share, the votes and the percent reporting, and whether it is called or who is leading.

Live card

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

Category: Public information. Tags: Scoreboards, Leaderboards and standings, News and announcements, Events and venues.

Data and privacy

Feed: screenrig.election/v1.

Feed documents carry source attribution. The Player supplies the feed to the card.

Properties

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

Static properties

NameTypeDefaultValues and limitsDescription
titlestring"Results"maxLength: 40
perPageinteger2minimum: 1; maximum: 8Races on a page (grid layout); further races take the next page.
pageSecondsinteger12minimum: 5; maximum: 60How long each page, or each race in the spotlight, stays on screen.
maxCandidatesinteger4minimum: 2; maximum: 8Candidates listed in a race; the rest share one Others line.
showVotesbooleantrueShow vote counts beside the shares.
showPartybooleantrueShow each candidate's party as text.
staleMinutesinteger30minimum: 1; maximum: 1440
hour12booleanfalse

Dynamic properties

NameTypeDefaultValues and limitsDescription
electionNamestring""maxLength: 80The election, for example General Election 2026, when the feed carries none.
racesarray[]minItems: 0; maxItems: 40The races. A feed (screenrig.election/v1) wins when present; the data store supplies the same rows otherwise.
races[].idstringmaxLength: 40
races[].titlestringminLength: 1; maxLength: 80; RequiredThe contest, for example Mayor.
races[].jurisdictionstringmaxLength: 60Where, for example City of Fairview.
races[].reportingPctnumberminimum: 0; maximum: 100Percent of precincts reporting.
races[].precinctsobjectadditionalProperties: false
races[].precincts.reportingnumberminimum: 0
races[].precincts.totalnumberminimum: 0
races[].statusstring"open", "called", "recount", "runoff", "unopposed"Called when the race has been called; a candidate with winner true calls it as well.
races[].calledAtstringmaxLength: 32When the race was called, ISO 8601.
races[].featuredbooleanLead the corner and chip with this race.
races[].candidatesarrayminItems: 0; maxItems: 40; Required
races[].candidates[].namestringmaxLength: 60; Required
races[].candidates[].partystringmaxLength: 24Shown as text; no colour comes from it.
races[].candidates[].votesnumberminimum: 0
races[].candidates[].pctnumberminimum: 0; maximum: 100Share of the vote; worked out from votes when absent.
races[].candidates[].winnerboolean
races[].candidates[].incumbentboolean
updatedstring""maxLength: 32When the results were last updated, ISO 8601 (data store only; a feed carries fetchedAt).

Example params

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

Example data

{
  "electionName": "",
  "races": [],
  "updated": ""
}

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.