var legendsector = {};
legendsector['Unspecified'] = 85
legendsector['737-300'] = 9
legendsector['A320?'] = 3
legendsector['767-300'] = 2
legendsector['Boeing'] = 1
legendsector['737-800'] = 4
legendsector['747-400'] = 4
legendsector['M83'] = 1
legendsector['737'] = 1
legendsector['A320-200'] = 2
legendsector['A320-200 VH-VNC'] = 1
legendsector['A320-200 VH-VNF'] = 1
legendsector['A320-200 VH-VND'] = 1
legendsector['A320-100/200'] = 2
legendsector['737-400'] = 1
legendsector['767-300/300ER'] = 2
legendsector['777-200'] = 2
legendsector['
'] = 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',69.1],
['737-300',7.3],
['A320?',2.4],
['767-300',1.6],
['Boeing',0.8],
['737-800',3.3],
['747-400',3.3],
['M83',0.8],
['737',0.8],
['A320-200',1.6],
['A320-200 VH-VNC',0.8],
['A320-200 VH-VNF',0.8],
['A320-200 VH-VND',0.8],
['A320-100/200',1.6],
['737-400',0.8],
['767-300/300ER',1.6],
['777-200',1.6],
['
',0.8]
]
}]
});
});
});