-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
186 lines (163 loc) · 5.85 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
<!DOCTYPE html>
<!--
* Data Visualization - Framework
* Copyright (C) University of Passau
* Faculty of Computer Science and Mathematics
* Chair of Cognitive sensor systems
* Maintenance:
* 2024, Alexander Gall <[email protected]>
*
* All rights reserved.
-->
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Data Visualization Exercise</title>
<link
rel="stylesheet"
href="http://code.jquery.com/ui/1.13.2/themes/base/jquery-ui.css"
/>
<link rel="stylesheet" type="text/css" href="style.css" />
<!-- include d3 -->
<script src="https://d3js.org/d3.v7.min.js"></script>
<!-- include jQueryUI -->
<script src="https://code.jquery.com/jquery-3.6.1.js"></script>
<script src="https://code.jquery.com/ui/1.13.2/jquery-ui.js"></script>
<script src="https://unpkg.com/[email protected]/dist/topojson.min.js"></script>
<!-- PART 1: include dataVis script -->
<script src="dataVis.js"></script>
<!-- PART 2: include scripts for the dashboard -->
<script src="utils/pre_process_data.js"></script>
<script src="utils/draw_chart.js"></script>
<script src="dashboard.js"></script>
</head>
<!-- call init function when page has loaded -->
<body onload="init()">
<h1>Data Visualization Exercise</h1>
<!-- credits -->
<div id="credits">
Created by
<span class="instructions">Oghenemano Utomudo Omogha </span> for the Data
Visualization Lecture at
<a href="https://www.fim.uni-passau.de/digitale-bildverarbeitung">
Faculty of Computer Science and Mathematics - Chair of Cognitive sensor
systems - University of Passau</a
>.
</div>
<!-- create buttons to select tabs -->
<button
class="tablink"
onclick="openPage('DataLoading', this, 'blue')"
id="defaultOpen"
>
Data Loading
</button>
<button
class="tablink"
onclick="openPage('BasicVisualization', this, 'blue')"
>
Basic Visualization
</button>
<button class="tablink" onclick="openPage('Dashboard', this, 'blue')">
Dashboard
</button>
<!-- Tab 1 -->
<div id="DataLoading" class="tabcontent">
<!-- data selector -->
<p>Select your data here: <input id="upload" type="file" /></p>
<!-- data table -->
<div id="dataTable"></div>
</div>
<!-- Tab 2 -->
<div id="BasicVisualization" class="tabcontent">
<!-- scatterplot -->
<div class="container">
<!-- scatterplot menu -->
<h2>Scatterplot</h2>
<p>Select dimensions to be displayed here:</p>
<div id="menu">
<form action="#">
<fieldset>
<label for="scatterX">x axis: </label>
<select name="scatterX" id="scatterX"></select>
<br />
<label for="scatterY">y axis: </label>
<select name="scatterY" id="scatterY"></select>
<br />
<label for="size">size: </label>
<select name="size" id="size"></select>
</fieldset>
</form>
</div>
<!-- scatterplot SVG -->
<div id="sp"></div>
</div>
<!-- radar chart -->
<div class="container">
<h2>Radar Chart</h2>
<!-- radar chart SVG -->
<div id="radar"></div>
<div id="legend"><b>Legend:</b><br /></div>
</div>
</div>
<!-- Tab 3 -->
<div id="Dashboard" class="tabcontent">
<h1>Global GDP per capita analysis</h1>
<div class="filter">
Select year to be displayed here:
<select id="yearFilter"></select>
</div>
<!-- TODO: The environment of your dashboard can be freely customized. Here is a general layout to get you started. -->
<!-- chart 1 -->
<div class="container">
<h2>Visualizing GDP per capita by Country</h2>
<p>
This map shows the GDP per capita levels of countries around the world. Countries
are shaded according to their GDP levels, providing a visual
representation of economic distribution globally.
</p>
<!-- radar chart SVG -->
<div id="chart1"></div>
</div>
<div class="control-panel">
<button id="play-button">▶ Play time-lapse</button>
<span> 1980</span>
<input type="range" id="year-slider" min="1980" max="2022" value="1980" step="1">
<span id="current-year">2022</span>
</div>
<!-- Grid container -->
<div class="dashboardGrid">
<!-- chart 2 -->
<div class="container">
<h2>Top 10 Countries by GDP per capita</h2>
<p>
This bar chart highlights the top 10 countries with the highest
nominal GDP per capita. It provides a quick comparison of the economic size of
these leading nations.
</p>
<!-- radar chart SVG -->
<div id="chart2"></div>
</div>
<!-- chart 3 -->
<div class="container">
<h2>GDP per capita trends over time</h2>
<p>
This line chart illustrates the GDP per capita trends over time for selected
countries. It allows for an analysis of economic growth and
fluctuations over the years.
</p>
<!-- radar chart SVG -->
<div id="chart3"></div>
</div>
<!-- chart 4 -->
<div class="container">
<h2>GDP per capita distribution by Continent</h2>
<p>
This pie chart shows the percentage of global GDP per capita each continent contributes. </p>
<!-- radar chart SVG -->
<div id="chart4"></div>
</div>
</div>
</div>
</body>
</html>