var legendsector = {};
legendsector['Unspecified'] = 117
legendsector['777'] = 15
legendsector['airbus'] = 2
legendsector['A320'] = 35
legendsector['A380'] = 4
legendsector['767'] = 3
legendsector['737'] = 7
legendsector['A319'] = 9
legendsector['747'] = 5
legendsector['Dash 8'] = 8
legendsector['A321'] = 5
legendsector['ATR 72-600'] = 2
legendsector['B777'] = 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: [
['Unspecified',54.9],
['777',7],
['airbus',0.9],
['A320',16.4],
['A380',1.9],
['767',1.4],
['737',3.3],
['A319',4.2],
['747',2.3],
['Dash 8',3.8],
['A321',2.3],
['ATR 72-600',0.9],
['B777',0.5]
]
}]
});
});
});