Highchart不适用于Google chrome

Highchart is not working on Google chrome

本文关键字:chrome Google 适用于 不适用 Highchart      更新时间:2023-09-26

High chart在chrome上不起作用,而相同的图表在Firefox上工作正常。

function display()
{
     $(function () {
        $('#container1').highcharts({
            chart: {
                type: 'bar'
            },
            title: {
                text: 'Showing Requested,Processed and Relayed status on '
            },
            subtitle: {
                text: 'Domain wise Break Down'
            },
            xAxis: {
                categories: ['Gmail', 'Yahoo', 'Rediff', 'Hotmail', 'Others'],
                title: {
                    text: null
                }
            },
            yAxis: {
                min: 0,
                title: {
                    text: 'Request/Relay Status',
                    align: 'high'
                },
                labels: {
                    overflow: 'justify'
                }
            },
            //tooltip: {
             //   valueSuffix: ' millions'
            //},
            plotOptions: {
                bar: {
                    dataLabels: {
                       // enabled: true
                    }
                }
            },
            legend: {
                layout: 'vertical',
                align: 'right',
                verticalAlign: 'top',
                x: -40,
                y: 100,
                floating: true,
                borderWidth: 1,
                backgroundColor: '#FFFFFF',
                shadow: true
            },
            credits: {
                enabled: false
            },
            series: [{
                name: 'Relayed',
                data: [c111,c222,c333,c444,c555]
            }, {
                name: 'Processed',
                data: [c666,c777,c888,c999,c100]
            }, {
                name: 'Requested',
                data: [c110,c120,c130,c140,c150]
            }]
        });
    });
}
</script>

铬显示的错误

Uncaught TypeError: Cannot read property 'opacity' of undefined highcharts.js:24
Uncaught TypeError: Cannot read property 'prototype' of undefined exporting.js:9
Uncaught TypeError: Object #<Object> has no method 'highcharts' read_csv.php:67
当我在 Firefox 中打开它时,

这个高图表工作正常,但当我在 IE 和 Chrome 中打开它时,它会显示上述错误。请建议如何克服这些错误。

如果您多次加载 jQuery,就会发生此问题。

尝试加载 jQuery 的单个实例(最好是最新的)。