Forum Discussion
Alek_qbeeq
03-15-2022Cloud Apps
Hi Nazeer,
For indicators you can use something like this:
widget.on('processresult', function (e, ev) {
console.log(ev.result)
console.log(e.indicatorInstance)
});
First console log will return basic informations like values, title, etc.
Second one will return more advance properties, like styling of each element.
Now, depending on what you would like to achive, you can use simple if statment and change for example font color of indicator label.
widget.on('processresult', function (e, ev) {
var options = {
title: {
fontWeight: 'bold',
color: 'green'
}
}
if (ev.result.value.data > x) e.indicatorInstance.setOptions('numericSimple', options);
});
Alek
[email protected]