var legenddistance = {}; legenddistance['A320'] = 82615 legenddistance['A330-200'] = 14368 legenddistance['A319'] = 14368 legenddistance['B737-400'] = 1796 legenddistance['ATR72-500'] = 2694 legenddistance['B777-200'] = 92493 legenddistance['B747-400'] = 101473 legenddistance['B757-200'] = 4490 legenddistance['B737-800'] = 23348 legenddistance['B777-300'] = 16164 legenddistance['B737-900ER'] = 1796 legenddistance['A330-300'] = 79921 legenddistance['B777-300ER'] = 86207 legenddistance['A380-800'] = 84411 legenddistance['A340-300'] = 13470 legenddistance['B737-300'] = 898 legenddistance['B767-200'] = 0 legenddistance['A310-300'] = 3592 legenddistance['Dash 8-300Q'] = 0 legenddistance['B747-300'] = 898 legenddistance['Dash 8-400Q'] = 0 legenddistance['B767-300ER'] = 7184 legenddistance['E190'] = 898 legenddistance['A321'] = 6286 legenddistance['A350-900'] = 137393 legenddistance['B787-9'] = 11674 legenddistance['RJ100'] = 0 legenddistance['B787-8'] = 23348 legenddistance['ATR72-600'] = 0 legenddistance['B787-10'] = 58370 legenddistance['A321neo'] = 7184 legenddistance['A320neo'] = 1796 legenddistance['B737-8'] = 14368 legenddistance['A220-300'] = 0 legenddistance['CRJ900'] = 0 legenddistance['E190-E2'] = 898 legenddistance['A220-100'] = 0 legenddistance['A330-900neo'] = 1796 $(function () { var chart; $(document).ready(function() { // Build the chart chart = new Highcharts.Chart({ chart: { renderTo: 'aircraft_distance', 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 +' % (' + legenddistance[this.point.name].toLocaleString() + ')'; } } } }, series: [{ type: 'pie', name: 'Sectors by Aircraft', data: [ ['A320',9.2], ['A330-200',1.6], ['A319',1.6], ['B737-400',0.2], ['ATR72-500',0.3], ['B777-200',10.3], ['B747-400',11.3], ['B757-200',0.5], ['B737-800',2.6], ['B777-300',1.8], ['B737-900ER',0.2], ['A330-300',8.9], ['B777-300ER',9.6], ['A380-800',9.4], ['A340-300',1.5], ['B737-300',0.1], ['B767-200',0], ['A310-300',0.4], ['Dash 8-300Q',0], ['B747-300',0.1], ['Dash 8-400Q',0], ['B767-300ER',0.8], ['E190',0.1], ['A321',0.7], ['A350-900',15.3], ['B787-9',1.3], ['RJ100',0], ['B787-8',2.6], ['ATR72-600',0], ['B787-10',6.5], ['A321neo',0.8], ['A320neo',0.2], ['B737-8',1.6], ['A220-300',0], ['CRJ900',0], ['E190-E2',0.1], ['A220-100',0], ['A330-900neo',0.2] ] }] }); }); });