Rev 2138 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log
//Création du graphe
var XXCONFXX = {
type: //line, bar, radar, pie, doughnut
'XXTYPEXX',
data: {
datasets: [{ //valeur de mes attributs de graph
data: [XXDATAXX],
backgroundColor: [XXCOLORXX],//couleur des attributs '#F7464A','#46BFBD','#FDB45C','#949FB1','#4D5360','#33CC33','#6699ff','#996633','#9966ff','#ffff66'
}],
labels: [XXLABELSXX] //labels
},
options: {
title: { //titre du graph
display: true,
text: 'XXTITLEXX',
fontFamily: "Calibri",
fontSize : 20,
},
responsive: false,
animation: false,
animateRotate: false,
legend: { //display : 'pie' => true // 'autre' => false
display: XXLEGENDXX,
position: 'right',
},
//ne pas commenter pour afficher la valeur de l'axe : 'pie' => false // 'autre' => true
XXCOMMENT-BEGINXX
scales: {
yAxes: [{
scaleLabel: {
display:
true,
labelString:
'XXYLABELXX',
}
}]
},
scales: {
yAxes: [{
ticks: {
beginAtZero:true
}
}]
}
XXCOMMENT-ENDXX
}
};