var legendsector = {}; legendsector['A320'] = 127 legendsector['A330-200'] = 4 legendsector['A319'] = 20 legendsector['B737-400'] = 7 legendsector['ATR72-500'] = 12 legendsector['B777-200'] = 46 legendsector['B747-400'] = 30 legendsector['B757-200'] = 4 legendsector['B737-800'] = 41 legendsector['B777-300'] = 14 legendsector['B737-900ER'] = 4 legendsector['A330-300'] = 43 legendsector['B777-300ER'] = 27 legendsector['A380-800'] = 20 legendsector['A340-300'] = 9 legendsector['B737-300'] = 1 legendsector['B767-200'] = 1 legendsector['A310-300'] = 5 legendsector['Dash 8-300Q'] = 1 legendsector['B747-300'] = 1 legendsector['Dash 8-400Q'] = 1 legendsector['B767-300ER'] = 3 legendsector['E190'] = 2 legendsector['A321'] = 9 legendsector['A350-900'] = 44 legendsector['B787-9'] = 6 legendsector['RJ100'] = 1 legendsector['B787-8'] = 12 legendsector['ATR72-600'] = 2 legendsector['B787-10'] = 38 legendsector['A321neo'] = 7 legendsector['A320neo'] = 3 legendsector['B737-8'] = 11 legendsector['A220-300'] = 1 legendsector['CRJ900'] = 1 legendsector['E190-E2'] = 4 legendsector['A220-100'] = 1 legendsector['A330-900neo'] = 1 $(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: [ ['A320',22.5], ['A330-200',0.7], ['A319',3.5], ['B737-400',1.2], ['ATR72-500',2.1], ['B777-200',8.2], ['B747-400',5.3], ['B757-200',0.7], ['B737-800',7.3], ['B777-300',2.5], ['B737-900ER',0.7], ['A330-300',7.6], ['B777-300ER',4.8], ['A380-800',3.5], ['A340-300',1.6], ['B737-300',0.2], ['B767-200',0.2], ['A310-300',0.9], ['Dash 8-300Q',0.2], ['B747-300',0.2], ['Dash 8-400Q',0.2], ['B767-300ER',0.5], ['E190',0.4], ['A321',1.6], ['A350-900',7.8], ['B787-9',1.1], ['RJ100',0.2], ['B787-8',2.1], ['ATR72-600',0.4], ['B787-10',6.7], ['A321neo',1.2], ['A320neo',0.5], ['B737-8',2], ['A220-300',0.2], ['CRJ900',0.2], ['E190-E2',0.7], ['A220-100',0.2], ['A330-900neo',0.2] ] }] }); }); });