var legendsector = {}; legendsector['Unspecified'] = 208 legendsector['777'] = 28 legendsector['757'] = 6 legendsector['747-400'] = 6 legendsector['737-300'] = 2 legendsector['A319'] = 3 legendsector['A330'] = 2 legendsector['A320'] = 2 legendsector['A321'] = 7 legendsector['747'] = 23 legendsector['Avroliner RJ100 '] = 2 legendsector['TBC'] = 2 legendsector['A380'] = 2 $(function () { var chart; $(document).ready(function() { // Build the chart chart = new Highcharts.Chart({ chart: { renderTo: 'aircraft_sector', plotBackgroundColor: null, plotBorderWidth: null, plotShadow: false }, title: { text: '' }, tooltip: { pointFormat: '{series.name}: {point.percentage}%', percentageDecimals: 1 }, plotOptions: { pie: { allowPointSelect: true, cursor: 'pointer', dataLabels: { enabled: true, color: '#000000', connectorColor: '#000000', formatter: function() { return ''+ this.point.name +': '+ Math.round(this.percentage*10)/10 +' % (' + legendsector[this.point.name].toLocaleString() + ')'; } } } }, series: [{ type: 'pie', name: 'Sectors by Aircraft', data: [ ['Unspecified',71], ['777',9.6], ['757',2], ['747-400',2], ['737-300',0.7], ['A319',1], ['A330',0.7], ['A320',0.7], ['A321',2.4], ['747',7.8], ['Avroliner RJ100 ',0.7], ['TBC',0.7], ['A380',0.7] ] }] }); }); });