Background of Pie Chart

Answered

Comments

2 comments

  • Avatar
    Ronen Avidor

    Hi Megan,

    Try the script below, you can change the 'gray' to any color or hex code

     

    widget.on('render', function(se, ev){

    debugger;
    ev.widget.queryResult.chart.backgroundColor = 'gray';
    ev.widget.queryResult.legend.backgroundColor = 'gray';
    ev.widget.queryResult["navigation"] = {menuStyle: {background: 'gray'}};
    })

    0
    Comment actions Permalink
  • Avatar
    Ravid Paldi

    +1 to what to what Ronen suggested. 

     

    In general, when you want to do visual  changes to widgets that are based on the Highcarts library - it will be a lot more stable (and easier) to modify the chart objects itself rather than it's wrapper 

    0
    Comment actions Permalink

Please sign in to leave a comment.