var legendsector = {};
legendsector['332'] = 28
legendsector['333'] = 13
legendsector['744'] = 57
legendsector['73H'] = 134
legendsector['734'] = 72
legendsector['777'] = 4
legendsector['763'] = 78
legendsector['MD80'] = 1
legendsector['757'] = 20
legendsector['773'] = 11
legendsector['Unspecified'] = 15
legendsector['738'] = 16
legendsector['733'] = 50
legendsector['320'] = 51
legendsector['5A'] = 1
legendsector['S80'] = 23
legendsector['322'] = 3
legendsector['ERJ'] = 4
legendsector['AB6'] = 1
legendsector['S83'] = 3
legendsector['388'] = 24
legendsector['772'] = 7
legendsector['M83'] = 6
legendsector['737'] = 15
legendsector['BEH'] = 6
legendsector['DH3'] = 7
legendsector['M80'] = 5
legendsector['330'] = 3
legendsector['752'] = 19
legendsector['Q300'] = 2
legendsector['24D'] = 1
legendsector['CR7'] = 1
legendsector['ATR'] = 1
legendsector['CR2'] = 1
legendsector['321'] = 7
legendsector['73W'] = 7
legendsector['77W'] = 15
legendsector['AT7'] = 1
legendsector['E70'] = 2
legendsector['319'] = 2
legendsector['E190'] = 1
legendsector['E90'] = 7
legendsector['RJ9'] = 2
legendsector['CRJ'] = 4
legendsector['52'] = 1
legendsector['753'] = 2
legendsector['M88'] = 1
legendsector['346'] = 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: [
['332',3.8],
['333',1.8],
['744',7.7],
['73H',18.2],
['734',9.8],
['777',0.5],
['763',10.6],
['MD80',0.1],
['757',2.7],
['773',1.5],
['Unspecified',2],
['738',2.2],
['733',6.8],
['320',6.9],
['5A',0.1],
['S80',3.1],
['322',0.4],
['ERJ',0.5],
['AB6',0.1],
['S83',0.4],
['388',3.3],
['772',1],
['M83',0.8],
['737',2],
['BEH',0.8],
['DH3',1],
['M80',0.7],
['330',0.4],
['752',2.6],
['Q300',0.3],
['24D',0.1],
['CR7',0.1],
['ATR',0.1],
['CR2',0.1],
['321',1],
['73W',1],
['77W',2],
['AT7',0.1],
['E70',0.3],
['319',0.3],
['E190',0.1],
['E90',1],
['RJ9',0.3],
['CRJ',0.5],
['52',0.1],
['753',0.3],
['M88',0.1],
['346',0.1]
]
}]
});
});
});