Highcharts 导出图像不工作的图表
我有一个网站,其中一个创建一个图表与海图。现在我想在图表中间添加我们的徽标。现在看起来很不错,但是我添加的图像无法导出。当我移除徽标时,导出再次工作。这是一个解决方法还是一个bug?其他人有这个问题吗 这是我的代码:Highcharts 导出图像不工作的图表,highcharts,highstock,Highcharts,Highstock,我有一个网站,其中一个创建一个图表与海图。现在我想在图表中间添加我们的徽标。现在看起来很不错,但是我添加的图像无法导出。当我移除徽标时,导出再次工作。这是一个解决方法还是一个bug?其他人有这个问题吗 这是我的代码: $(document).ready(function () { $('#container').highcharts({ chart: { height: $(window).innerHeight()
$(document).ready(function () {
$('#container').highcharts({
chart: {
height: $(window).innerHeight() * 0.98,
type: 'scatter',
zoomType: 'xy',
backgroundColor: 'transparent',
events: {
load: function() {
this.renderer.image('/Content/PPC2012/Images/Charts/logoopacity.png', this.plotLeft + (this.plotWidth * 0.5) - (729 * 0.5) - 75, this.plotTop + (this.plotHeight * 0.5) - (450 * 0.5) - 50, this.plotLeft + (this.plotWidth * 0.5) + (729 * 0.5) - 75, this.plotTop + (this.plotHeight * 0.5) + (450 * 0.5) - 50).attr({'zIndex' : 10}).add();}
},
},
尝试使用完整路径,例如:这很好
chart: {
renderTo: 'container',
events: {
load: function () {
this.renderer.image('http://highcharts.com/demo/gfx/sun.png', 100, 100, 30, 30)
.add();
}
}
},
谢谢,这个有用!我试图使用在localhost上运行的完整路径,如:。这是失败的。