Number tiles card

Big, distance-legible numbers: value, change against last period with a good or bad tone, a sparkline and progress toward a goal.

Category: Operations. Tags: Numbers and metrics, Charts and gauges, Offices and workplaces.

Previews

Number tiles
Canvas
Number tiles
Corner
Number tiles
Chip

Views and forms

Views: canvas, corner, chip. Canvas forms: landscape, portrait.

Card views, themes and publishing. Browse the gallery.

Data and privacy

This card uses its configured properties and live card data.

Properties

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

Set static properties in params. Bind data to a project card data key for live values; that document holds only dynamic properties. Without a data key, put the complete configuration in params. Nested rows describe the contents of their parent property.

Static properties

NameTypeDefaultValues and limitsDescription
titlestring""maxLength: 60
compactbooleanfalse
layoutstring"auto""auto", "row", "grid"
cycleSecondsinteger6minimum: 3; maximum: 60The chip view shows one tile at a time, turning on the wall clock.

Dynamic properties

NameTypeDefaultValues and limitsDescription
tilesarrayminItems: 1; maxItems: 12; Required
tiles[].labelstringmaxLength: 40; Required
tiles[].valuenumberRequired
tiles[].unitstring""maxLength: 6Currency symbols lead ($1,280); other units follow (98.6%, 120 ms).
tiles[].decimalsinteger, nullnullminimum: 0; maximum: 4null: none for whole numbers, one otherwise.
tiles[].compactboolean, nullnullAbbreviate thousands, millions and billions (12.4K, 3.2M). null follows the card's compact.
tiles[].deltanumber, nullnull
tiles[].deltaUnitstring"%"maxLength: 6% shows a percentage; an empty string the bare number; anything else follows it.
tiles[].deltaLabelstring""maxLength: 30
tiles[].goalnumber, nullnull
tiles[].trendarray[]maxItems: 60
tiles[].invertbooleanfalseTrue when down is good (wait times, costs).

Canvas example

Add this item to a playlist page’s primitives. Publish the playlist and assign a screen.

{
  "id": "kpi",
  "primitive": "card",
  "card": "kpi",
  "major": 1,
  "params": {
    "theme": "neomustard"
  },
  "rect": {
    "x": 0,
    "y": 0,
    "width": 1920,
    "height": 1080
  },
  "layer": 0,
  "content_fit": "fill",
  "data": "kpi-main"
}

Write live data

Create this document before showing the card, then replace it to update the screen without republishing. Use the same project as the playlist. Supply your API authorization through the environment; see API authentication.

curl --request PUT "https://api.screenrig.ai/api/card-data/kpi-main" \
  --header "Authorization: Bearer $SCREENRIG_TOKEN" \
  --header "ScreenRig-Project: $SCREENRIG_PROJECT" \
  --header "Content-Type: application/json" \
  --data '{"document":{"tiles":[{"label":"Example","value":1}]}}'