highcharts - IE中的错误 - 参数无效

时间:2013-12-02 10:25:19

标签: internet-explorer-8 highcharts invalid-argument

我在IE中收到错误:

消息:参数无效。 行:8 查尔:56 代码:0 URI:... / js / highcharts.js

下面是highcharts图表代码..它在Firefox中工作得很好,但在IE中引发了一个错误。任何人都可以帮助我。感谢。

    function drawChart(categories,series){
       $('#container').highcharts({
    chart: {
        backgroundColor:'rgba(255, 255, 255, 0.1)',
        spacingLeft: -2
    },
    xAxis: {
        categories: categories,
        gridLineWidth:0.5,
        labels: {
            style: {
                fontSize:'0px'
            }
    }
    },
    colors: ["#a7c1d0"],
    plotOptions: {
        series: {
            marker: {
                enabled: false
            }
        }
    },
    title: {
        text: "Last 45 days NAV Price",
            align: 'center',
            style:{
                color: '#5e605e',
                fontSize:'11px',
                fontFamily:'Arial'
            },
            y:1
    },
    legend: {
    enabled:false
        },
        navigation: {
            buttonOptions: {
                enabled: false
            }
        },
        yAxis: {
              title: {
                    enabled: true,
                    text: 'Price',
                    style: {
                        color: '#5e605e',
                        fontSize:'10px',
                        marginLeft:'-5px;',
                        fontFamily:'Arial'
                    }
                },
            labels:{
                style:{
                    fontSize:'10px'
                },


                step:0,
            },
            lineWidth: 1,
            tickInterval: 0.20,
            minTickInterval:0.20
        },
    series: [{
        data: series     
    }]
});
}

1 个答案:

答案 0 :(得分:0)

您可以粘贴数据吗?更不用说你在标签对象中有额外的共同点。

labels:{
            style:{
                fontSize:'10px'
            },


            step:0,
        },

http://www.highcharts.com/docs/frequently-asked-questions#not-showing-in-explorer

相关问题