Progress list
Website34 / 40
Mobile app12 / 30
Docs22 / 20
Docs · Visuals
Several goals in one tile, each bar filled to its share of its own target.
Edit the example and the visual redraws. Mistakes show the same messages the API returns.
Change any number or label. The chart follows.
| Field | Type | Rule |
|---|---|---|
nameKeyRequired | string | The key in each row that holds the goal's name. Up to 80 characters. |
valueKeyRequired | string | The key in each row that holds how much is done. Up to 80 characters. Must differ from nameKey. |
maxKeyOptional | string | The key in each row that holds that row's own target. Up to 80 characters. Must differ from nameKey and valueKey. Give maxKey or max, not both. |
maxOptional | number | One target for every row, a number greater than 0. Give max or maxKey, not both. |
formatOptional | string | number (the default), compact or percent. Applies to the value and the target; a percent value is a fraction: 0.25 shows as 25%. |
prefixOptional | string | Shown before the value and the target, such as "$". Up to 80 characters. |
suffixOptional | string | Shown after the value and the target, such as " h". Up to 80 characters. |
rulesOptional | array | 1 to 6 items, each { "below": n, "status": … } or { "atLeast": n, "status": … }, with status good, warn or bad; the first match wins. They are judged on the share done, the value divided by the target, so 1 means the target is met. For example, "rules": [{ "below": 0.5, "status": "bad" }, { "atLeast": 0.9, "status": "good" }]. |
dataRequired | array | Up to 20 rows, drawn in the order you list them; may be empty. |
| Field | Type | Rule |
|---|---|---|
<nameKey>Required | string | The goal's name. Up to 80 characters. Names must be unique. |
<valueKey>Required | number | How much is done, 0 or more. |
<maxKey>Optional | number | Required when maxKey is set. The row's target, a number greater than 0. |
{
"nameKey": "project",
"valueKey": "done",
"maxKey": "total",
"format": "number",
"rules": [
{ "below": 0.5, "status": "bad" },
{ "below": 0.9, "status": "warn" },
{ "atLeast": 0.9, "status": "good" }
],
"data": [
{ "project": "Website", "done": 34, "total": 40 },
{ "project": "Mobile app", "done": 12, "total": 30 },
{ "project": "Docs", "done": 22, "total": 20 }
]
}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: Status grid JSON format