Coloring a specific grand total column

Answered

Comments

1 comment

  • Avatar
    Oxana Noa Umansky

    Hi Dima,

    Here are a few examples that can help customizing the script: 

    Sam provided a script with the use of fidx here: https://support.sisense.com/hc/en-us/community/posts/221227048/comments/115004607868

    Here is the script from the comment:

    widget.on("ready",function(se,ev){
    $(".databar[fidx=2] .bar-container .bar").css('background-color', 'red');
    $(".databar[fidx=3] .bar-container .bar").css('background-color', 'blue');
    });

    Also, here is a comment from David with a differenet use case: https://support.sisense.com/hc/en-us/community/posts/221226748/comments/224579508

    widget.on('ready', function(se, ev){
    
    var columnIndex = 0; //The index of the column to change (starting with 0 for the first column)

    $('thead .p-dim-head[fidx='+columnIndex+'] .wrapper',element)
    .css({
    'color': 'red', // change font color
    'font-family': 'Serif', // change font family
    'background-color': '#FFB6C1'

    })
    });

    Let me know if this helps. 

    Thanks,

    Oxana

    0
    Comment actions Permalink

Please sign in to leave a comment.