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
Post a Comment