Subversion Repositories ALCASAR

Rev

Rev 2009 | Rev 2138 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
2009 raphael.pi 1
//Création du graphe
2
var XXCONFXX = {
3
	type: //line, bar, radar, pie, doughnut
4
		'XXTYPEXX',
5
	data: {
6
		datasets: [{ //valeur de mes attributs de graph
7
		data: [XXDATAXX],
8
		backgroundColor: [XXCOLORXX],//couleur des attributs '#F7464A','#46BFBD','#FDB45C','#949FB1','#4D5360','#33CC33','#6699ff','#996633','#9966ff','#ffff66'
9
 
10
		}],
11
		labels: [XXLABELSXX] //labels
12
	},
13
	options: {
14
		title: { //titre du graph
15
			display: true,
16
			text: 'XXTITLEXX',
17
			fontFamily: "Calibri",
18
			fontSize : 20,
19
		},
20
		responsive: false,
21
		animation: false,
22
		animateRotate: false,
23
		legend: { //display : 'pie' => true // 'autre' => false
24
			display: XXLEGENDXX,
25
			position: 'right',
26
		},
27
		//ne pas commenter pour afficher la valeur de l'axe : 'pie' => false // 'autre' => true
28
		XXCOMMENT-BEGINXX
29
		scales: { 
30
			yAxes: [{
2013 raphael.pi 31
				ticks: {
32
				beginAtZero:true
33
				}
2009 raphael.pi 34
				scaleLabel: {
35
					display: 
36
					true,
37
					labelString: 
38
					'XXYLABELXX',
39
				}
40
			}]
41
		},
42
		XXCOMMENT-ENDXX
43
	}
44
};
45