-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
240 lines (180 loc) · 9.13 KB
/
index.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
240
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="" />
<meta name="author" content="" />
<title>OpenCitations - Statistics</title>
<!-- Favicon-->
<link rel="icon" type="image/x-icon" href="assets/favicon.ico" />
<!-- Core theme CSS (includes Bootstrap)-->
<link href="css/styles.css" rel="stylesheet" />
<!--<script src="https://jsuites.net/v4/jsuites.js"></script>-->
<!--<link rel="stylesheet" href="https://jsuites.net/v4/jsuites.css" type="text/css" />-->
<!--NECESSARIO: per la selezione delle date-->
<script type="text/javascript" src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script>
<!--<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.min.js"></script>-->
<!--NECESSARIO-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.js"></script>
<!--<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>-->
<!--NECESSARIO: Bottoni start / end-->
<link rel="stylesheet" type="text/css" media="screen"
href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/base/jquery-ui.css">
<link href="https://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css" rel="stylesheet" type="text/css" />
<!--NECESSARIO: per la selezione delle date-->
<link href="css/MonthPicker.min.css" rel="stylesheet" type="text/css" />
<!--NECESSARIO: per la selezione delle date, Bottoni start / end-->
<script src="https://code.jquery.com/jquery-1.12.1.min.js"></script>
<!--NECESSARIO: MonthPicker Error: The jQuery UI button and datepicker plug-ins must be loaded.-->
<script src="https://code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script>
<!--NECESSARIO: per MonthPicker-->
<script src="https://cdn.rawgit.com/digitalBush/jquery.maskedinput/1.4.1/dist/jquery.maskedinput.min.js"></script>
<script src="js/MonthPicker.min.js"></script>
<!--NECESSARIO: per i grafici-->
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<!--NECESSARIO: codice che gestisce l'update delle visualizzazioni, il recupero dati da API (per ora file locali), calendari, selezioni-->
<script src="js/examples.js"></script>
<!--NECESSARIO: per le richieste per ottenere i dati-->
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.min.js"></script>-->
</head>
<body>
<div id="loading" style="display: none;">
<img src="OC_spinner.gif" style="margin-top: 40vh;" alt="-" width="150" height="150">
</div>
<!-- Responsive navbar-->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container">
<a class="navbar-brand" href="#">OC Records and Log Data</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"><span
class="navbar-toggler-icon"></span></button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" id="navbarDropdown" href="index.html" role="button"
data-bs-toggle="dropdown" aria-expanded="false">Visualizzazioni</a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item" href="index.html#indexed_records">Indexed Records</a></li>
<li><a class="dropdown-item" href="index.html#used_services">Usage of Services</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<!-- Page content-->
<div class="container" id="page_cont">
<div class="text-center mt-5">
<h1>Data Visualizations</h1>
<p class="lead">Visualizations of data about the amount of OpenCitations indexed records and the usage of
OpenCitations services, over a selectable time span.</p>
<h2 id="indexed_records">Indexed Records</h2>
<p>This line chart represents the monthly growth of the amount of <b>records indexed in OpenCitations</b>. <a
href="#line_selector">Scroll down</a> to customize the settings and update the visualization.</p>
<div class="graph_cont">
<canvas id="myChart"></canvas>
</div>
<!--http://kidsysco.github.io/jquery-ui-month-picker/-->
<div class="graph_cont" id="line_selector">
<div class="div_sx" id="from_to_div_1">
<div class="div_sx">
From: <input id="Start_1" class='Default' type="text" />
</div>
<div class="div_dx">
To: <input id="End_1" class='Default' type="text" />
</div>
</div>
<div class="div_dx" id="interval_div_1">
<div id="int_container_1">
<label for="Intervallo">Interval:</label>
<select name="Intervallo_1" id="Intervallo_1" required>
<option value="1">1-month</option>
<option value="2" selected="selected">2-month</option>
<option value="3">3-month</option>
</select>
</div>
</div>
</div>
<button id="Invio_1" , class="btn">Update Visualizations</button>
<h2 id="used_services">Usage of Services</h2>
<p>This bar chart shows a report about the <b>monthly aggregate count of http requests, both for the usage of OpenCitations Application Programming Interfaces and
the Datasets consultations</b>.
<a href="#bar_selector">Scroll down</a> to customize the settings and update the visualization.
</p>
<div id="container" class="graph_cont">
<canvas id="myChart2"></canvas>
</div>
<!--http://kidsysco.github.io/jquery-ui-month-picker/-->
<div class="graph_cont" id="bar_selector">
<div class="div_sx" id="from_to_div">
<div class="div_sx">
From: <input id="Start" class='Default' type="text" />
</div>
<div class="div_dx">
To: <input id="End" class='Default' type="text" />
</div>
</div>
<div class="div_dx" id="interval_div">
<div id="int_container">
<label for="Intervallo">Interval:</label>
<select name="Intervallo" id="Intervallo" required>
<option value="1" selected="selected">1-month</option>
<option value="2">2-month</option>
<option value="3">3-month</option>
</select>
</div>
</div>
</div>
<button id="Invio" , class="btn">Update Visualizations</button>
<h2 id="used_services">Citation Dataset - Index</h2>
<div id="container" class="graph_cont">
<canvas id="myChart3"></canvas>
</div>
<h2 id="used_services">Provenance Dataset - Index</h2>
<div id="container" class="graph_cont">
<canvas id="myChart9"></canvas>
</div>
<h2 id="used_services">Downloads per Serialization Type</h2>
<h4 id="used_services">(Index - Citation Dataset and Provenance Dataset)</h4>
<div id="container" class="graph_cont">
<canvas id="myChart4"></canvas>
</div>
<h2 id="used_services">Downloads per Serialization Type (ver 2)</h2>
<h4 id="used_services">(Index - Citation Dataset and Provenance Dataset)</h4>
<div id="container" class="graph_cont">
<canvas id="myChart5"></canvas>
</div>
<h2 id="used_services">Downloads per Serialization Type (ver 3)</h2>
<h4 id="used_services">(Index and Meta - Dataset and Provenance)</h4>
<div id="container" class="graph_cont">
<canvas id="myChart6"></canvas>
</div>
<h2 id="used_services">Downloads per Serialization Type (ver 4)</h2>
<h4 id="used_services">(Index and Meta - Dataset)</h4>
<div id="container" class="graph_cont">
<canvas id="myChart7"></canvas>
</div>
<h2 id="used_services">Downloads per Serialization Type (ver 5)</h2>
<h4 id="used_services">(Index and Meta)</h4>
<div id="container" class="graph_cont">
<canvas id="myChart8"></canvas>
</div>
</div>
</div>
<!-- Bootstrap core JS-->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<!-- Core theme JS-->
<script src="js/scripts.js"></script>
<!--Loading-->
<script>
document.getElementById("loading").style = "display: block; width: 100vw; height: 100vh; position: fixed; top:0; left:0; display: flex;justify-content: center;";
document.getElementById("page_cont").style = "display: none;";
//comment these two lines if you do not want auto generation of the chart
document.getElementById("Invio").style = "display: none;";
document.getElementById("Invio_1").style = "display: none;";
document.getElementsByTagName("footer")[0].style = "display: none;"
</script>
</body>
</html>