/** * Add a 50% slice */

var sum = 0; for ( var x in chartData ) { sum += chartData[x].litres; } chartData.push({ "litres": sum, "alpha": 0 });

/** * Create the chart */

var chart = AmCharts.makeChart("chartdiv", { "type": "pie", "theme": "none", "startAngle": 0, "radius": "90%", "innerRadius": "50%", "dataProvider": chartData, "valueField": "litres", "titleField": "country", "alphaField": "alpha", "labelsEnabled": false, "pullOutRadius": 0, "pieY": "95%" });