KPI
MRR
$12,840
12% vs last month
Docs · Visuals
One formatted number, with an optional change beside it.
Edit the example and the visual redraws. Mistakes show the same messages the API returns.
MRR
$12,840
12% vs last month
Change any number or label. The chart follows.
| Field | Type | Rule |
|---|---|---|
labelRequired | string | What the number is. Up to 80 characters; may be empty. |
valueRequired | number | The number itself. |
formatRequired | string | "number" (12,840), "compact" (12.8K) or "percent". Percent multiplies by 100, so send 0.082 for 8.2%. |
prefixOptional | string | Shown before the number, such as "$". Up to 80 characters. |
suffixOptional | string | Shown after the number, such as " ms". Up to 80 characters. |
deltaOptional | number | A change to show beside the value. |
deltaFormatOptional | string | "number" or "percent" (0.12 shows as 12%). Number when left out. |
deltaLabelOptional | string | Words after the change, such as "vs last month". Up to 80 characters. |
trendOptional | array | Up to 60 numbers, oldest first, in the same unit as value. Drawn as a small line beside the number, or under it in a taller tile. For example, "trend": [12, 15, 14, 18, 21]. |
{
"label": "MRR",
"value": 12840,
"format": "number",
"prefix": "$",
"delta": 0.12,
"deltaFormat": "percent",
"deltaLabel": "vs last month"
}Paste the document in the editor, or replace it with a PUT to the visual's push URL. The push API page has the details and examples.
Next: Table JSON format