var legenddistance = {}; legenddistance['A320'] = 80070 legenddistance['A330-200'] = 14130 legenddistance['A319'] = 14130 legenddistance['B737-400'] = 1884 legenddistance['ATR72-500'] = 2826 legenddistance['B777-200'] = 93258 legenddistance['B747-400'] = 101736 legenddistance['B757-200'] = 3768 legenddistance['B737-800'] = 22608 legenddistance['B777-300'] = 16014 legenddistance['B737-900ER'] = 1884 legenddistance['A330-300'] = 80070 legenddistance['B777-300ER'] = 98910 legenddistance['A380-800'] = 90432 legenddistance['A340-300'] = 14130 legenddistance['B737-300'] = 942 legenddistance['B767-200'] = 0 legenddistance['A310-300'] = 3768 legenddistance['Dash 8-300Q'] = 0 legenddistance['B747-300'] = 942 legenddistance['A350-900'] = 146009 legenddistance['Dash 8-400Q'] = 0 legenddistance['B767-300ER'] = 6594 legenddistance['E190'] = 942 legenddistance['A321'] = 6594 legenddistance['B787-9'] = 19782 legenddistance['RJ100'] = 0 legenddistance['B787-8'] = 15072 legenddistance['ATR72-600'] = 0 legenddistance['B787-10'] = 69708 legenddistance['A321neo'] = 8478 legenddistance['A320neo'] = 3768 legenddistance['B737-8'] = 17898 legenddistance['A220-300'] = 0 legenddistance['CRJ900'] = 0 legenddistance['E190-E2'] = 942 legenddistance['A220-100'] = 0 legenddistance['A330-900neo'] = 1884 $(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',8.5], ['A330-200',1.5], ['A319',1.5], ['B737-400',0.2], ['ATR72-500',0.3], ['B777-200',9.9], ['B747-400',10.8], ['B757-200',0.4], ['B737-800',2.4], ['B777-300',1.7], ['B737-900ER',0.2], ['A330-300',8.5], ['B777-300ER',10.5], ['A380-800',9.6], ['A340-300',1.5], ['B737-300',0.1], ['B767-200',0], ['A310-300',0.4], ['Dash 8-300Q',0], ['B747-300',0.1], ['A350-900',15.5], ['Dash 8-400Q',0], ['B767-300ER',0.7], ['E190',0.1], ['A321',0.7], ['B787-9',2.1], ['RJ100',0], ['B787-8',1.6], ['ATR72-600',0], ['B787-10',7.4], ['A321neo',0.9], ['A320neo',0.4], ['B737-8',1.9], ['A220-300',0], ['CRJ900',0], ['E190-E2',0.1], ['A220-100',0], ['A330-900neo',0.2] ] }] }); }); });