1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
if (selected_certification == "all" && document.forms.checkbox_show_graph.showgraph.checked == true) {
var chart;
$(document).ready(function() {
chart = new Highcharts.Chart({
chart: {
renderTo: 'pie_certification',
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false
},
title: {
text: 'Certification Level',
},
subtitle: {
text: save_country + " : " + selected_year + titre_intext + titre_reference + titre_certified, // affiche le pays et l'année sélectionnés par l'utilisateur
},
tooltip: {
formatter: function() {
return '<b>'+ this.point.name +'</b>: '+ this.y;
}
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
formatter: function() {
// display only if larger than 0.5
return this.y > 0.5 ? this.y : null;
}
},
showInLegend: true
}
},
series: [{
type: 'pie',
name: 'Certification',
data: [
['ACFE', return_certif[0]],
['ACPS', return_certif[1]],
['ACSE', return_certif[2]],
['ACSR', return_certif[3]],
['AQPS', return_certif[4]],
]
}]
});
});
} |
Partager