Im using Highcharts with the export feature, from what I understand to add images to the chart I can use the renderer which works fine however I do not want the image (a logo) to appear on the chart in the app I want it to appear only on export, how would I be able to do this?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You should use chartOptions object and then catch load event where you place renderer code.
exporting:{
chartOptions:{
chart:{
events:{
load:function(){
this.renderer.image('http://highcharts.com/demo/gfx/sun.png', 100, 100, 30, 30)
.add();
}
}
}
}
},
Example: http://jsfiddle.net/rLfj69b9/2/