-
Notifications
You must be signed in to change notification settings - Fork 0
/
TechnicalPresentation_Week6.html
77 lines (58 loc) · 3.22 KB
/
TechnicalPresentation_Week6.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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<title>My Little Underground</title>
<link rel="icon" type="image/png" href="images/tabicon.png">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-aFq/bzH65dt+w6FI2ooMVUpc+21e0SRygnTpmBvdBgSdnuTN7QbdgL+OapgHtvPp" crossorigin="anonymous">
<link rel="stylesheet" href="css/mlu.css">
<!-- Chart.js CDN (the jsdelivr one with .umd worked for me)-->
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.2.1/dist/chart.umd.min.js"></script>
<!-- Chart.js plugin: autocolors -->
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-autocolors"></script>
<!-- JQuery -->
<script src="https://code.jquery.com/jquery-3.5.0.js"></script>
<!-- Bootstrap js-->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha2/dist/js/bootstrap.bundle.min.js" integrity="sha384-qKXV1j0HvMUeCBQ+QVp7JcfGl760yU08IQ+GpUo5hlbpg51QRiuqHAJz8+BrxE/N" crossorigin="anonymous"></script>
</head>
<body>
<div id="nav-placeholder"></div>
<div class="container-fluid pt-5">
<h1 class="display-1" id="index_title">Chart JS</h1>
<div id="addElements"></div>
</div>
<div class="container-fluid pt-sm-1">
<p class="display-6" id="index_subtitle">Week6 Technical Presentation</p>
</div>
<hr class="d-none d-md-block my-2 ms-3">
<!-- Chart js -->
<div class="container-fluid d-flex justify-content-center align-items-center" style="position: relative; height: 80vh; width: 80vw;">
<canvas id="myChart"></canvas>
</div>
<hr class="d-none d-md-block my-2 ms-3">
<div class="container-fluid d-flex justify-content-center align-items-center" style="position: relative; height: 80vh; width: 80vw;">
<canvas id="myChart1"></canvas>
</div>
<div class="container-fluid d-flex justify-content-center align-items-center">
<button type="button" class="btn btn-primary" onclick="addVesselTypes()">Add Vessel Types</button>
<button type="button" class="btn btn-primary" onclick="addRandomDatasets()">Add Random Datasets</button>
<button type="button" class="btn btn-primary" onclick="RemoveDatasets()">Remove Datasets</button>
</div>
<hr class="d-none d-md-block my-2 ms-3">
<div class="container-fluid d-flex justify-content-center align-items-center" style="position: relative; height: 80vh; width: 80vw;">
<canvas id="myChart2"></canvas>
</div>
<hr class="d-none d-md-block my-2 ms-3">
<div class="container-fluid d-flex justify-content-center align-items-center" style="position: relative; height: 80vh; width: 80vw;">
<canvas id="myChart3"></canvas>
</div>
<div id="footer-placeholder"></div>
<script src="js/wikiAPI.js"></script>
<script src="js/chartJS.js"></script>
<script src="js/nav.js"></script>
<script src="js/footer.js"></script>
</body>
</html>