-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhistogramme.php
141 lines (123 loc) · 2.81 KB
/
histogramme.php
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!DOCTYPE html>
<html>
<head>
<title>Histogramme</title>
<meta charset="utf-8">
<style>
li{
display: inline-block;
background-color:white;
}
a{ text-decoration: none;
color: black;
background-color:white;
padding: 15px;
border-radius:4px;
}
a:hover{
cursor: pointer;
text-decoration: none;
}
</style>
</head>
<body style="background-color: #f2f2f2;">
<div style="
margin-left: 100px;
margin-right: 100px;
background-color:#b8b894;
padding:20px;
height: 30px;
border-radius:4px;
text-align: center;">
<ul>
<li><a href="Etudiant.php">Etudiant</a></li>
<li><a href="Matiere.php">Matière</a></li>
<li><a href="Note.php">Notes</a></li>
<li><a href="moyenne.php">Moyenne</a></li>
<li><a href="classement.php">Resultat d'examen</a></li>
<li><a href="histogramme.php">Histogramme</a></li>
</ul>
</div>
<div style="
margin-left: 100px;
margin-right: 100px;
background-color:#d6d6c2;
padding:20px;
height: 30px;
border-radius:4px;
margin-top: 8px;">
<h1 style="color: black;
margin-top:-8px;">
<b>Histogramme</b>
</h1>
</div>
<div style="margin-top:5px;
margin-left: 100px;
margin-right: 100px;
background-color: #ebebe0;
padding: 100px;
height: 270px;
border-radius: 4px;">
<div style="margin-left:240px" class="col span_1_of_2">
<canvas id="bar" width="600" height="300" ></canvas>
</div>
<script type="text/javascript" src="chartnom.js"></script>
<script type="text/javascript" >
var bar = document.getElementById("bar")
var barchart = new Chart(bar,{
type: 'bar',
data: {
labels:
[
"Etudiant1","Etudiant2","Etudiant3","Etuidant4"
],
datasets: [{
label:"Moyenne Génerale des Etudiants",
data:
[
"5","17","11","8"
],
backgroundColor: [
'rgba(255,99,132,0.2)',
'rgba(54,162,235,0.2)',
'rgba(255,206,86,0.2)',
'rgba(75,192,192,0.2)',
'rgba(153,102,255,0.2)',
'rgba(255,64,64,0.2)',
],
borderColor: [
'rgba(255,99,132,1)',
'rgba(54,162,235,1)',
'rgba(255,206,86,1)',
'rgba(75,192,192,1)',
'rgba(155,102,255,1)',
'rgba(255,59,64,1)',
],
hoverBackgroundColor:[
'rgba(255,99,132,1)',
'rgba(54,162,235,1)',
'rgba(255,206,86,1)',
'rgba(75,192,192,1)',
'rgba(155,102,255,1)',
'rgba(255,59,64,1)',
],
borderWidth: 1,
}]
},
options: {
scales: {
xAxes: [{
gridLines: {
offsetGridLines: true,
}
}],
yAxes: [{
stacked: true
}]
}
}
})
</script>
</div>
</body>
</html>