Hello,
I’m trying to apply colors by the status received in a query (it could be 1, 2 or 3). This is what I have:
{
"$$hashKey": "object:508",
"alias": "",
"align": "auto",
"colorMode": "row",
"colors": [
"#73BF69", # Green
"#C4162A",# Red
"#8c8787" # Gray
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 0,
"mappingType": 1,
"pattern": "Status Code",
"thresholds": [
1,
2,
3
],
"type": "number",
"unit": "short"
}
The thing is that it’s not applying the right colors. 1 should be green, 2 red and 3 gray as described in the colors array.
It applies red to 1 and gray to 2 and 3.
Do you know what can be the problem?
Thank you.