我在IE8中收到无效参数错误,在IE11中,图表将自己的宽度设置为2px而不是填充其包含的div。
我找不到任何尾随的逗号或其他任何奇怪的代码。
以下是导致此问题的脚本部分:
$('#PieApproverDivision').highcharts({
chart: {
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false,
type: 'pie'
},
title: {
text: 'iAcquire Expense Status: Primary Approver'
},
tooltip: {
useHTML: true,
headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td><td style="padding:0"><b>{point.y:,.0f}</b></td></tr>',
footerFormat: '</table>'
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
borderWidth: 1,
borderColor: '#C5BABA',
showInLegend: true,
dataLabels: {
enabled: true,
format: '{point.name}: <b>{point.percentage:.1f}%<br/>${point.y:,.0f}</b>'
}
}
},
credits: {
enabled: false
},
exporting: {
enabled: false
},
series: [{
name: "AUD",
//colorByPoint: true,
data: [{
name: "Remaining Allocation",
y: 0.0001
,dashStyle: 'dash'
,color: 'rgba(234,231,231,1)'
},{
name: "xyz ",
y: 12345
},{
name: "abc ",
y: 7010
},{
name: "def ",
y: 799516
}]
}]
});
注意*我正在使用Jquery 1.9.1和Highcharts 3.0.10