0
我有一個網站,其中創建一個圖表highcharts。現在我想在圖表中間添加我們的徽標。現在看起來不錯,但導出失敗,我添加的圖像。當我刪除標誌,導出再次工作。有沒有解決方法,或者這是一個錯誤?其他人有這個問題?導出圖表不能正常工作
這是我的代碼:
$(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();}
},
},
謝謝,這個作品!我試圖使用在localhost上運行的完整路徑,例如:http:// localhost:50917/Content/PPC2012/Images/Charts/logoopacity15.png。那失敗了。 –