highcharts - error in IE - Invalid Argument

970 views Asked by At

I am getting an error in IE as:

Message: Invalid argument. Line: 8 Char: 56 Code: 0 URI: .../js/highcharts.js

Below is the highcharts chart code..It works perfectly fine in Firefox but in IE throws an error.Can anybody help me with this. Thanks.

    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

There are 1 answers

4
Sebastian Bochan On BEST ANSWER

Could you paste your data? Moreever you have i.e extra common in labels object.

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


            step:0,
        },

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