Forum Discussion
hkkwon89
07-28-2022Cloud Apps
harikm007
Hi Hari,
Sorry to be pinging you into a post but would the above be possible? I'm basically trying to change what's in the first screenshot attached (arrows and percentage) to what's in second screenshot.
Thanks a lot!
harikm007
07-28-2022Data Warehouse
Hi hkkwon89 ,
One solution is to add widget script.
Add new class to the element as highlighted in below screenshot:
And add below widget script.
widget.on('domready', function(se, ev){
var color = 'yellow'
myElement = $('.myValue1', element)
AR_percentage = parseFloat(myElement.text())
if(AR_percentage <= 2000)
color = '#fd6e69'
else if(AR_percentage <= 10000)
color = '#FAA0A0'
else if (AR_percentage > 10000)
color = '#3adcca'
myElement.css('background-color', color)
})
-Hari