Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Highchart is not working on Google chrome

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 overcome these errors.

like image 290
abhinav dixit Avatar asked Oct 07 '13 10:10

abhinav dixit


People also ask

Can I use Highchart for free?

Highcharts is a software library for charting written in pure JavaScript, first released in 2009. The license is proprietary. It is free for personal/non-commercial uses and paid for commercial applications.

What is the latest version of Highcharts?

Highcharts v9. 3.0 (2021-10-21)

Is Highchart open source?

Highcharts is not a real Free Software/Open Source project #1.

Is Highcharts a JavaScript library?

Highcharts is a pure JavaScript based charting library meant to enhance web applications by adding interactive charting capability. Highcharts provides a wide variety of charts.


1 Answers

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

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

like image 171
Anshad Vattapoyil Avatar answered Oct 10 '22 02:10

Anshad Vattapoyil