我创建了一个带有堆积条形图的vf页面,使用了高级API API。
var chart1 = new Highcharts.Chart({
chart: {
renderTo: 'container',
type: 'column'
},
title: {
text: '{!ReportName}'
},
subtitle: {
text: ''
},
navigation: {
buttonOptions: {
enabled: false
}
},
xAxis: {
categories: {!stackGroupings},
labels: {
style: {whitespace:'normal'},
}
},
yAxis: {
title: {
text: '{!$Label.AnnualContractValue} ({!UserCurrency})'
},
labels: {
overflow: 'justify'
},
labels: {
format: '{value} K'
}
},
plotOptions: {
column: {
dataLabels: {
align: 'left',
color: 'red',
enabled: true
}
},
series: {
cursor: 'pointer',
point: {
events: {
click: function() {
// used for redirecting to the Drill Down Report
viewDrillDown();
}
}
}
},
column: {
stacking: 'normal',
dataLabels: {
enabled: false
}
}
},
credits: {
enabled: false
}
});
但是当我将此页面呈现为PDF时,此条形图未显示。因此,当renderas =" pdf"时,可以在pdf上有条形图。如果有可能,有人有解决方案吗?