1,10 → 1,12 |
//Création du graphe |
var XXCONFXX = { |
type: 'XXTYPEXX', //line, bar, radar, pie, doughnut |
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' |
data: [XXDATAXX], |
backgroundColor: [XXCOLORXX],//couleur des attributs '#F7464A','#46BFBD','#FDB45C','#949FB1','#4D5360','#33CC33','#6699ff','#996633','#9966ff','#ffff66' |
|
}], |
labels: [XXLABELSXX] //labels |
}, |
27,11 → 29,13 |
scales: { |
yAxes: [{ |
ticks: { |
beginAtZero: true |
beginAtZero:true |
}, |
scaleLabel: { |
display: true, |
labelString: 'XXYLABELXX' |
display: |
true, |
labelString: |
'XXYLABELXX', |
} |
}] |
}, |