-
Notifications
You must be signed in to change notification settings - Fork 0
/
dataverse.html
226 lines (187 loc) · 6.8 KB
/
dataverse.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
---
layout: default
title: Dataverse
description: |
__Dataverse__ is an open source web application to share, preserve, cite, explore and analyze research data.
toplinks:
- id: dv
name: Dataverse Worldwide
- id: hdv
name: Harvard Dataverse
- id: dmc
name: Data Management & Curation
---
{% include templates.html %}
<!--{% include toplinks.html %}-->
<h2 id="dv">Dataverse Worldwide</h2>
<div class="row d-flex align-items-stretch">
<div class="col-md-6">
<div class="card card-iqss-primary card-outline">
<div class="card-header">
<h3 class="card-title card-iqss-title">
Installations
</h3>
</div>
<div class="card-body">
<div id="mapid"></div>
</div>
</div>
</div>
<div class="col-md-6 align-items-stretch">
<div class="card card-iqss-primary card-outline">
<div class="card-header">
<h3 class="card-title card-iqss-title">
Dataverse Installations by Country (Top 10)
</h3>
</div>
<canvas id="dvCountryInstallations"></canvas>
</div>
</div>
</div>
<h3>Metrics</h3>
<div id="mainmetrics" class="row"></div>
<h3>Dataverse Content</h3>
<div class="row">
<div class="col-md-6 col-xl-4">
<div class="card card-iqss-primary card-outline">
<div class="card-header">
<h3 class="card-title card-iqss-title">
Total Dataverses
</h3>
</div>
<div id="dataverses-to-month" class="card-body viz">
</div>
</div>
</div>
<div class="col-md-6 col-xl-4">
<div class="card card-iqss-primary card-outline">
<div class="card-header">
<h3 class="card-title card-iqss-title">
Dataverses by Category
</h3>
</div>
<div class="card-body">
<div id="dataverses-by-category" class="card-body viz"></div>
</div>
</div>
</div>
<div class="col-md-6 col-xl-4">
<div class="card card-iqss-primary card-outline">
<div class="card-header">
<h3 class="card-title card-iqss-title">
Total Datasets
</h3>
</div>
<div id="datasets-to-month" class="card-body viz"></div>
</div>
</div>
<div class="col-md-6 col-xl-4">
<div class="card card-iqss-primary card-outline">
<div class="card-header">
<h3 class="card-title card-iqss-title">
Dataverses by Subject
</h3>
</div>
<div class="card-body">
<div id="datasets-by-subject" class="card-body viz"></div>
</div>
<!-- /.card -->
</div>
</div>
<div class="col-md-6 col-xl-4">
<div class="card card-iqss-primary card-outline">
<div class="card-header">
<h3 class="card-title card-iqss-title">
<!-- <i class="fas fa-edit"></i> -->
Total Files
</h3>
</div>
<div id="files-to-month" class="card-body viz">
</div>
<!-- /.card -->
</div>
</div>
<div class="col-md-6 col-xl-4">
<div class="card card-iqss-primary card-outline">
<div class="card-header">
<h3 class="card-title card-iqss-title">
<!-- <i class="fas fa-edit"></i> -->
Total File Downloads
</h3>
</div>
<div class="card-body">
<canvas id="downloads-to-month" class="card-body"></canvas>
</div>
<!-- /.card -->
</div>
</div>
</div>
<h3>Dataverse Support</h3>
<div class="row">
{% include card.html title = "What do people email Dataverse support about?" div = "dvs-ticket-type" %}
{% include card.html title = "What Dataverse features do people email Dataverse support about?" div = "dvs-ticket-feature" %}
</div>
<div id="dataverse-support-metrics" class="row"></div>
<!-- Harvard Dataverse -->
<h2 id="hdv">Harvard Dataverse</h2>
<p>
The Harvard Dataverse is the University’s local Dataverse installation, a repository serving researchers from all of Harvard’s schools and institutes
</p>
<div id="harvard-dataverse-metrics" class="row"></div>
<!-- Data Management & Curation -->
<!--<h2 id="dmc">Data Management & Curation</h2>-->
<!--<p>-->
<!-- The IQSS Data Curation team provides researchers with guidance and support on organizing, preserving, and sharing data.-->
<!--</p>-->
<!--<div class="alert alert-info" role="alert">-->
<!-- Coming soon!-->
<!--</div>-->
<script src="https://d3plus.org/js/d3plus.js"></script>
<!-- D3 plus plots -->
<script src="{{site.baseurl}}assets/js/dataverse_plots.js"></script>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha512-gZwIG9x3wUXg2hdXF6+rVkLF/0Vi9U8D2Ntg4Ga5I5BZpVkVxlJWbSQtXPSiUTtC0TjtGOmxa1AJPuV0CPthew=="
crossorigin=""></script>
<script src="{{site.baseurl}}assets/js/maps.js"></script>
<script>
d3.tsv("{{site.baseurl}}assets/data/dataverse_installations.tsv", function (data) {
let labels = []
let d = [];
for (let i = 0; i < 10; i++) {
labels.push(data[i].country);
d.push(parseInt(data[i].count));
}
horizontalBarChart('dvCountryInstallations', {
x: labels,
y: d,
title: 'Number of installations',
color: iqss_orange,
// label_x: 'Number of installations',
label_y: 'Number of installations',
label_x: 'Country'
});
});
d3.tsv("{{site.baseurl}}assets/data/downloads-toMonth.tsv", function (data) {
let labels = []
let d = [];
for (let i = data.length - 12; i < data.length; i++) {
labels.push(data[i].month);
d.push(parseInt(data[i].count));
}
lineChart('downloads-to-month', {
label_x: 'Month',
label_y: 'Downloads',
x: labels,
y: d,
title: 'Number of downloads',
color: iqss_orange
});
});
// this section needs to be pushed forward since the {{site.baseurl}} is not handled in the
// javascript file
path = "{{site.baseurl}}assets/data/"
loadMainMetrics("{{site.baseurl}}assets/data/main_metrics.tsv", 'mainmetrics', "Dataverse",
"col-sm-6 col-xs-12 col-md-6 col-lg-4 col-xl-3");
loadMainMetrics("{{site.baseurl}}assets/data/main_metrics.tsv", 'dataverse-support-metrics', "Dataverse Support",
"col-sm-6 col-xs-12 col-md-6 col-lg-4 col-xl-3");
</script>