0

Highcharts is displaying a chart perfectly in Chrome, but in Firefox, IE10, it returns the error:

NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMWindow.getComputedStyle]

This is the code I'm using:

$('#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
        }]
    });
4

0 回答 0