javascript - Highchart is not working on Google chrome - Stack Overflow

High chart is not working on chrome , while same chart works fine on Firefox.function display(){$(func

High chart is not working on chrome , while same chart works fine on 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>

Errors shown by chrome

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

this high chart works fine when I open it in firefox but it show above mentioned errors when I open it in IE and Chrome. Please suggest how can I overe these errors.

High chart is not working on chrome , while same chart works fine on 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>

Errors shown by chrome

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

this high chart works fine when I open it in firefox but it show above mentioned errors when I open it in IE and Chrome. Please suggest how can I overe these errors.

Share Improve this question asked Oct 7, 2013 at 10:58 abhinav dixitabhinav dixit 3412 gold badges7 silver badges17 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 6

This problem will happen if you are loading jQuery multiple times.

Try loading a single instance of jQuery (ideally the latest).

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744267786a4565948.html

相关推荐

  • javascript - Highchart is not working on Google chrome - Stack Overflow

    High chart is not working on chrome , while same chart works fine on Firefox.function display(){$(func

    8天前
    50

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信