var legendsector = {};
legendsector['Unspecified'] = 122
legendsector['747-400'] = 3
legendsector['777-300'] = 1
legendsector['744'] = 11
legendsector['773'] = 1
legendsector['340-600'] = 1
legendsector['320'] = 1
legendsector['A340'] = 2
legendsector['A321'] = 1
legendsector['A333'] = 1
legendsector['A300'] = 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',84.1],
['747-400',2.1],
['777-300',0.7],
['744',7.6],
['773',0.7],
['340-600',0.7],
['320',0.7],
['A340',1.4],
['A321',0.7],
['A333',0.7],
['A300',0.7]
]
}]
});
});
});