cancel
Showing results for 
Search instead for 
Did you mean: 

how to change the color of data bar in pivot table

merinsverghese
8 - Cloud Apps
8 - Cloud Apps

I want to change the color of data bar in pivot table. I found a related post from 2023 (Change Color Of Data Bars In Pivot (sisense.com)) but it's not working for me. Please let me know if there is any other method. 

1 ACCEPTED SOLUTION

Helena_qbeeq
9 - Travel Pro
9 - Travel Pro

Hi @merinsverghese ,

It looks like since that post the class changed.

Try with the following script. It should work now:

 
widget.on('ready', function(se, ev){
    
    $('.sisense-pivot__data-bar-bar', element).css('background-color', 'red');
})
Please let me know if this works for you : )

View solution in original post

2 REPLIES 2

Helena_qbeeq
9 - Travel Pro
9 - Travel Pro

Hi @merinsverghese ,

It looks like since that post the class changed.

Try with the following script. It should work now:

 
widget.on('ready', function(se, ev){
    
    $('.sisense-pivot__data-bar-bar', element).css('background-color', 'red');
})
Please let me know if this works for you : )

It Worked. Thank you.

Regards,

Merin