Forum Discussion

rahuldhomane's avatar
09-08-2022
Solved

Pivot chart script not working

Hi , I am trying to manipulate the pivot chart font size, color and other aesthetic elements using one the script I found on the community posts. However, the script is not working as I am also try...
  • harikm007's avatar
    harikm007
    09-21-2022

    Hi rahuldhomane ,

    Try this script to change font color:

    widget.on('ready', function(ev){
    	$(".table-grid__row .table-grid__cell--data", element).each(function(){
    		if($(this).text() =='✔')
    			$(this).css('color', 'green')
    		else
    			$(this).css('color', 'red')
    	
    	})
    })

    -Hari