Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/81.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery Highcharts-IE8中的参数无效_Jquery_Internet Explorer_Highcharts_Internet Explorer 8 - Fatal编程技术网

Jquery Highcharts-IE8中的参数无效

Jquery Highcharts-IE8中的参数无效,jquery,internet-explorer,highcharts,internet-explorer-8,Jquery,Internet Explorer,Highcharts,Internet Explorer 8,我在IE8中得到一个无效参数错误,在IE11中,图表将自己的宽度设置为2px,而不是填充其包含的div 我找不到任何尾随逗号或任何其他奇怪的代码 以下是导致问题的脚本部分: $('#PieApproverDivision').highcharts({ chart: { plotBackgroundColor: null, plotBorderWidth: null, plotShadow: false,

我在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 
            }]
        }]
    });
$(“#部门”)。高图({
图表:{
plotBackgroundColor:null,
plotBorderWidth:null,
影子:错,
键入:“馅饼”
},
标题:{
文本:“IAQUIRE费用状态:主要审批人”
},
工具提示:{
是的,
headerFormat:“{point.key}”,
pointFormat:“{series.name}:{point.y:,.0f}”,
页脚格式:“”
},
打印选项:{
馅饼:{
allowPointSelect:true,
光标:“指针”,
边框宽度:1,
边框颜色:“#C5BABA”,
showInLegend:是的,
数据标签:{
启用:对,
格式:“{point.name}:{point.percentage:.1f}%
${point.y:,.0f}” } } }, 学分:{ 已启用:false }, 出口:{ 已启用:false }, 系列:[{ 名称:“澳元”, //colorByPoint:对, 数据:[{ 名称:“剩余分配”, y:0.0001 ,dashStyle:“dash” ,颜色:'rgba(2342231,1)' },{ 名称:“xyz”, y:12345 },{ 名称:“abc”, y:7010 },{ 名称:“def”, y:799516 }] }] });

注意*我正在使用Jquery 1.9.1和Highcharts 3.0.10

highchart中的示例代码会发生什么?它们有用吗?海图网站上的样本很有用。我在这一页上还有一些图表,它们工作得很好,甚至有一个设置与此完全相同——这就是为什么这个问题特别令人困惑的原因(我看不到您提供的代码中有任何错误。一定是某种错误。我想您应该复制工作图表,并将其逐步更改为您需要的,以查看它在什么时候中断。很幸运,您是否可以将示例重新创建为live demo(在JSFIDLE.net上)以引入问题?因为您的代码看起来正确且运行良好。