var legenddistance = {};
legenddistance['Unspecified'] = 176789
legenddistance['737-300'] = 3313
legenddistance['A320?'] = 4497
legenddistance['767-300'] = 947
legenddistance['Boeing'] = 473
legenddistance['737-800'] = 3313
legenddistance['747-400'] = 29346
legenddistance['M83'] = 237
legenddistance['737'] = 473
legenddistance['A320-200'] = 1657
legenddistance['A320-200 VH-VNC'] = 710
legenddistance['A320-200 VH-VNF'] = 710
legenddistance['A320-200 VH-VND'] = 710
legenddistance['A320-100/200'] = 1420
legenddistance['737-400'] = 473
legenddistance['767-300/300ER'] = 2603
legenddistance['777-200'] = 7573
legenddistance['
'] = 947
$(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: [
['Unspecified',74.7],
['737-300',1.4],
['A320?',1.9],
['767-300',0.4],
['Boeing',0.2],
['737-800',1.4],
['747-400',12.4],
['M83',0.1],
['737',0.2],
['A320-200',0.7],
['A320-200 VH-VNC',0.3],
['A320-200 VH-VNF',0.3],
['A320-200 VH-VND',0.3],
['A320-100/200',0.6],
['737-400',0.2],
['767-300/300ER',1.1],
['777-200',3.2],
['
',0.4]
]
}]
});
});
});