# Number tiles card

> Canonical HTML: https://screenrig.ai/docs/cards/kpi/

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](/cards/kpi/v1/screenshots/canvas-bloom.webp?sha=7cc3e35892c4e24a2e5ea2b7175a7acd88de9c7f414775e4a01575d379775794)

Canvas

![Number tiles](/cards/kpi/v1/screenshots/corner-bloom.webp?sha=10d28adca1e2a2784777f1596766fe3683692545f81012a7276f725872abb01c)

Corner

![Number tiles](/cards/kpi/v1/screenshots/chip-bloom.webp?sha=b5dcae8c0671a50edf543a2bcee0ee597e64f96ead4112147fe2b2fd1188cb54)

Chip

## Views and forms

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

[Card views, themes and publishing](/docs/cards/). [Browse the gallery](/apps/#cards).

## Data and privacy

This card uses its configured properties and live card data.

## Properties

For theme, background, accent and position, see [Common properties](/docs/cards/#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

| Name | Type | Default | Values and limits | Description |
| --- | --- | --- | --- | --- |
| `title` | string | `""` | maxLength: `60` |  |
| `compact` | boolean | `false` |  |  |
| `layout` | string | `"auto"` | `"auto"`, `"row"`, `"grid"` |  |
| `cycleSeconds` | integer | `6` | minimum: `3`; maximum: `60` | The chip view shows one tile at a time, turning on the wall clock. |

### Dynamic properties

| Name | Type | Default | Values and limits | Description |
| --- | --- | --- | --- | --- |
| `tiles` | array |  | minItems: `1`; maxItems: `12`; Required |  |
| `tiles[].label` | string |  | maxLength: `40`; Required |  |
| `tiles[].value` | number |  | Required |  |
| `tiles[].unit` | string | `""` | maxLength: `6` | Currency symbols lead ($1,280); other units follow (98.6%, 120 ms). |
| `tiles[].decimals` | integer, null | `null` | minimum: `0`; maximum: `4` | null: none for whole numbers, one otherwise. |
| `tiles[].compact` | boolean, null | `null` |  | Abbreviate thousands, millions and billions (12.4K, 3.2M). null follows the card's compact. |
| `tiles[].delta` | number, null | `null` |  |  |
| `tiles[].deltaUnit` | string | `"%"` | maxLength: `6` | % shows a percentage; an empty string the bare number; anything else follows it. |
| `tiles[].deltaLabel` | string | `""` | maxLength: `30` |  |
| `tiles[].goal` | number, null | `null` |  |  |
| `tiles[].trend` | array | `[]` | maxItems: `60` |  |
| `tiles[].invert` | boolean | `false` |  | True 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](/docs/cards/#publish-a-card-canvas).

```json
{
  "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](/docs/authentication/).

```console
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}]}}'
```
