在Firefox,IE中显示Highcharts图表时出错

时间:2013-11-06 12:53:48

标签: javascript jquery internet-explorer firefox highcharts

Highcharts在Chrome中完美地显示了图表,但在Firefox,IE10中,它返回错误:

  

NS_ERROR_FAILURE:组件返回失败代码:0x80004005(NS_ERROR_FAILURE)[nsIDOMWindow.getComputedStyle]

这是我使用的代码:

$('#graf-1').highcharts({
        chart: {
            zoomType: 'xy'
        },
        title: {
            text: 'Titel'
        },
        subtitle: {
            text: null
        },
        xAxis: [{
            categories: datax
        }],
        yAxis: [{ // Primary yAxis
            labels: {
                format: '{value:,.0f} €',
                style: {
                    color: cor1
                }
            },
            title: {
                text: null
            }
        }, { // Secondary yAxis
            title: {
                text: null //eixoz,
            },
            labels: {
                format: '{value} %',
                style: {
                    color: cor2
                }
            },
            opposite: true
        }],
        tooltip: {
            shared: true
        },
        legend: {
            layout: 'vertical',
            align: 'left',
            x: 120,
            verticalAlign: 'top',
            y: 100,
            floating: true,
            backgroundColor: '#FFFFFF'
        },
        series: [{
            name: eixoz,
            color: cor2,
            type: 'line',
            yAxis: 1,
            data: dataz,
            tooltip: {
                valueSuffix: ' %'
            },
            zIndex: 2
        }, {
            name: eixoy,
            color: cor1,
            type: 'column',
            data: datay,
            tooltip: {
                valueSuffix: ' €'
            },
            zIndex: 1
        }]
    });

0 个答案:

没有答案