generated from usf-cs360-spring2020/template-bulma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfinal.html
472 lines (397 loc) · 19.1 KB
/
final.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- TODO: Change title -->
<title>CS 360 Final Project</title>
<!-- Load Bulma from CDN (consider saving it to repository instead) -->
<!-- https://bulma.io/ -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.8.0/css/bulma.min.css">
<!-- Load Font Awesome 5 (free) icons -->
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
<!-- include d3.js v5 -->
<script src="https://d3js.org/d3.v5.min.js"></script>
<!-- include d3.js modules -->
<script src="https://d3js.org/d3-array.v2.min.js"></script>
<script src="https://d3js.org/d3-fetch.v1.min.js"></script>
<script src="https://d3js.org/d3-time.v1.min.js"></script>
<script src="https://d3js.org/d3-time-format.v2.min.js"></script>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<!-- Page navigation -->
<!-- https://bulma.io/documentation/components/navbar/ -->
<nav class="navbar is-fixed-top" role="navigation" aria-label="main navigation">
<div class="container">
<div class="navbar-brand">
<!-- TODO: Change link to repository homepage if needed -->
<!-- TODO: Change which navbar-item is-active if needed -->
<a class="navbar-item is-active" href="index.html">
<span class="icon"><i class="fas fa-home"></i></span>
<span>Home</span>
</a>
<a role="button" class="navbar-burger burger" aria-label="menu" aria-expanded="false" data-target="main-menu">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div id="main-menu" class="navbar-menu has-text-weight-medium">
<!-- Left navbar items -->
<div class="navbar-start">
<a class="navbar-item" href="data.html" title="Data">
<span class="icon"><i class="fas fa-table"></i></span>
<span>Data</span>
</a>
<!-- TODO: Modify or remove dropdown -->
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link">
Visualizations
</a>
<div class="navbar-dropdown">
<a class="navbar-item" href="alpha.html">
<span class="icon"><i class="fas fa-chart-line"></i></span>
<span>Alpha Release Prototype</span>
</a>
<a class="navbar-item" href="beta.html">
<span class="icon"><i class="fas fa-chart-area"></i></span>
<span>Beta Release Prototype</span>
</a>
<hr class="navbar-divider">
<a class="navbar-item" href="final.html">
<span class="icon"><i class="fas fa-chart-bar"></i></span>
<span>Final Implementation</span>
</a>
</div>
</div>
</div>
<!-- Right navbar items -->
<div class="navbar-end">
<!-- TODO: Update as needed -->
<a class="navbar-item" href="grade.html" title="About">
<span class="icon"><i class="fas fa-tasks"></i></span>
<span>Grade</span>
</a>
<a class="navbar-item" href="about.html" title="About">
<span class="icon"><i class="fas fa-info-circle"></i></span>
<span>About</span>
</a>
</div>
</div>
</div>
</nav>
<!-- End page navigation -->
<section class="section">
<div class="container">
<!-- Begin page content -->
<p class="title" style="font-size: 50px; margin-top: 40px">Above & Lowest Rated Animes</p>
<p class="subtitle">
The amount of Above average and Below average rated animes that premiered in the years between 1986 and 2019 are visualized.</p><br/>
<div id="stacked" class="level">
<div class="columns">
<div class="column">
<form id="bar_choices">
<label class="radio">
<input type="radio" name="mode" value="stack" checked="checked">
Stacked Bars
</label>
<label class="radio">
<input type="radio" name="mode" value="bar" onclick="">
Grouped Bars
</label>
<svg id="stackbar" width="1000" height="500"></svg>
</div>
<div class="column is-one-quarter">
<p id="BarsInfo"></p>
</div>
</div>
</div>
<script src="stacked-bar.js"></script>
<div class="columns">
<div class="column" style="padding: 30px">
<p class="title">
Interactivity
</p>
<ul>
<li><p class="title" style="font-size: 20px; font-weight: normal;"><i class="far fa-dot-circle"></i> Stacked vs Grouped Bars</p>
</li>
<p style="font-size: 15px; margin-left: 20px; margin-bottom: 20px">Change the bar graph layout with the raido buttons at the top.</p>
<li>
<p class="title" style="font-size: 20px; font-weight: normal;"><i class="fas fa-ruler-combined"></i> Reference Line with Value</p>
</li>
<p style="font-size: 15px; margin-left: 20px; margin-bottom: 20px">Mouseover any bar to display reference line and the corresponding value for that bar.</p>
<li><p class="title" style="font-size: 20px;font-weight: normal;"><i class="fas fa-brush"></i> Brushing Ratings</p></li>
<p style="font-size: 15px; margin-left: 20px; margin-bottom: 20px">Mouseover any bar to highlight bars of the same subgroup.</p>
<li><p class="title" style="font-size: 20px;font-weight: normal;"><i class="fas fa-info-circle"></i> On Demand Details</p></li>
<p style="font-size: 15px; margin-left: 20px; margin-bottom: 20px">Click on any bar and display the highest and lowest rated anime that premiered that year.</p>
</ul>
</div>
<div class="column" style="padding: 30px">
<p class="title">
Encodings
</p>
<p class="title" style="font-size: 20px; margin-bottom: 10px;font-weight: normal;">Categorical Colors</p>
<div class="level-left">
<div class="level-left">
<svg width="30" height="20">
<rect width="20" height="20" style="fill:#77dd77">
</svg>
<p style="padding-right:20px">Above Average</p>
</div>
<div class="level-left">
<svg width="30" height="20">
<rect width="20" height="20" style="fill:#d83c2d">
</svg>
<p>Below Average</p>
</div>
</div>
<p style="font-family: 'Georgia'; margin-top: 10px">Average ratings for this dataset is ≈ 6.43</p>
<p class="title" style="font-size: 20px; margin-bottom: 10px"></p>
<p class="title" style="font-size: 20px; margin-bottom: 10px;font-weight: normal;">Discrete Totals</p>
<p style="font-family: 'Georgia'">The height of the bars of represent the total amount of either Above Average or Below Average animes for each year.</p>
<p class="title" style="font-size: 20px; margin-bottom: 10px; margin-top: 10px;font-weight: normal;">Categorical Years</p>
<p style="font-family: 'Georgia'">Each year represents the year an anime was released.</p>
</div>
<div class="column" style="padding: 30px">
<p class="title">
Observations
</p>
<p>
The amount of anime released each year increased almost each year.<br/>
In the <strong>late 90s and early 2000s</strong>, the majority of anime was rated average above average, especially in 2007. <br/>
I was expecting each year's highest rated anime to be recognizable, but <strong>early years like 1990, 1991, and 1994</strong> have less popular animes as their highest rated anime.<br/>
The highest rated animes all have multiple genres listed and some of them are common and generic like <strong>Comedy, Action, Drama</strong> while the lowest rated anime have at most three genres and the most common genres are <strong>Music, Horror, and Dementia</strong>.<br/>
</p>
</div>
</div>
<hr style="margin-bottom: 100px"></hr>
<p class="title" style="font-size: 50px; margin-top: 40px; padding-left: 100px">Top 100 & Bottom 100</p>
<p class="subtitle" style="margin-left: 100px; margin-bottom: 0px">200 of the Highest Rated & Lowest Rated Anime that premiered between 1986 and 2019</p>
<div id="force" class="level" style="margin: 100px; margin-top: 0px; margin-bottom: 0px">
<div class="columns">
<div class="column" style="padding-bottom: 0px; padding-top: 50px; padding-right: 20px">
<p id="anime_info"></p>
<div id="move">
<p class="title">
Interactivity
</p>
<ul>
<li><p class="title" style="font-size: 20px"><i class="fas fa-tools"></i> Overview Tooltips</p></li>
<p style="font-size: 15px; margin-left: 20px; margin-bottom: 20px">Mouseover a node to see the general information about the anime, including its title, rank, popularity and poster image.</p>
<li><p class="title" style="font-size: 20px"><i class="fas fa-info-circle"></i> Individual Anime Information & Stats</p></li>
<p style="font-size: 15px; margin-left: 20px; margin-bottom: 20px">Click on the node to display more infomration about the anime and the ratings collected from the reviews. The selected anime node will be slightly bigger.</p>
</ul>
<hr style="margin: 60px"></hr>
<p class="title">
Encodings
</p>
<p class="title" style="font-size: 20px; margin-bottom: 10px;font-weight: normal;">Color Ranges</p>
<p style="font-family: 'Georgia'">Green Nodes are darker if the anime's score is greater.</p>
<div class="level-left">
<svg width="30" height="20">
<rect width="20" height="20" style="fill:rgb(36, 141, 70);">
</svg>
<p style="padding-right:20px"> ≈ 9.3</p>
<svg width="30" height="20">
<rect width="20" height="20" style="fill:rgb(208, 237,202)";>
</svg>
<p> ≈ 8.3</p>
</div>
<p style="font-family: 'Georgia'">Red nodes are darker if the score is lower.</p>
<div class="level-left">
<svg width="30" height="20">
<rect width="20" height="20" style="fill:rgb(253, 201, 179);">
</svg>
<p style="padding-right:20px"> ≈ 4.5</p>
<svg width="30" height="20">
<rect width="20" height="20" style="fill:rgb(128, 6, 16);">
</svg>
<p> ≈ 1</p>
</div>
<p style="font-family: 'Georgia'">Nodes with black strokes are apart of the top 100 based on popularity</p>
<p class="title" style="font-size: 20px; margin-bottom: 10px; margin-top: 20px;font-weight: normal;">Links</p>
<p style="font-family: 'Georgia'">Anime nodes or the leaves, are connected to the year when they were released. The parent nodes are labeled with the last two digits for that year</p>
</div>
</div>
<div class="column" align="center" style="margin-top: 50px">
<svg id="tree" width="600" height="600"></svg>
<p class="title" id="forceTitle" style="font-size: 15px"></p>
</div>
</div>
</div>
<div id="change"></div>
<div class="container">
<div style="margin-top: 70px">
<hr></hr>
<span class="heading" style="font-size: 12px;">Acknowledgements</span>
<div class="level">
<div class="card" style="padding: 10px; margin: 10px">
<div class="media">
<div class="media-left">
<figure class="image is-32x32">
<img src="assets\o.png">
</figure>
</div>
<div class="media-content">
<p class="title is-6"><a href="https://observablehq.com/@d3/force-directed-tree">Force-Directed Tree</a></p>
<p class="subtitle" style="font-size: 12px">By Mike Bostock</p>
</div>
</div>
</div>
<div class="card" style="padding: 10px; margin: 10px">
<div class="media">
<div class="media-left">
<figure class="image is-32x32">
<img src="assets\o.png">
</figure>
</div>
<div class="media-content">
<p class="title is-6"><a href="https://observablehq.com/@sjengle/java-11-api-hierarchy-data-wrangling">Java 11 API Hierarchy - <br/> Data Wrangling</a></p>
<p class="subtitle" style="font-size: 12px">By Sophie Engle</p>
</div>
</div>
</div>
<div class="card" style="padding: 10px; margin: 10px">
<div class="media">
<div class="media-left">
<figure class="image is-32x32">
<img src="assets\o.png">
</figure>
</div>
<div class="media-content">
<p class="title is-6"><a href="https://observablehq.com/@sjengle/java-11-api-hierarchy-visualization">Java 11 API Hierarchy - <br/> Visualization</a></p>
<p class="subtitle" style="font-size: 12px">By Sophie Engle</p>
</div>
</div>
</div>
<div class="card" style="padding: 10px; margin: 10px">
<div class="media">
<div class="media-left">
<figure class="image is-32x32">
<img src="https://bulma.io/images/placeholders/32x32.png">
</figure>
</div>
<div class="media-content">
<p class="title is-6"><a href="https://blockbuilder.org/sjengle/1d673a35f2cb304c572a137277d3d150">SF Arrests Lab Template</a></p>
<p class="subtitle" style="font-size: 12px">By Sophie Engle</p>
</div>
</div>
</div>
<div class="card" style="padding: 15px; margin: 10px">
<div class="media">
<div class="media-left">
<figure class="image is-32x32">
<img src="assets\o.png">
</figure>
</div>
<div class="media-content">
<p class="title is-6"><a href="https://observablehq.com/@sjengle/interactivity">Interactivity</a></p>
<p class="subtitle" style="font-size: 12px">By Sophie Engle</p>
</div>
</div>
</div>
</div>
<div class="level">
<div class="card" style="padding: 10px; margin: 10px">
<div class="media">
<div class="media-left">
<figure class="image is-32x32">
<img src="https://bulma.io/images/placeholders/32x32.png">
</figure>
</div>
<div class="media-content">
<p class="title is-6"><a href="https://bl.ocks.org/patiencehaggin/ffc6522a844cea9f0712282ba6d3cbeb">Single country with dropdown & radio buttons</a></p>
<p class="subtitle" style="font-size: 12px">By patiencehaggin</p>
</div>
</div>
</div>
<div class="card" style="padding: 10px; margin: 10px">
<div class="media">
<div class="media-left">
<figure class="image is-32x32">
<img src="assets\stack.jpg">
</figure>
</div>
<div class="media-content">
<p class="title is-6"><a href="https://bl.ocks.org/patiencehaggin/ffc6522a844cea9f0712282ba6d3cbeb">D3: display graph in tooltip</a></p>
<p class="subtitle" style="font-size: 12px">Answered By saikiran.vsk</p>
</div>
</div>
</div>
<div class="card" style="padding: 10px; margin: 10px">
<div class="media">
<div class="media-left">
<figure class="image is-32x32">
<img src="assets\o.png">
</figure>
</div>
<div class="media-content">
<p class="title is-6"><a href="https://observablehq.com/@kerryrodden/stacked-to-grouped-bars-o-matic">Stacked-to-Grouped-Bars-o-Matic</a></p>
<p class="subtitle" style="font-size: 12px">By Kerry Rodden</p>
</div>
</div>
</div>
</div>
<script src="trees.js"></script>
<!-- End page content -->
</div>
</section>
<!-- Page footer -->
<!-- https://bulma.io/documentation/layout/footer/ -->
<footer class="footer">
<div class="content has-text-centered is-size-7">
<p>
<a href="#top">
<span class="fas fa-arrow-up"></span>
<span class="has-text-weight-medium">Back to Top</span>
</a>
</p>
<p>
<!-- TODO: Change to link to your Github repository -->
<a href="https://github.com/usf-cs360-spring2020/template-bulma" class="button is-small" style="padding-left: 1em; padding-right: 1em;">
<i class="fab fa-github-alt"></i> <strong>Github</strong>
</a>
<a href="https://fontawesome.com/" class="button is-small" style="padding-left: 1em; padding-right: 1em;">
<i class="fab fa-font-awesome"></i> <strong>FontAwesome</strong>
</a>
<a href="https://bulma.io" class="button is-small">
<img src="https://bulma.io/images/made-with-bulma--semiblack.png" alt="Made with Bulma" width="128" height="24">
</a>
</p>
</div>
</footer>
<!-- End page footer -->
<!-- Mobile menu responsiveness -->
<!-- https://bulma.io/documentation/components/navbar/ -->
<script>
function openTab(evt, tabName) {
var i, x, tablinks;
x = document.getElementsByClassName("content-tab");
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
tablinks = document.getElementsByClassName("tab");
for (i = 0; i < x.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" is-active", "");
}
document.getElementById(tabName).style.display = "block";
evt.currentTarget.className += " is-active";
}
document.addEventListener('DOMContentLoaded', () => {
const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
if ($navbarBurgers.length > 0) {
$navbarBurgers.forEach( el => {
el.addEventListener('click', () => {
const target = el.dataset.target;
const $target = document.getElementById(target);
el.classList.toggle('is-active');
$target.classList.toggle('is-active');
});
});
}
});
</script>
<!-- End mobile menu responsiveness -->
</body>
</html>