score:2

Accepted answer

The pie charts data is a twodimentional array with [name, number], like this:

for (var i = 0; i < json.results.length; i++) { 
    r = json.results[i];
    a_dataPerct.push([r.OptionName, r.Percentage]);
}

score:0

series: [{ type: 'pie', name: '', data:

            }],
        x:[{        

                data:<?php echo $jastudentcount; ?> 
                }]

formatter: function() { return ''+ this.point.name +': '+'('+ this.y +')'+ Highcharts.numberFormat(this.percentage, 2)+' %'; }


Related Articles