Set The Background Color Of An Indicator
Introduction
Use this script to set the background color of the indicator widget.
Instructions
Create an indicator widget and add the following script
// set the background color here
var bgColor = '#F8F8F8'
widget.on('processresult', function(w, e) {
var options = {
backgroundColor: bgColor
};
w.indicatorInstance.setOptions('numericSimple', options);
});
widget.on('domready', function (w) {
$(element).css('background-color', bgColor);
});
Updated 03-02-2023
intapiuser
Admin
Joined December 15, 2022