Printing 打印和导出带有徽标的海图
我只想在打印和导出海图时添加徽标。 我尝试过出口,效果很好,但在印刷方面没有希望。Printing 打印和导出带有徽标的海图,printing,highcharts,export,Printing,Highcharts,Export,我只想在打印和导出海图时添加徽标。 我尝试过出口,效果很好,但在印刷方面没有希望。 有什么想法吗?请使用和事件在图表中添加和删除徽标。感谢Pawel的重播,但我不知道如何在afterprintInbeforePrint存储创建的徽标:this.myLogo=this.renderer.image(…).add()。然后在afterPrint中使用:if(this.myLogo){this.myLogo=this.myLogo.destroy();}删除该徽标。 $(function (
有什么想法吗?请使用和事件在图表中添加和删除徽标。感谢Pawel的重播,但我不知道如何在afterprintIn
beforePrint
存储创建的徽标:this.myLogo=this.renderer.image(…).add()代码>。然后在afterPrint
中使用:if(this.myLogo){this.myLogo=this.myLogo.destroy();}
删除该徽标。
$(function () {
// create the chart
$('#container').highcharts({
chart: {
events: {
load: function () {
if(this.options.chart.forExport) {
this.renderer.image('http://highsoft.com/images/media/Highsoft-Solutions-143px.png', 80, 40, 143, 57)
.add();
}
}
}
},
series: [{
animation: false,
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
}]
});
});