Subversion Repositories ALCASAR

Rev

Rev 2288 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log

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