score:2

UPDATE: Include the code from the Highcharts web site, i.e. http://code.highcharts.com/highcharts.js. When I do this, I get pie charts!! Woot!

I have the same issue using different data. All of the line based charts plot correctly.

I copied your JSON to jsfiddle and it runs. Then I pasted your JSON into my project, same error, "c is undefined".

The only difference I can see is that when I do this:

$('#chart').highcharts({...});

I get $(...).highcharts is not a function, so I am using:

var chart = Highcharts.Chart({...});

Code for my pie chart that generates the same error.

        var piechart = new Highcharts.Chart({
        chart: {
            borderColor: '#000000',
            borderWidth: 2,
            margin: 32,
            renderTo: 'piechart',
            type: chartType
        },
        series: [{
            name: 'Channel',
            data: [{
                name: 'Web',
                y: 75.6
            },{
                name: 'Mail',
                y: 24.4
            }]
        }],
        title: {
            text: 'Revenue'
        },
    });

Which also runs in jsfiddler as $('#piechart').highcharts ..., but not my web page.


Related Query

More Query from same tag