-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
225 lines (201 loc) · 8.78 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Aer Studios</title>
<!-- Tooltips -->
<script src="https://unpkg.com/@popperjs/core@2"></script>
<script src="https://unpkg.com/tippy.js@6"></script>
<!-- Apache echarts -->
<script
src="https://cdnjs.cloudflare.com/ajax/libs/echarts/5.4.0/echarts.min.js"
integrity="sha512-LYmkblt36DJsQPmCK+cK5A6Gp6uT7fLXQXAX0bMa763tf+DgiiH3+AwhcuGDAxM1SvlimjwKbkMPL3ZM1qLbag=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/echarts-gl/2.0.8/echarts-gl.min.js"></script>
<script
type="text/javascript"
src="https://cdn.jsdelivr.net/npm/echarts@4.9.0/map/js/world.js"
></script>
<script
type="text/javascript"
src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/95368/china.js"
></script>
<!-- Packages for globe.gl -->
<script src="//unpkg.com/d3"></script>
<script src="//unpkg.com/polished@3.5.2/dist/polished.js"></script>
<script src="//unpkg.com/globe.gl"></script>
<script src="https://unpkg.com/d3@7.6.1/dist/d3.min.js"></script>
<script src="https://unpkg.com/d3-dsv@3.0.1/dist/d3-dsv.min.js"></script>
<!-- Mapping data vis -->
<script src="https://unpkg.com/deck.gl@latest/dist.min.js"></script>
<script src="https://unpkg.com/deck.gl@latest/dist.min.js"></script>
<!-- optional if mapbox base map is needed -->
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0/mapbox-gl.js"></script>
<link
href="https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.0/mapbox-gl.css"
rel="stylesheet"
/>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/d3/7.6.1/d3.min.js"
integrity="sha512-MefNfAGJ/pEy89xLOFs3V6pYPs6AmUhXJrRlydI/9wZuGrqxmrdQ80zKHUcyadAcpH67teDZcBeS6oMJLPtTqw=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<link
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css"
rel="stylesheet"
/>
<link rel="stylesheet" href="/style/main.css" />
<!-- Animate things (letters and shapes) -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/2.0.2/anime.min.js"></script>
<!-- Theme for echarts -->
<script src="/theme/vintage.js"></script>
<!-- some data in a js var for chart 2 and 3 -->
<script src="/data/chart2.js"></script>
<script src="/data/chart3.js"></script>
<!-- this is where the charts are created, 1 for each lib -->
<script src="/js/chartInit.js"></script>
<!-- this is still the echarts lib, just this is a bit big-->
<script src="/js/chartMap.js"></script>
<script src="/js/deckInit.js"></script>
<script src="/js/globeInit.js"></script>
</head>
<body>
<div class="container">
<h1 class="ml1">
<span class="text-wrapper">
<span class="line line1"></span>
<span class="letters">AER STUDIOS</span>
<span class="line line2"></span>
</span>
</h1>
<div class="graph-container">
<h2 class="chart-title">Unique Users</h2>
<div class="counter" data-target="28123245"></div>
<span class="counter-text">5000+ Requests per second</span>
</div>
<!-- Prepare a DOM with a defined width and height for ECharts -->
<div class="graph-container">
<a id="chart1button">
<i class="fa fa-question"></i>
</a>
<h2 class="chart-title">Station listeners</h2>
<div id="chart1" class="chart-item"></div>
</div>
<div class="graph-container">
<h2 class="chart-title">Station Reach</h2>
<div id="chart2" class="chart-item"></div>
</div>
<div class="graph-container">
<h2 class="chart-title">Basic Bar Chart</h2>
<div id="chart3" class="chart-item"></div>
</div>
<div class="graph-container">
<h2 class="chart-title">Listeners by device</h2>
<div id="chart4" class="chart-item"></div>
</div>
<div class="graph-container">
<h2 class="chart-title">Listeners by device</h2>
<div id="chart5" class="chart-item"></div>
</div>
<div class="graph-container">
<h2 class="chart-title">Basic Bar Chart</h2>
<div id="chart6" class="chart-item"></div>
</div>
<div class="graph-container">
<h2 class="chart-title">Basic Bar Chart</h2>
<div id="chart7" class="chart-item"></div>
</div>
<div class="graph-container">
<h2 class="chart-title">Station Reach</h2>
<div id="chartMap" class="chart-item"></div>
</div>
<div class="graph-container">
<h2 class="chart-title">Basic Bar Chart</h2>
<div id="deck1" class="chart-item">
<div id="control-panel">
<div>
<label>Radius</label>
<input
id="radius"
type="range"
min="1000"
max="20000"
step="1000"
value="1000"
/>
<span id="radius-value"></span>
</div>
<div>
<label>Coverage</label>
<input
id="coverage"
type="range"
min="0"
max="1"
step="0.1"
value="1"
/>
<span id="coverage-value"></span>
</div>
<div>
<label>Upper Percentile</label>
<input
id="upperPercentile"
type="range"
min="90"
max="100"
step="1"
value="100"
/>
<span id="upperPercentile-value"></span>
</div>
</div>
<div class="select">
<select
id="country-select"
name="country-select"
onchange="deck1(this.options[this.selectedIndex].value)"
>
<option value="uk" selected>UK</option>
<option value="de">Germany</option>
</select>
</div>
</div>
</div>
<div class="graph-container">
<h2 class="chart-title">3D Bar Chart</h2>
<div id="chart-container" style="width: 1000px;height:400px;"></div>
</div>
<div class="graph-container">
<h2 class="chart-title">Basic Bar Chart</h2>
<span id="dayofweek"></span>
<div id="globe1" class="chart-item"></div>
</div>
</div>
<script>
numbers1();
title();
chart1(); //weekly timeline
chart2(); //coffee lexicon
chart3(chart3data.data); //country income
chart4(); //line with shared pie chart
chart5(); //pie chart with material
chart6(); //infographic with trees
chart7(); //bar chart using svg
chartMap();
const selectOptions = document.getElementById("country-select");
deck1(selectOptions[selectOptions.selectedIndex].value);
globe1();
chart8();
// With the above scripts loaded, you can call `tippy()` with a CSS
// selector and a `content` prop:
tippy("#chart1button", {
content:
"Displaying station / region activity throughout the day",
});
</script>
</body>
</html>