HTMLcopy
x
1
<div style="height:300px; overflow:auto">
2
<table>
3
<caption><h5>Liste des anomalies identifiees</h5></caption>
4
<thead>
5
<tr>
6
<th scope="col">Segment</th>
7
<th scope="col">Nombre de tickets sur periode N-1</th>
8
<th scope="col">Nombre de tickets sur periode N</th>
9
<th scope="col">Evolution en %</th>
10
<th scope="col">Categorie</th>
11
<th scope="col">Solution disponible</th>
12
<th scope="col">Critique</th>
13
<th scope="col">Evolution Chart</th>
14
15
</tr>
16
</thead>
17
<tbody>
18
<tr>
19
<th scope="row">Demande d'acces a repertoire</th>
20
<td>2</td>
21
<td>21</td>
22
<td>950%</td>
23
<td>Securite</td>
24
<td></td>
25
<td><input type="checkbox" checked></td>
26
<td></td>
27
</tr>
28
<tr>
29
<th scope="row">PC lent</th>
30
<td>10</td>
31
<td>17</td>
32
<td>70%</td>
33
<td>Materiels</td>
34
<td></td>
35
<td><input type="checkbox" checked></td>
36
<td></td>
37
</tr>
38
39
<tr>
40
<th scope="row">Ap_Me_4</th>
41
<td>20</td>
42
<td>30</td>
43
<td>50%</td>
44
<td>Messagerie Outlook</td>
45
<td></td>
46
<td><input type="checkbox" checked></td>
47
<td></td>
48
</tr>
49
<tr>
50
<th scope="row">Espace disque insuffisant sur repertoire</th>
51
<td>16</td>
52
<td>24</td>
53
<td>50%</td>
54
<td>Infrastructure</td>
55
<td></td>
56
<td><input type="checkbox" checked></td>
57
<td></td>
58
</tr>
59
<tr>
60
<th scope="row">Message d'erreur a l'ouverture de ses fichiers</th>
61
<td>10</td>
62
<td>14</td>
63
<td>20%</td>
64
<td>Office</td>
65
<td></td>
66
<td><input type="checkbox"></td>
67
<td></td>
68
</tr>
69
</tbody>
70
</table>
71
</div>
CSScopy
85
1
table {
2
table-layout: auto;
3
width: 100%;
4
border-collapse: collapse;
5
}
6
7
thead th:nth-child(1) {
8
width: 12%;
9
}
10
11
thead th:nth-child(2) {
12
width: 12%;
13
}
14
15
thead th:nth-child(3) {
16
width: 12%;
17
}
18
19
thead th:nth-child(4) {
20
width: 12%;
21
}
22
23
thead th:nth-child(5) {
24
width: 12%;
25
}
26
27
thead th:nth-child(6) {
28
width: 12%;
29
}
30
31
thead th:nth-child(7) {
32
width: 12%;
33
}
34
35
thead th:nth-child(8) {
36
width: 16%;
37
}
38
39
th, td {
40
padding: 10px;
41
border: 1px solid #E9E9EA;
42
}
43
44
/* typographie */
45
46
html {
47
font-family: sans-serif;
48
}
49
thead th, tfoot th{
50
color: #fff
51
}
52
53
th {
54
letter-spacing: 0.5px;
55
font-size: 13px;
56
}
57
58
td {
59
letter-spacing: 0.5px;
60
font-size: 15px;
61
}
62
63
tbody td {
64
text-align: center;
65
}
66
67
tfoot th {
68
text-align: right;
69
}
70
71
tbody tr:nth-child(odd) {
72
background-color: #fff;
73
}
74
75
tbody tr:nth-child(even) {
76
background-color: #7DDBDA;
77
}
78
79
table {
80
background-color: #007D82 ;
81
}
82
83
function fillListeAnomaliesIdentifiees(data){
84
85
}
JavaScriptcopy
34
1
function fillBarChart(){
2
/*
3
var view = anychart.data.set(data).mapAs({'Project': [0], 'Milestone': [1], 'Due': [2]});
4
var iterator = view.getIterator();
5
var bulletScale = anychart.scales.linear().minimum(-20).maximum(20);
6
7
var i = 0;
8
while (iterator.advance()) {
9
var dueDate = new Date(iterator.get('Due'));
10
var diff = getDiffInDays(Today, dueDate);
11
var bullet = anychart.bullet([{
12
'value': diff,
13
'type': 'bar',
14
'gap': 0.2,
15
'stroke': null,
16
'fill': ((diff >= 0) ? '#D6D6D6' : '#1976d2')
17
}]);
18
bullet.scale(bulletScale).padding(0).margin(0);
19
i++;
20
bullet.container('majorProjectMilestonesBar' + i);
21
bullet.draw();
22
}
23
*/
24
25
var axis = anychart.standalones.axes.linear();
26
axis.orientation('bottom');
27
axis.labels().fontSize('9px').padding(0);
28
axis.scale(bulletScale);
29
axis.minorTicks(false);
30
axis.padding([0,5,0,5]);
31
axis.draw()
32
}
33
anychart.theme({defaultTooltip: {allowLeaveStage: true}});
34
fillBarChart(data)