RAG
RAG widget - Red, Amber, Green - offers a traffic light view of your data.
Supported ADD parameters
ADD API
widget_class
- Contains "rag" for Rag-widget.
{
"title": "Sales",
"description": "Percentage logic",
"domain": "M1ZES",
"widget_class": "rag"
}
Supported SET parameters
SET API
The RAG widget expects 3 items. The order will determine which colour is applied. The first item being red, the second amber and the third green.
item
- Item is an array of 3 elements representing the red, amber, green trafficlights.
value
- This parameter describes the quantity of the entity being displayed. Must be a number. The first parameter represents Red, the second parameter Amber, and the third parameter Green.
label
- Indicates what the value represents. Minimum 2, maximum 12 characters
{
"domain":" M1ZES",
"widget_data": {
"item": [
{
"value": 16,
"label": "Too late"
},
{
"value": 64,
"label": "Overdue"
},
{
"value": 32,
"label": "Due"
}
]
}
}