-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnav.html
496 lines (424 loc) · 52.5 KB
/
nav.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
<!DOCTYPE html>
<html>
<head>
<style>
/* CSS For Sankey*/
body {
padding: 10px;
min-width: 500px;
max-width: 1000px;
margin: auto;
}
#chart {
height: 500px;
font: 13px sans-serif;
}
.node rect {
fill-opacity: .9;
shape-rendering: crispEdges;
stroke-width: 0;
}
.node text {
text-shadow: 0 1px 0 #fff;
}
.link {
fill: none;
stroke: #000;
stroke-opacity: .2;
}
/* End of CSS For Sankey*/
.right {
align-content: center;
float: right;
}
.tooltip {
position: relative;
display: inline-block;
/*border-bottom: 1px dotted black;*/
}
.tooltip .tooltiptext {
visibility: hidden;
width: 120px;
background-color: #555;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px 0;
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
margin-left: -60px;
opacity: 0;
transition: opacity 0.3s;
}
.tooltip .tooltiptext::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: #555 transparent transparent transparent;
}
.tooltip:hover .tooltiptext {
visibility: visible;
opacity: 1;
}
.list {
font-family:Arial;
font-size: 12pt;
}
.table a
{
display:block;
text-decoration:none;
}
/* Hover for major name cell */
.name:hover{
/*cursor: pointer;*/
/*background-color: #ccc;/**/
background-color: coral;
}
td {
padding:5px;
/*border:solid 1px #eee;*/
border:solid 1px #E6EAF0
background-clip: padding-box; /* this has been added */
border-radius: 5px;
/*background-color: #369;*/
/*color: white;*/
/*border: 5px solid white;*/
}
td a {
display:block;
width:100%;
/*height:50px;*/
text-decoration: none;
color:black;
}
input {
border:solid 1px #ccc;
border-radius: 5px;
padding:7px 14px;
margin-bottom:10px
}
input:focus {
outline:none;
border-color:#aaa;
}
.sort-gpa {
background-color: rgba(200, 54, 54,0.5);
/*width:100px;*/
}
.sort-gpa:hover {
background-color: rgb(200, 54, 54);
}
.sort-flexibility {
background-color: #28a8e0;
}
.sort-flexibility:hover {
background-color:#1b8aba;
}
.sort {
padding:4px 10px;
border-radius: 4px;
border:none;
display:inline-block;
color:#fff;
text-decoration: none;
/*background-color: #28a8e0;*/
height:30px;
/*width:90px;*/
}
.originalsort {
padding:8px 30px;
border-radius: 6px;
border:none;
display:inline-block;
color:#fff;
text-decoration: none;
/*background-color: #28a8e0;*/
height:30px;
}
.sort:hover {
text-decoration: none;
/*background-color:#1b8aba;*/
}
.sort-norm {
/*background-color: #28a8e0;*/
background-color: #2D4670;
/*background-color: #EEC071;*/
}
.sort-norm:hover {
/*background-color:#1b8aba;*/
background-color: #EEC071;
}
.sort-name {
/*background-color: #28a8e0;*/
/*background-color: #2D4670;*/
background-color: #EEC071;
}
.sort-name:hover {
/*background-color:#1b8aba;*/
/*background-color: #EEC071;*/
background-color: coral;
}
.sort:focus {
outline:none;
}
.sort:after {
display:inline-block;
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 5px solid transparent;
content:"";
position: relative;
top:-10px;
right:-5px;
}
.sort.asc:after {
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 5px solid #fff;
content:"";
position: relative;
top:4px;
right:-5px;
}
.sort.desc:after {
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 5px solid #fff;
content:"";
position: relative;
top:-4px;
right:-5px;
}
.CellWithComment{
position:relative;
}
.CellComment{
display:none;
position:absolute;
z-index:100;
border:1px;
background-color:white;
border-style:solid;
border-width:1px;
border-color:rgba(200, 54, 54, 0.5);
padding:3px;
color:rgba(200, 54, 54, 0.5);
top:20px;
left:-10px;
}
.CellWithComment:hover span.CellComment{
display:block;
}
.hide {
visibility: hidden;
max-width: 20px;
overflow: hidden;
height:20px;
font-size:0px;
width:20px
}
.layout {
/* border-color:red;
border-width:2px;
border-style:solid;*/
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="jquery-3.3.1.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/list.js/1.5.0/list.min.js"></script>
<!-- SCRIPTS FOR SANKEY -->
<script src="//d3js.org/d3.v3.min.js"></script>
<script src="//cdn.rawgit.com/newrelic-forks/d3-plugins-sankey/master/sankey.js"></script>
<script src="//cdn.rawgit.com/misoproject/d3.chart/master/d3.chart.min.js"></script>
<script src="//cdn.rawgit.com/q-m/d3.chart.sankey/master/d3.chart.sankey.min.js"></script>
<!-- END SCRIPTS FOR SANKEY -->
<!-- SCRIPT FOR ON CLICK -->
<script>
$(document).ready(function(){
// $("#myTable td").click(function() {
$("#myTable td").click(function() {
var column_num = parseInt( $(this).index() ) + 1;
var row_num = parseInt( $(this).parent().index() )+1;
// console.log($(this));
var major = $(this)[0].innerText;
var td_class = $(this)[0].className;
// console.log($(this)[0].innerText);
// console.log($(this)[0].className);
if (td_class=='name'){
$("#result").html( major );
}
scrollToSankey();
});
});
</script>
<!-- END SCRIPT FOR ON CLICK -->
</head>
<body>
<!-- BEGIN TOP-SCROLL-BAR -->
<div>
</div>
<!-- END OF TOP-SCROLL-BAR -->
<!-- hr> -->
<div class="layout" id="top-section">
<div class="right" id="top-scroll-bar">
<!-- <button onClick="scrollToBottom()">Scroll to Bottom</button> -->
<button onClick="scrollSmoothToBottom()">Go to Bottom</button>
<button onClick="scrollToSankey()">To Sankey</button>
</div>
<div class="layout padded-left" id="users">
<div id="search-controls">
<button class="sort sort-norm" data-sort="flexibility">
Flexibility
</button>
<button class="sort sort-norm" data-sort="salary">
Salary
</button>
<button class="sort sort-norm" data-sort="gpa">
GPA
</button>
<button class="sort sort-name" data-sort="name">
Sort by name
</button>
<input class="search" placeholder="Search" />
</div>
<!-- <div class="layout" id="buffer">hello there</div> -->
<!--- Heatmap as table -->
<div class="layout" id = "navsection">
<div class="layout" id = "heattable">
<table id="myTable">
<!-- IMPORTANT, class="list" have to be at tbody -->
<tbody class="list" id="majorlist">
<!--- Auto generated code -->
<tr><td class='flexibility CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.45999999999999996)'><div class='hide'>292.0</div><span class='CellComment'>2.92</span></td><td class='name' style=''>African American Studies</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.5827160493333333)'><div class='hide'>52.444444440000005</div><span class='CellComment'>0.5244444444</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.43592658464584977)'><div class='hide'>47550</div><span class='CellComment'>47550</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.5349999999999999)'><div class='hide'>307.0</div><span class='CellComment'>3.07</span></td><td class='name' style=''>American Studies</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.4375)'><div class='hide'>39.375</div><span class='CellComment'>0.39375</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.4279323053227965)'><div class='hide'>46678</div><span class='CellComment'>46678</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.7250000000000001)'><div class='hide'>345.0</div><span class='CellComment'>3.45</span></td><td class='name' style=''>Anthropology</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.48416075655555557)'><div class='hide'>43.57446809</div><span class='CellComment'>0.4357446809</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.6654504116320431)'><div class='hide'>72586</div><span class='CellComment'>72586</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.6299999999999999)'><div class='hide'>326.0</div><span class='CellComment'>3.26</span></td><td class='name' style=''>Applied Mathematics</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.4345679012222222)'><div class='hide'>39.11111111</div><span class='CellComment'>0.3911111111</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.835)'><div class='hide'>367.0</div><span class='CellComment'>3.67</span></td><td class='name' style=''>Art Practice</td></tr><tr><td class='flexibility CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.5800000000000001)'><div class='hide'>316.0</div><span class='CellComment'>3.16</span></td><td class='name' style=''>Asian Studies</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.3666666666666667)'><div class='hide'>33.0</div><span class='CellComment'>0.33</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.565)'><div class='hide'>313.0</div><span class='CellComment'>3.13</span></td><td class='name' style=''>Astrophysics</td></tr><tr><td class='flexibility CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='name' style=''>Celtic Studies</td></tr><tr><td class='flexibility CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.71)'><div class='hide'>342.0</div><span class='CellComment'>3.42</span></td><td class='name' style=''>Chinese</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.18888888888888888)'><div class='hide'>17.0</div><span class='CellComment'>0.17</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.7649999999999999)'><div class='hide'>353.0</div><span class='CellComment'>3.53</span></td><td class='name' style=''>Classics</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.45069444444444445)'><div class='hide'>40.5625</div><span class='CellComment'>0.405625</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.6895891013769962)'><div class='hide'>75219</div><span class='CellComment'>75219</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.55)'><div class='hide'>310.0</div><span class='CellComment'>3.1</span></td><td class='name' style=''>Cognitive Science</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.1388888888888889)'><div class='hide'>12.5</div><span class='CellComment'>0.125</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.7549999999999999)'><div class='hide'>351.0</div><span class='CellComment'>3.51</span></td><td class='name' style=''>Comparative Literature</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.176673568)'><div class='hide'>15.90062112</div><span class='CellComment'>0.1590062112</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.9849190487541025)'><div class='hide'>107433</div><span class='CellComment'>107433</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.635)'><div class='hide'>327.0</div><span class='CellComment'>3.27</span></td><td class='name' style=''>Computer Science</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.3333333333333333)'><div class='hide'>30.0</div><span class='CellComment'>0.3</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.3293789765122206)'><div class='hide'>35928</div><span class='CellComment'>35928</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.595)'><div class='hide'>319.0</div><span class='CellComment'>3.19</span></td><td class='name' style=''>Development Studies</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.4666666666666666)'><div class='hide'>42.0</div><span class='CellComment'>0.42</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.49)'><div class='hide'>298.0</div><span class='CellComment'>2.98</span></td><td class='name' style=''>Earth & Planetary Science</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.42855218855555555)'><div class='hide'>38.56969697</div><span class='CellComment'>0.3856969697</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.6499569115678688)'><div class='hide'>70896</div><span class='CellComment'>70896</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.7350000000000001)'><div class='hide'>347.0</div><span class='CellComment'>3.47</span></td><td class='name' style=''>Economics</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.43)'><div class='hide'>38.7</div><span class='CellComment'>0.387</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.43978620803461743)'><div class='hide'>47971</div><span class='CellComment'>47971</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.73)'><div class='hide'>346.0</div><span class='CellComment'>3.46</span></td><td class='name' style=''>English</td></tr><tr><td class='flexibility CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.71)'><div class='hide'>342.0</div><span class='CellComment'>3.42</span></td><td class='name' style=''>Ethnic Studies</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.7)'><div class='hide'>63.0</div><span class='CellComment'>0.63</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.41254881827682943)'><div class='hide'>45000</div><span class='CellComment'>45000</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.7050000000000001)'><div class='hide'>341.0</div><span class='CellComment'>3.41</span></td><td class='name' style=''>Film Studies</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.47777777777777775)'><div class='hide'>43.0</div><span class='CellComment'>0.43</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.73)'><div class='hide'>346.0</div><span class='CellComment'>3.46</span></td><td class='name' style=''>French</td></tr><tr><td class='flexibility CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.7749999999999999)'><div class='hide'>355.0</div><span class='CellComment'>3.55</span></td><td class='name' style=''>Gender & Women's Studies</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.39999999999999997)'><div class='hide'>36.0</div><span class='CellComment'>0.36</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.6950000000000001)'><div class='hide'>339.0</div><span class='CellComment'>3.39</span></td><td class='name' style=''>Geography</td></tr><tr><td class='flexibility CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.7250000000000001)'><div class='hide'>345.0</div><span class='CellComment'>3.45</span></td><td class='name' style=''>German</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.27189542488888885)'><div class='hide'>24.470588239999998</div><span class='CellComment'>0.2447058824</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.48474486147527457)'><div class='hide'>52875</div><span class='CellComment'>52875</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.75)'><div class='hide'>350.0</div><span class='CellComment'>3.5</span></td><td class='name' style=''>History</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.5222222222222221)'><div class='hide'>47.0</div><span class='CellComment'>0.47</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.41441903958635107)'><div class='hide'>45204</div><span class='CellComment'>45204</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.75)'><div class='hide'>350.0</div><span class='CellComment'>3.5</span></td><td class='name' style=''>History of Art</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.380952381)'><div class='hide'>34.28571429</div><span class='CellComment'>0.3428571429</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.3849630539613854)'><div class='hide'>41991</div><span class='CellComment'>41991</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.6200000000000001)'><div class='hide'>324.0</div><span class='CellComment'>3.24</span></td><td class='name' style=''>Integrative Biology</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.6555555555555556)'><div class='hide'>59.0</div><span class='CellComment'>0.59</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.5066557876015328)'><div class='hide'>55265</div><span class='CellComment'>55265</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.585)'><div class='hide'>317.0</div><span class='CellComment'>3.17</span></td><td class='name' style=''>Interdisciplinary Studies</td></tr><tr><td class='flexibility CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.7150000000000001)'><div class='hide'>343.0</div><span class='CellComment'>3.43</span></td><td class='name' style=''>Italian Studies</td></tr><tr><td class='flexibility CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.6699999999999999)'><div class='hide'>334.0</div><span class='CellComment'>3.34</span></td><td class='name' style=''>Japanese Language</td></tr><tr><td class='flexibility CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.74)'><div class='hide'>348.0</div><span class='CellComment'>3.48</span></td><td class='name' style=''>Latin American Studies</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.4952380952222222)'><div class='hide'>44.57142857</div><span class='CellComment'>0.4457142857</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.4825446011111315)'><div class='hide'>52635</div><span class='CellComment'>52635</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.6200000000000001)'><div class='hide'>324.0</div><span class='CellComment'>3.24</span></td><td class='name' style=''>Legal Studies</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.4259259258888889)'><div class='hide'>38.33333333</div><span class='CellComment'>0.3833333333</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.5894039127963475)'><div class='hide'>64291</div><span class='CellComment'>64291</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.71)'><div class='hide'>342.0</div><span class='CellComment'>3.42</span></td><td class='name' style=''>Linguistics</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.5416666666666666)'><div class='hide'>48.75</div><span class='CellComment'>0.4875</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.5073983754744311)'><div class='hide'>55346</div><span class='CellComment'>55346</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.69)'><div class='hide'>338.0</div><span class='CellComment'>3.38</span></td><td class='name' style=''>Mass Communications & Media Studies</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.34047619044444444)'><div class='hide'>30.64285714</div><span class='CellComment'>0.3064285714</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.6341517079521076)'><div class='hide'>69172</div><span class='CellComment'>69172</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.7450000000000001)'><div class='hide'>349.0</div><span class='CellComment'>3.49</span></td><td class='name' style=''>Mathematics</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.2833333333333333)'><div class='hide'>25.5</div><span class='CellComment'>0.255</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.41261299253745026)'><div class='hide'>45007</div><span class='CellComment'>45007</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.7150000000000001)'><div class='hide'>343.0</div><span class='CellComment'>3.43</span></td><td class='name' style=''>Molecular and Cell Biology</td></tr><tr><td class='flexibility CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.7150000000000001)'><div class='hide'>343.0</div><span class='CellComment'>3.43</span></td><td class='name' style=''>Middle Eastern Studies</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.36190476188888887)'><div class='hide'>32.57142857</div><span class='CellComment'>0.3257142857</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.75)'><div class='hide'>350.0</div><span class='CellComment'>3.5</span></td><td class='name' style=''>Music</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.9222222222222222)'><div class='hide'>83.0</div><span class='CellComment'>0.83</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.8300000000000001)'><div class='hide'>366.0</div><span class='CellComment'>3.66</span></td><td class='name' style=''>Near Eastern Studies</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.7777777777777777)'><div class='hide'>70.0</div><span class='CellComment'>0.7</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.4008140963347329)'><div class='hide'>43720</div><span class='CellComment'>43720</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.7150000000000001)'><div class='hide'>343.0</div><span class='CellComment'>3.43</span></td><td class='name' style=''>Peace and Conflict Studies</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.5)'><div class='hide'>45.0</div><span class='CellComment'>0.45</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.3423238416545958)'><div class='hide'>37340</div><span class='CellComment'>37340</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.7)'><div class='hide'>340.0</div><span class='CellComment'>3.4</span></td><td class='name' style=''>Philosophy</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.35555555555555557)'><div class='hide'>32.0</div><span class='CellComment'>0.32</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.5926492968334586)'><div class='hide'>64645</div><span class='CellComment'>64645</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.6799999999999999)'><div class='hide'>336.0</div><span class='CellComment'>3.36</span></td><td class='name' style=''>Physics</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.6759259258888888)'><div class='hide'>60.833333329999995</div><span class='CellComment'>0.6083333333</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.4923540952346028)'><div class='hide'>53705</div><span class='CellComment'>53705</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.6299999999999999)'><div class='hide'>326.0</div><span class='CellComment'>3.26</span></td><td class='name' style=''>Political Economy</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.3666666666666667)'><div class='hide'>33.0</div><span class='CellComment'>0.33</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.4843964869176186)'><div class='hide'>52837</div><span class='CellComment'>52837</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.6699999999999999)'><div class='hide'>334.0</div><span class='CellComment'>3.34</span></td><td class='name' style=''>Political Science</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.4548387096666667)'><div class='hide'>40.93548387</div><span class='CellComment'>0.4093548387</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.4740644309576633)'><div class='hide'>51710</div><span class='CellComment'>51710</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.74)'><div class='hide'>348.0</div><span class='CellComment'>3.48</span></td><td class='name' style=''>Psychology</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.39224806199999995)'><div class='hide'>35.30232558</div><span class='CellComment'>0.3530232558</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.49776306862978786)'><div class='hide'>54295</div><span class='CellComment'>54295</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.7450000000000001)'><div class='hide'>349.0</div><span class='CellComment'>3.49</span></td><td class='name' style=''>Public Health</td></tr><tr><td class='flexibility CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.6799999999999999)'><div class='hide'>336.0</div><span class='CellComment'>3.36</span></td><td class='name' style=''>Religious Studies</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.5960784313333334)'><div class='hide'>53.647058820000005</div><span class='CellComment'>0.5364705882</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.4601202808999065)'><div class='hide'>50189</div><span class='CellComment'>50189</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.73)'><div class='hide'>346.0</div><span class='CellComment'>3.46</span></td><td class='name' style=''>Rhetoric</td></tr><tr><td class='flexibility CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='name' style=''>Scandinavian</td></tr><tr><td class='flexibility CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='name' style=''>Slavic Language & Literature</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.38888888888888884)'><div class='hide'>35.0</div><span class='CellComment'>0.35</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.38288197436696675)'><div class='hide'>41764</div><span class='CellComment'>41764</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.6299999999999999)'><div class='hide'>326.0</div><span class='CellComment'>3.26</span></td><td class='name' style=''>Social Welfare</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.4444444444444445)'><div class='hide'>40.0</div><span class='CellComment'>0.4</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.527411577036616)'><div class='hide'>57529</div><span class='CellComment'>57529</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.6399999999999999)'><div class='hide'>328.0</div><span class='CellComment'>3.28</span></td><td class='name' style=''>Sociology</td></tr><tr><td class='flexibility CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.585)'><div class='hide'>317.0</div><span class='CellComment'>3.17</span></td><td class='name' style=''>South & South Asian Studies</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.3402777777777778)'><div class='hide'>30.625000000000004</div><span class='CellComment'>0.30625</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.39879719100093514)'><div class='hide'>43500</div><span class='CellComment'>43500</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.69)'><div class='hide'>338.0</div><span class='CellComment'>3.38</span></td><td class='name' style=''>Spanish & Portuguese</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.3792592592222222)'><div class='hide'>34.13333333</div><span class='CellComment'>0.3413333333</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.7173032142136819)'><div class='hide'>78242</div><span class='CellComment'>78242</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.685)'><div class='hide'>337.0</div><span class='CellComment'>3.37</span></td><td class='name' style=''>Statistics</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.4222222222222222)'><div class='hide'>38.0</div><span class='CellComment'>0.38</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.74)'><div class='hide'>348.0</div><span class='CellComment'>3.48</span></td><td class='name' style=''>Theater, Dance & Performance Studies</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.4354965585555555)'><div class='hide'>39.194690269999995</div><span class='CellComment'>0.3919469027</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.7061735638717248)'><div class='hide'>77028</div><span class='CellComment'>77028</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.77)'><div class='hide'>354.0</div><span class='CellComment'>3.54</span></td><td class='name' style=''>Business Administration</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.19999999999999998)'><div class='hide'>18.0</div><span class='CellComment'>0.18</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.615)'><div class='hide'>323.0</div><span class='CellComment'>3.23</span></td><td class='name' style=''>Chemical Biology</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.48695652177777776)'><div class='hide'>43.82608696</div><span class='CellComment'>0.4382608696</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.6309063239149966)'><div class='hide'>68818</div><span class='CellComment'>68818</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.6299999999999999)'><div class='hide'>326.0</div><span class='CellComment'>3.26</span></td><td class='name' style=''>Chemical Engineering</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.3666666666666667)'><div class='hide'>33.0</div><span class='CellComment'>0.33</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.46205467647004894)'><div class='hide'>50400</div><span class='CellComment'>50400</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.7)'><div class='hide'>340.0</div><span class='CellComment'>3.4</span></td><td class='name' style=''>Chemistry</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.394949495)'><div class='hide'>35.54545455</div><span class='CellComment'>0.3554545455</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.6979042520031538)'><div class='hide'>76126</div><span class='CellComment'>76126</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.7250000000000001)'><div class='hide'>345.0</div><span class='CellComment'>3.45</span></td><td class='name' style=''>Bioengineering</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.35)'><div class='hide'>31.5</div><span class='CellComment'>0.315</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.7340710317387558)'><div class='hide'>80071</div><span class='CellComment'>80071</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.6499999999999999)'><div class='hide'>330.0</div><span class='CellComment'>3.3</span></td><td class='name' style=''>Civil & Environmental Engineering</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.18193146422222223)'><div class='hide'>16.37383178</div><span class='CellComment'>0.1637383178</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 1.0)'><div class='hide'>109078</div><span class='CellComment'>109078</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.6699999999999999)'><div class='hide'>334.0</div><span class='CellComment'>3.34</span></td><td class='name' style=''>EECS</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.5358024691111111)'><div class='hide'>48.22222222</div><span class='CellComment'>0.4822222222</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.7328792240415116)'><div class='hide'>79941</div><span class='CellComment'>79941</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.7)'><div class='hide'>340.0</div><span class='CellComment'>3.4</span></td><td class='name' style=''>Engineering Science</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.6581196581111112)'><div class='hide'>59.23076923</div><span class='CellComment'>0.5923076923</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.7150846183465044)'><div class='hide'>78000</div><span class='CellComment'>78000</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.6950000000000001)'><div class='hide'>339.0</div><span class='CellComment'>3.39</span></td><td class='name' style=''>IEOR</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.4888888888888889)'><div class='hide'>44.0</div><span class='CellComment'>0.44</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.7088230440602138)'><div class='hide'>77317</div><span class='CellComment'>77317</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.5900000000000001)'><div class='hide'>318.0</div><span class='CellComment'>3.18</span></td><td class='name' style=''>Materials Science & Engineering</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.3958333333333333)'><div class='hide'>35.625</div><span class='CellComment'>0.35625</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.6817506738297365)'><div class='hide'>74364</div><span class='CellComment'>74364</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.645)'><div class='hide'>329.0</div><span class='CellComment'>3.29</span></td><td class='name' style=''>Mechanical Engineering</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.3666666666666667)'><div class='hide'>33.0</div><span class='CellComment'>0.33</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.52)'><div class='hide'>304.0</div><span class='CellComment'>3.04</span></td><td class='name' style=''>Nuclear Engineering</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.7712962963333334)'><div class='hide'>69.41666667</div><span class='CellComment'>0.6941666667</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.44575441427235557)'><div class='hide'>48622</div><span class='CellComment'>48622</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.605)'><div class='hide'>321.0</div><span class='CellComment'>3.21</span></td><td class='name' style=''>Architecture</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.15555555555555556)'><div class='hide'>14.000000000000002</div><span class='CellComment'>0.14</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.7450000000000001)'><div class='hide'>349.0</div><span class='CellComment'>3.49</span></td><td class='name' style=''>Landscape Architecture</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.7888888888888889)'><div class='hide'>71.0</div><span class='CellComment'>0.71</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.7050000000000001)'><div class='hide'>341.0</div><span class='CellComment'>3.41</span></td><td class='name' style=''>Sustainable Environmental Design</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 1.0)'><div class='hide'>90.0</div><span class='CellComment'>0.9</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.5025211316672473)'><div class='hide'>54814</div><span class='CellComment'>54814</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.6699999999999999)'><div class='hide'>334.0</div><span class='CellComment'>3.34</span></td><td class='name' style=''>Urban Studies</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.4666666666666666)'><div class='hide'>42.0</div><span class='CellComment'>0.42</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.42624543904362017)'><div class='hide'>46494</div><span class='CellComment'>46494</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.7350000000000001)'><div class='hide'>347.0</div><span class='CellComment'>3.47</span></td><td class='name' style=''>Conservation & Resource Studies</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.8985507246666666)'><div class='hide'>80.86956522</div><span class='CellComment'>0.8086956522</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.5905040429784191)'><div class='hide'>64411</div><span class='CellComment'>64411</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.6399999999999999)'><div class='hide'>328.0</div><span class='CellComment'>3.28</span></td><td class='name' style=''>Environmental Economics and Policy</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.3111111111111111)'><div class='hide'>28.000000000000004</div><span class='CellComment'>0.28</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.74)'><div class='hide'>348.0</div><span class='CellComment'>3.48</span></td><td class='name' style=''>Environmental Sciences</td></tr><tr><td class='flexibility CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.6799999999999999)'><div class='hide'>336.0</div><span class='CellComment'>3.36</span></td><td class='name' style=''>Forestry & Natural Resources</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.3666666666666667)'><div class='hide'>33.0</div><span class='CellComment'>0.33</span></td><td class='salary CellWithComment' style='background-color:#F8F9FC'><div class='hide'>NA</div><span class='CellComment'>NA</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.6699999999999999)'><div class='hide'>334.0</div><span class='CellComment'>3.34</span></td><td class='name' style=''>Genetics & Plant Biology</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.5866666666666667)'><div class='hide'>52.800000000000004</div><span class='CellComment'>0.528</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.4148224206531106)'><div class='hide'>45248</div><span class='CellComment'>45248</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.635)'><div class='hide'>327.0</div><span class='CellComment'>3.27</span></td><td class='name' style=''>Microbial Biology</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.3)'><div class='hide'>27.0</div><span class='CellComment'>0.27</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.37614367700177853)'><div class='hide'>41029</div><span class='CellComment'>41029</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.6399999999999999)'><div class='hide'>328.0</div><span class='CellComment'>3.28</span></td><td class='name' style=''>Molecular Environmental Biology</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.3490740741111111)'><div class='hide'>31.416666669999998</div><span class='CellComment'>0.3141666667</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.45776416875996995)'><div class='hide'>49932</div><span class='CellComment'>49932</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.6599999999999999)'><div class='hide'>332.0</div><span class='CellComment'>3.32</span></td><td class='name' style=''>Nutritional Sciences</td></tr><tr><td class='flexibility CellWithComment' style='background-color:rgba(45, 70, 112, 0.47777777777777775)'><div class='hide'>43.0</div><span class='CellComment'>0.43</span></td><td class='salary CellWithComment' style='background-color:rgba(45, 70, 112, 0.49719466803571755)'><div class='hide'>54233</div><span class='CellComment'>54233</span></td><td class='gpa CellWithComment' style='background-color:rgba(45, 70, 112, 0.72)'><div class='hide'>344.0</div><span class='CellComment'>3.44</span></td><td class='name' style=''>Society & Environment</td></tr>
<!--- End Auto generated code -->
</tbody>
</table>
</div>
<!--- End of heattable -->
<!-- <div class="layout" id="navlegend">Nav legend</div> -->
</div>
<!--- End of navsection -->
</div>
<!--- End of users -->
</div>
<!--- End of top-section -->
</div>
<div class="layout" id="majorchart">
<div class="layout" id="sankey">
<!-- RESULT OF ON CLICK -->
<!-- <div id="result"> </div> -->
<!-- END RESULT OF ON CLICK -->
<hr>
<div>
<h1 id="result"></h1>
</div>
<div id="chart"></div>
<script>
var colors = {
// 'orange': '#EB9F42',
'orange':'#EEC071',
'blue': '#2D4670'
};
d3.json("sankey.json", function(error, json) {
var chart = d3.select("#chart").append("svg").chart("Sankey.Path");
chart
.name(label)
.colorNodes(function(name, node) {
return color(node, 1) || colors.fallback;
})
.colorLinks(function(link) {
return color(link.source, 4) || color(link.target, 1) || colors.fallback;
})
.nodeWidth(15)
.nodePadding(10)
.spread(true)
.iterations(0)
.draw(json);
function label(node) {
return node.name.replace(/\s*\(.*?\)$/, '');
}
function color(node, depth) {
var id = node.id.replace(/(_score)?(_\d+)?$/, '');
if (colors[id]) {
return colors[id];
} else if (depth > 0 && node.targetLinks && node.targetLinks.length == 1) {
return color(node.targetLinks[0].source, depth-1);
} else {
return null;
}
}
});
</script>
</div>
</div>
<hr />
<!-- BEGIN TOP-SCROLL-BAR -->
<div class="right" id="top-scroll-bar">
<!-- <button onClick="scrollToTop()">Scroll to Top</button> -->
<button onClick="scrollSmoothToTop()">Return to Top</button>
<button onClick="scrollToSankey()">To Sankey</button>
</div>
<!-- END TOP-SCROLL-BAR -->
<!-- SCRIPTS -->
<!-- SORTING SCRIPT -->
<script>
var options = {
valueNames: [ 'flexibility', 'salary','gpa', 'name' ]
};
var userList = new List('users', options);
</script>
<!-- END SORTING SCRIPT -->
<!-- SCROLLING SCRIPT -->
<script>
// document ready on click events
// use data of a, pass var through id
// on click scroll to bottom
// as well as update the sankey
scrollingElement = (document.scrollingElement || document.body)
function scrollToBottom () {
scrollingElement.scrollTop = scrollingElement.scrollHeight;
}
function scrollToTop (id) {
scrollingElement.scrollTop = 0;
}
//Require jQuery
function scrollSmoothToBottom (id) {
$(scrollingElement).animate({
scrollTop: document.body.scrollHeight
}, 500);
}
//Require jQuery
function scrollSmoothToTop (id) {
$(scrollingElement).animate({
scrollTop: 0
}, 500);
}
function scrollToSankey (id) {
$(scrollingElement).animate({
scrollTop: $("#result").offset().top
}, 500);
}
// $(document).ready(function (){
// $("#click").click(function (){
// $('html, body').animate({
// scrollTop: $("#div1").offset().top
// }, 2000);
// });
// });
</script>
<!-- END SCROLLING SCRIPT -->
</body>
</html>