-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstats.html
239 lines (210 loc) · 7.46 KB
/
stats.html
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
<html>
<head>
<style>
.flex-container {
display: flex;
flex-wrap: wrap;
}
.flex-item {
width: calc(50% - 20px);
margin: 10px;
}
@media (max-width: 768px) {
.flex-item {
width: 50%;
margin: 10px 0;
}
}
</style>
<!--Load the AJAX API-->
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
let ourColors = ['#f00020', '#34c924', '#ec8f6e', '#f3b49f', '#f6c7b6'];
// Load the Visualization API and the corechart package.
google.charts.load('current', {'packages':['corechart']});
// Set a callback to run when the Google Visualization API is loaded.
google.charts.setOnLoadCallback(drawChart);
google.charts.setOnLoadCallback(drawChart2);
google.charts.setOnLoadCallback(drawChart3);
google.charts.setOnLoadCallback(drawChart4);
google.charts.setOnLoadCallback(drawChart5);
google.charts.setOnLoadCallback(drawChart6);
google.charts.setOnLoadCallback(drawChart7);
google.charts.setOnLoadCallback(drawChart8);
// Callback that creates and populates a data table,
// instantiates the pie chart, passes in the data and
// draws it.
function drawChart() {
// Create the data table.
var data = new google.visualization.DataTable();
data.addColumn('string', 'Time');
data.addColumn('number', 'transactionNumber');
data.addRows([
['6 secondes', 2],
['5 secondes', 10],
['4 secondes', 2],
['3 secondes', 2]
]);
// Set chart options
var options = {'title':'Start processing transaction to phase[1] duration ',
'colors': ourColors
};
// Instantiate and draw our chart, passing in some options.
var chart = new google.visualization.PieChart(document.getElementById('chart_1'));
chart.draw(data, options);
}
function drawChart2() {
// Create the data table.
var data = new google.visualization.DataTable();
data.addColumn('string', 'Time');
data.addColumn('number', 'transactionNumber');
data.addRows([
['14 secondes', 1],
['10 secondes', 2],
['9 secondes', 4]
]);
// Set chart options
var options = {'title':'Login phase duration ',
'colors': ourColors
};
// Instantiate and draw our chart, passing in some options.
var chart = new google.visualization.PieChart(document.getElementById('chart_2'));
chart.draw(data, options);
}
function drawChart3() {
// Create the data table.
var data = new google.visualization.DataTable();
data.addColumn('string', 'Time');
data.addColumn('number', 'transactionNumber');
data.addRows([
['10 secondes', 1],
['9 secondes', 3],
['6 secondes', 1]
]);
// Set chart options
var options = {'title':'Profil phase duration ',
'colors': ourColors
};
// Instantiate and draw our chart, passing in some options.
var chart = new google.visualization.PieChart(document.getElementById('chart_3'));
chart.draw(data, options);
}
function drawChart4() {
// Create the data table.
var data = new google.visualization.DataTable();
data.addColumn('string', 'Time');
data.addColumn('number', 'transactionNumber');
data.addRows([
['11 secondes', 1],
['8 secondes', 2],
['7 secondes', 2]
]);
// Set chart options
var options = {'title':'Tax income tax notice table (documents) phase duration ',
'colors': ourColors
};
// Instantiate and draw our chart, passing in some options.
var chart = new google.visualization.PieChart(document.getElementById('chart_4'));
chart.draw(data, options);
}
function drawChart5() {
// Create the data table.
var data = new google.visualization.DataTable();
data.addColumn('string', 'Time');
data.addColumn('number', 'transactionNumber');
data.addRows([
['5 secondes', 1],
['3 secondes', 4]
]);
// Set chart options
var options = {'title':'Tax property phase duration',
'colors': ourColors
};
// Instantiate and draw our chart, passing in some options.
var chart = new google.visualization.PieChart(document.getElementById('chart_5'));
chart.draw(data, options);
}
function drawChart6() {
// Create the data table.
var data = new google.visualization.DataTable();
data.addColumn('string', 'Time');
data.addColumn('number', 'transactionNumber');
data.addRows([
['8 secondes', 1],
['5 secondes', 3],
['4 secondes', 1]
]);
// Set chart options
var options = {'title':'Marital stat phase etc... duration ',
'colors': ourColors
};
// Instantiate and draw our chart, passing in some options.
var chart = new google.visualization.PieChart(document.getElementById('chart_6'));
chart.draw(data, options);
}
function drawChart7() {
// Create the data table.
var data = new google.visualization.DataTable();
data.addColumn('string', 'Time');
data.addColumn('number', 'transactionNumber');
data.addRows([
['10 secondes', 1],
['9 secondes', 1],
['8 secondes', 3]
]);
// Set chart options
var options = {'title':'Finances income table phase duration',
'colors': ourColors
};
// Instantiate and draw our chart, passing in some options.
var chart = new google.visualization.PieChart(document.getElementById('chart_7'));
chart.draw(data, options);
}
function drawChart8() {
// Create the data table.
var data = new google.visualization.DataTable();
data.addColumn('string', 'Time');
data.addColumn('number', 'transactionNumber');
data.addRows([
['+60 secondes', 1],
['45-50 secondes', 4]
]);
// Set chart options
var options = {'title':'Full transaction duration ',
'colors': ourColors
};
// Instantiate and draw our chart, passing in some options.
var chart = new google.visualization.PieChart(document.getElementById('chart_8'));
chart.draw(data, options);
}
</script>
</head>
<body>
<div class="flex-container">
<div class="flex-item">
<div id="chart_1"></div>
</div>
<div class="flex-item">
<div id="chart_2"></div>
</div>
<div class="flex-item">
<div id="chart_3"></div>
</div>
<div class="flex-item">
<div id="chart_4"></div>
</div>
<div class="flex-item">
<div id="chart_5"></div>
</div>
<div class="flex-item">
<div id="chart_6"></div>
</div>
<div class="flex-item">
<div id="chart_7"></div>
</div>
<div class="flex-item">
<div id="chart_8"></div>
</div>
</div>
</body>
</html>