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 Query

More Query from same tag