Highcharts - Export with background color -


i trying export chart , "white" background color. rendered background black (black color in page/code actually). don't know black color comes during download. can please. attaching "exporting" tag below

exporting: {                 chartoptions: { // specific options exported image                     plotoptions: {                         series: {                             datalabels: {                                 enabled: true                             }                         },                         chart: {                             events: {                                 load: function () {                                     globalbackground = '#fff';                                     this.plotbackground.attr({                                         fill: globalbackground                                     });                                 }                              }                         }                     }                 },                 fallbacktoexportserver: false,                 sourcewidth: 600,                 sourceheight: 400             } 

probably have chart backgroundcolor = null. means chart has transparent background. while exporting jpeg highcharts renders transparent background black. if want change color while exporting set background color in exporting object.

exporting: {   chartoptions: {     chart: {       backgroundcolor: '#9e9e9e'     }   } } 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -