-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
502 lines (474 loc) · 30.3 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
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
<!DOCTYPE html>
<html>
<meta charset="utf-8" />
<title>TreeVisual</title>
<head>
<link rel="stylesheet" href="lib/bootstrap-4.0.0-dist/css/bootstrap.css" />
<link rel="stylesheet" href="lib/introjs.css" />
<link rel="stylesheet" href="lib/bootstrap-4.0.0-dist/demo.css" />
<link rel="stylesheet" href="css/all.css">
<!--link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.7.2/css/all.css"
integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr"
crossorigin="anonymous"
/-->
<script src="lib/jquery.min.js"></script>
<script src="lib/popper.min.js"></script>
<script src="lib/bootstrap-4.0.0-dist/js/bootstrap.js"></script>
<script src="lib/bootstrap-select.min.js"></script>
<script src="lib/intro.js"></script>
<script src="lib/d3.v4.min.js"></script>
<script src="lib/d3.v3.min.js"></script>
<script src="lib/d3-ForceEdgeBundling.js"></script>
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> -->
<link rel="stylesheet" href="css/bootstrap-select.min.css" />
<link rel="stylesheet" href="css/graph-visual.css" />
<link rel="stylesheet" href="css/circle.css" />
<link rel="stylesheet" href="css/switch.css" />
<link rel="stylesheet" href="css/tooltip.css" />
<link rel="stylesheet" href="css/loading.css" />
<link rel="icon" type="image/ico" href="images/tree.ico" />
<script src="js/datasetMeta.js"></script>
<script src="js/treeLib.js"></script>
<script src="js/sidebarMenu.js"></script>
<script src="js/utilities.js"></script>
<script src="js/pack.js"></script>
<script src="js/sunburst.js"></script>
<script src="js/collapsibleTree.js"></script>
<script src="js/radialTree.js"></script>
<script src="js/treemap.js"></script>
<script src="js/zoomableTreemap.js"></script>
<script src="js/main.js"></script>
<script src="js/about.js"></script>
<script src="js/hintsSetup.js"></script>
</head>
<body>
<div id="tooltip"></div>
<div id="textWidthDiv"></div>
<div class="loading-wrapper" style="display: none;">
<div class="loading-cover"></div>
<div style="color: #a09de5;" class="loading la-ball-clip-rotate la-3x">
<div></div>
</div>
</div>
<nav class="navbar navbar-default navbar-static-top col-lg-10 col-9" id="topNav">
<div class="navbar-header">
<!-- Branding Image -->
<a class="navbar-brand" id="brand-name" href="/" data-step="3" data-intro="Tree Visual" data-position="right" data-scrollTo="tooltip">
Tree<span style="color: #0c2340;">Visual</span>
</a>
</div>
<!-- information about graph -->
<div style="float: right;" id="graphInfoDiv">
<ul class="list-unstyled" id="graphInfo">
<li id="data-info-leaves">
Number of papers:
</li>
<li id="data-info-size">
Number of citations:
</li>
</ul>
</div>
</nav>
<div class="container-fluid" id="mainDiv">
<div class="row" style="margin-left: 10px;">
<!-- graphsDiv -->
<div class="col-lg-10 col-9 row" id="graphsDiv">
<!-- graph 1 with widgets-->
<div class="col-lg-6 col-md-12">
<!-- graph-self -->
<div class="row" id="graphDiv1">
<div class="col-lg-11 col-12 graph-section graphInsideDiv1" id="g1-div">
<svg id="g1" viewBox="0 0 500 500"></svg>
</div>
<!-- col-md-11 -->
</div>
<!-- graphDiv1 -->
<form id="widgetsDiv1">
<div class="row">
<!-- left part -->
<div class="col-sm-9" id="left-widget1">
<!-- Layout -->
<div id="layout1" class="form-group row mb-2">
<label for="dropdown1" class="col-md-3 col-form-label">
<h2>Layout</h2>
</label>
<div class="col-md-7" style="padding-right: 0;">
<select id="dropdown1" class="layoutDropdown custom-select" onchange="change_map('1')">
<option class="optionGroup" value="Pack">Pack</option>
<option class="optionGroup" value="Radial_Tree">Radial Tree</option>
<option class="optionGroup" value="Collapsible_Tree">Radial Tree (Collapsible)</option>
<option class="optionGroup" value="Sunburst">Sunburst</option>
<option class="optionGroup" value="Treemap" selected>Treemap</option>
<option class="optionGroup" value="Zoomable_Treemap">Treemap (Zoomable)</option>
</select>
</div>
<!-- <div
class="col-md-1 col-form-label"
data-toggle="tooltip"
data-html="true"
data-placement="bottom"
title="Check to store the most recent layout chosen <br/> (data-specific layouts not supported)"
>
<a id="checkBoxRememberLayout1">
<i class="fas fa-lock-open"></i>
</a>
</div> -->
</div>
<div id="layout1_treemap" class="form-group row mb-2 hide-tag">
<label for="dropdown1_treemap" class="col-md-3 col-form-label">
<h2>Tiling Strategy</h2>
</label>
<div class="col-md-7" style="padding-right: 0;">
<select id="dropdown1_treemap" class="layoutDropdown custom-select" onchange="change_tiling('treemap', '1')">
<option class="optionGroup" value="Binary" selected>Binary</option>
<option class="optionGroup" value="Dice">Dice</option>
<option class="optionGroup" value="Slice">Slice</option>
<option class="optionGroup" value="SliceDice">Slice & Dice</option>
<!-- <option class="optionGroup" value="Squarify">Squarified</option> -->
</select>
</div>
</div>
<!-- <div id="nodeSizeDiv1_radialtree" class="form-group hide-tag">
<div class="form-row">
<div class="col-8">
<h2 id="nodeSizeSpan" data-toggle="tooltip" title="Increase size of high-degree nodes">
Proportional Node Size
</h2>
</div>
<div class="col-4">
<label class="switch">
<input type="checkbox" id="checkBoxNodeSize1" />
<span class="slider round"></span>
</label>
</div>
</div>
</div> -->
</div>
</div>
</form>
</div>
<!-- graph 2 with widgets-->
<div class="col-lg-6 col-md-12" id="graphDiv2WithWidgets">
<!-- graph-self -->
<div class="row" id="graphDiv2">
<div class="col-lg-11 col-12 graph-section" id="g2-div">
<svg viewBox="0 0 500 500" id="g2"></svg>
</div>
</div>
<!-- graphDiv2 -->
<!-- widgets of graph 2 -->
<form id="widgetsDiv2">
<div class="row">
<!-- left part -->
<div class="col-sm-9" id="left-widget2">
<!-- layout -->
<div id="layout2" class="form-group row mb-2">
<label for="dropdown2" class="col-md-3 col-form-label">
<h2>Layout</h2>
</label>
<div class="col-md-7" style="padding-right: 0;">
<select id="dropdown2" class="layoutDropdown custom-select" onchange="change_map('2')">
<option class="optionGroup" value="Pack">Pack</option>
<option class="optionGroup" value="Radial_Tree" selected>Radial Tree</option>
<option class="optionGroup" value="Collapsible_Tree">Radial Tree (Collapsible)</option>
<option class="optionGroup" value="Sunburst">Sunburst</option>
<option class="optionGroup" value="Treemap">Treemap</option>
<option class="optionGroup" value="Zoomable_Treemap">Treemap (Zoomable)</option>
</select>
</div>
<!-- <div
class="col-md-1 col-form-label"
data-toggle="tooltip"
data-html="true"
data-placement="bottom"
title="Check to store the most recent layout chosen <br/> (data-specific layouts not supported)"
>
<a id="checkBoxRememberLayout2">
<i class="fas fa-lock-open"></i>
</a>
</div> -->
</div>
<div id="layout2_treemap" class="form-group row mb-2 hide-tag">
<label for="dropdown2_treemap" class="col-md-3 col-form-label">
<h2>Tiling Strategy</h2>
</label>
<div class="col-md-7" style="padding-right: 0;">
<select id="dropdown2_treemap" class="layoutDropdown custom-select" onchange="change_tiling('2')">
<option class="optionGroup" value="Binary" selected>Binary</option>
<option class="optionGroup" value="Dice">Dice</option>
<option class="optionGroup" value="Slice">Slice</option>
<option class="optionGroup" value="SliceDice">Slice & Dice</option>
<!-- <option class="optionGroup" value="Squarify">Squarified</option> -->
</select>
</div>
</div>
<!-- <div id="nodeSizeDiv2_radialtree" class="form-group hide-tag">
<div class="form-row">
<div class="col-8">
<h2 id="nodeSizeSpan" data-toggle="tooltip" title="Increase size of high-degree nodes">
Proportional Node Size
</h2>
</div>
<div class="col-4">
<label class="switch">
<input type="checkbox" id="checkBoxNodeSize2" />
<span class="slider round"></span>
</label>
</div>
</div>
</div> -->
</div>
</div>
</form>
</div>
<div id="graphsBottomDiv" style="margin: 10px;">Selected Node: <span id="selected-node"></span></div>
</div>
<!-- sidebar -->
<div class="col-lg-2 col-3 row" style="overflow-y: auto; overflow-x: hidden; padding-left: 0px; right: 15px;" id="sidebar">
<div id="sidebarInsideDiv" class="ml-auto ml-0" style="width: 100%; padding-left: 15px;">
<form>
<!-- sidebar head -->
<h2 id="toolbar-head" style="font-size: 20px; width: 100%; padding-bottom: 13px; padding-top: 20px; margin-bottom: -10px; color: #000;">
<b>Control Panel</b>
<a id="about" href="javascript:void(0);" onclick="gotoAbout();" class="toolbox-link">about</a>
<a id="help" href="javascript:void(0);" class="toolbox-link" style="margin-right: 10px;">help?</a>
</h2>
<!-- end of sidebar head -->
<hr id="hr" />
<!-- sidebar body -->
<div
class="col-md-12"
id="sidebarIntroDiv"
data-hint='This data set has been filtered. To display a node that has been filtered out, open the "Filtering" section, select the desired node and click "Apply Filters".'
data-hintposition="top-right"
>
<div id="sidebarIntro">
<!-- dataset selection -->
<div class="mb-4" style="width: 100%;">
<!-- <span style="font-size:15px"> Selected Author: </span> -->
<div id="dataDropdownIntro" style="width: 100%; padding-bottom: 0px; margin-bottom: 24px;">
<select id="dataDropdown" class="custom-select mb-0" style="width: 100%;" onchange="updateDataset()">
</select>
</div>
</div>
</div>
<div id="accordion" class="panel-group">
<!-- hidden data panel -->
<div id="dataPanel" class="panel panel-default" style="display:none;">
<div class="panel-heading" data-toggle="collapse" data-target="#dataDiv" data-parent="#accordion">
<h2 class="panel-title" style="color: #000;">Data</h2>
<hr />
</div>
<div id="dataDiv" class="collapse panel-collapse in panel-body show">
<!-- Leaf Selection -->
<!-- - [] Add dropdown with “Leaf Node”
- [] multiselect
- [] Collection of all leaf nodes
- [] Disable or deactivate leaf nodes that are filtered out
- [] Select by leaf and if id is repeated, select all -->
</div>
</div>
<!-- appearance panel -->
<div id="appearancePanel" class="panel panel-default">
<div class="panel-heading" data-toggle="collapse" data-target="#appearanceDiv" data-parent="#accordion">
<h2 class="panel-title" style="color: #000;">Appearance</h2>
<hr />
</div>
<div id="appearanceDiv" class="collapse panel-collapse panel-body show">
<div class="form-group" id="colorBlindDiv">
<div class="form-row">
<div class="col-8">
<span id="colorBlindSpan" data-toggle="tooltip" title="Make node colors colorblind-friendly">
Color Blind Palette
</span>
</div>
<div class="col-4">
<label class="switch">
<input type="checkbox" id="checkBoxColorBlind" />
<span class="slider round"></span>
</label>
</div>
</div>
</div>
<!-- end colorBlindDiv -->
<div class="form-group" id="accumulatedDiv">
<div class="form-row">
<div class="col-8">
<span id="accumulatedSpan" data-toggle="tooltip" title="Display node size based on given quantity">
Size by <br/><span class="data-info-types-span leaves"></span> / <br/><span class="data-info-types-span size"></span>
</span>
</div>
<div class="col-4">
<label class="switch">
<input type="checkbox" id="checkBoxAccumulated" />
<span class="slider or-other round"></span>
</label>
</div>
</div>
</div>
<div class="form-group" id="removeTextDiv">
<div class="form-row">
<div class="col-8">
<span id="removeTextSpan" data-toggle="tooltip" title="Hide node labels">
Hide Label
</span>
</div>
<div class="col-4">
<label class="switch">
<input type="checkbox" id="checkBoxRemoveText" />
<span class="slider round"></span>
</label>
</div>
</div>
</div>
<div class="form-group mt-3 mb-1" id="nodesizeScalarDiv">
<label>Node Size</label>
<div class="form-row">
<div class="col-1" style="right: 10px;">
<p id="nodesizeScaleMin"></p>
</div>
<div class="col-9">
<input id="nodesizeScalar" type="range" data-toggle="tooltip" class="form-control-range" />
<div class="sliderValue"></div>
</div>
<div class="col-1" style="left: 5px;">
<p id="nodesizeScaleMax"></p>
</div>
</div>
</div>
<!-- end nodeSizeScalarDiv -->
</div>
</div>
<!-- end of appearance panel -->
<!-- filter panel -->
<div id="filterPanel" class="panel panel-default">
<div class="panel-heading" data-toggle="collapse" data-target="#filterDiv" data-parent="#accordion">
<h2 class="panel-title" style="color: #000;">Filtering</h2>
<hr />
</div>
<div id="filterDiv" class="collapse panel-collapse panel-body"></div>
</div>
<!-- end of filter panel -->
<!-- selection panel -->
<div id="selectionPanel" class="panel panel-default">
<div class="panel-heading" data-toggle="collapse" data-target="#selectionDiv" data-parent="#accordion">
<h2 class="panel-title" style="color: #000;">Selection</h2>
<hr />
</div>
<div id="selectionDiv" class="collapse panel-collapse in panel-body show">
<!-- Leaf Selection -->
<!-- - [] Add dropdown with “Leaf Node”
- [] multiselect
- [] Collection of all leaf nodes
- [] Disable or deactivate leaf nodes that are filtered out
- [] Select by leaf and if id is repeated, select all -->
</div>
</div>
<!-- end of selection panel -->
</div>
</div>
<br>
<!-- description body -->
<div id="describeDivContainer">
<div class="form-control" id="describeDiv">
<div id="describeDivIntro" style="margin: 2px;">
<div id="DataDescription">
<span>
<b>Name:</b>
<span id="treeName"></span>
</span>
<br />
<br />
<span>
<b>Description:</b>
<br />
<span id="treeDescription"></span>
</span>
<br />
<br />
<span>
<b>Tree hierarchy:</b>
<br />
<span id="treeHierarchy"></span>
</span>
<br />
<br />
<span>
<b>Source: </b>
<br />
<span id="treeSource">Microsoft Academic Graph & Google_scholar</span>
</span>
<br />
</div>
</div>
</div>
</div>
<!-- end of sidebar body -->
</form>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="quizModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true" data-keyboard="false">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Would you like to take the quiz?</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="row">
<div class="col-3">
<label>User id:</label>
</div>
<div class="col-9">
<input type="text" id="user-id" class="form-control"/>
</div>
</div>
<br>
<div class="row">
<div class="col-3">
<label>Level:</label>
</div>
<div class="col-9">
<select id="user-level" class="form-control">
<option value="">Select a level</option>
<option value="UG">Undergraduate</option>
<option value="G">Graduate</option>
<option value="P">Professional</option>
</select>
</div>
</div>
</div>
<div class="modal-footer">
<div class="spinner" id="loading" style="display: none;">
<div class="rect1"></div>
<div class="rect2"></div>
<div class="rect3"></div>
<div class="rect4"></div>
<div class="rect5"></div>
</div>
<button type="button" id="study-mode" class="btn btn-secondary" data-dismiss="modal">No, thank you</button>
<button type="button" id="take-quiz" class="btn btn-primary">Yes</button>
</div>
</div>
</div>
</div>
</body>
<!-- Global site tag (gtag.js) - Google Analytics -->
<!-- Do we really need this? -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-146285645-8"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "UA-146285645-8");
</script>
</html>