Absolute values in column charts

Comments

1 comment

  • Avatar
    Nicholas Ranum

    Here's for instances where you have more than 1 or 2 series/measures.

     

    widget.on('processresult', function(w,e) {


    var leng = e.result.series.length;

    for (var k = 0; k < leng; k++) {


    var s = e.result.series[k].data;

    for (var i = 0 ; i < s.length ; i++) {
    debugger

    if(s[i].y<0){
    s[i].y = s[i].y*-1;
    }
    else{
    s[i].y = s[i].y;
    }
    }

    }});

    1
    Comment actions Permalink

Please sign in to leave a comment.