-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathassignment5.html
153 lines (109 loc) · 4.76 KB
/
assignment5.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>MammaMia - Data Visualization Assignments</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- favicon -->
<link type="image/png" sizes="32x32" rel="icon" href="images/favicon.ico">
<!-- JQuery -->
<script src="https://code.jquery.com/jquery-3.6.1.js"
integrity="sha256-3zlB5s2uwoUzrXK3BT7AX3FyvojsraNFxCc2vC/7pNI=" crossorigin="anonymous"></script>
<!-- Google Font CDN -->
<link href="https://fonts.googleapis.com/css2?family=Roboto+Slab&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Fira+Sans+Condensed&display=swap" rel="stylesheet">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<!-- Fontawesome -->
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- Custom CSS -->
<link rel="stylesheet" href="css/w3.css">
<link rel="stylesheet" href="css/style.css">
<!-- Load the sankey.js function -->
<!--D3.js table -->
<script src="./js/utils/d3_v6.js"></script>
<script src="https://d3js.org/d3.v4.js"></script>
<script src="https://d3js.org/d3-scale-chromatic.v1.js"></script>
<script src="./js/utils/sankey.js"></script>
<!-- <script src="https://cdn.jsdelivr.net/gh/holtzy/D3-graph-gallery@master/LIB/sankey.js"></script> -->
<!-- <script src="https://d3js.org/d3-geo-projection.v2.min.js"></script> -->
</head>
<body class="w3-light-grey">
<!-- Top container -->
<div id="includeHeader">
</div>
<!-- Sidebar/menu -->
<nav class="w3-sidebar w3-collapse w3-white w3-animate-left" id="mySidebar">
</nav>
<!-- Overlay effect when opening sidebar on small screens -->
<div class="w3-overlay w3-hide-large w3-animate-opacity" onclick="w3_close()" style="cursor:pointer"
title="close side menu" id="myOverlay"></div>
<!-- !PAGE CONTENT! -->
<div class="w3-main" id="assignm5PageContent">
<!-- Header -->
<header class="w3-container" id="assignm5Title">
<h1><b>Assignment 5 - Flux</b></h1>
</header>
<br>
<br>
<h2><b>Connection between Carbon storage and Euro Saved of Top 10 trees</b></h2>
<h4>
Alluvial diagram that shows the connection between carbon storage (kg) <br /> and Carbon storage (eur) of the top 10 abundance tree types. <br />
Hovering the links we can see the respective value, while hovering the nodes we see these values of each tree.
</h4>
<!-- <div class="task-container" id="task1Ass4_legend"></div> -->
<!-- <select id="selectButton"></select> -->
<div class="task-container" id="A5task1"></div>
<br>
<hr>
<br>
<!-- <h2><b> 2</b></h2>
<h4>
</h4>
<div class="task-container" id="A5task2"></div>
<br>
<hr>
<br> -->
<!-- Footer -->
<div id="includeFooter">
</div>
<!-- End page content -->
<script>
// Get the Sidebar
var mySidebar = document.getElementById("mySidebar");
// Get the DIV with overlay effect
var overlayBg = document.getElementById("myOverlay");
// Toggle between showing and hiding the sidebar, and add overlay effect
function w3_open() {
if (mySidebar.style.display === 'block') {
mySidebar.style.display = 'none';
overlayBg.style.display = "none";
} else {
mySidebar.style.display = 'block';
overlayBg.style.display = "block";
}
}
// Close the sidebar with the close button
function w3_close() {
mySidebar.style.display = "none";
overlayBg.style.display = "none";
}
$(function () {
$("#includeFooter").load("./components/footer.html");
});
$(function () {
$("#includeHeader").load("./components/header.html");
});
$(function () {
$("#mySidebar").load("./components/sidebar.html");
});
</script>
<script src="https://kit.fontawesome.com/22c153e680.js" crossorigin="anonymous"></script>
<!-- <script src="./js/utils/legend.js" crossorigin="anonymous"></script> -->
<script src="./js/assignment5/A5task1.js" crossorigin="anonymous"></script>
<script src="./js/assignment5/A5task2.js" crossorigin="anonymous"></script>
</body>
</html>