HighCharts Pie Test
Attempting to get data to pie from table
HTML
<script src="http://code.highcharts.com/highcharts.js"></script>
<div id="container" style="width: 320px; height: 200px"></div>
JavaScript
new Highcharts.Chart({
series: [
{
type: 'pie',
name: 'Ratio',
data: [
['A', 42.6],
{
name: 'B',
y: 14.2,
sliced: true,
selected: true}
]}
],
"title": {
"text": null
},
"chart": {
"renderTo": "container"
},
plotOptions: {
pie: {
dataLabels: {
formatter: function() {
return '<b>' + this.point.name + '</b>: ' + this.percentage.toFixed(2) + ' %';
}
}
}
},
});