generated from com-480-data-visualization/com-480-project-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
257 lines (236 loc) · 13.1 KB
/
index.html
File metadata and controls
257 lines (236 loc) · 13.1 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible">
<title>Netflix Scrapers</title>
<link rel="stylesheet" href="css/style.css">
<script src="js/jquery-3.7.1.js"></script>
<script src="js/jquery.csv.js"></script>
<script src="https://d3js.org/d3.v6.js"></script>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<script src="js/d3-simple-slider.min.js"></script>
</head>
<body>
<main>
<!-- Netflix logo animation container -->
<div id="netflix-animation-container">
<!-- partial:index.partial.html -->
<div class="netflix-container"><svg width="867" height="233" viewBox="0 0 867 233" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="N">
<path id="N1-base" class="base" d="M0 232.8L37 227.8V101.6L35.1 0H0V232.8Z" />
<path id="N1-shadow" d="M0 232.8L37 227.8V101.6L35.1 0H0V232.8Z" fill="url(#N1-shadowFill)" />
<path id="N3-base" class="base" d="M82.6 0H119V218.4L82.6 222.3V0Z" />
<path id="N3-shadow" d="M82.6 0H119V218.4L82.6 222.3V0Z" fill="url(#N3-shadowFill" />
<path id="N2" class="base" d="M79.2 222.7L119 218.4L35.1 0H0L79.2 222.7Z" />
<defs>
<linearGradient id="N1-shadowFill" x1="50%" y1="0%" x2="50%" y2="100%" gradientUnits="userSpaceOnUse">
<stop class="shadow-start" offset="0%" />
<stop class="shadow-end" offset="100%" />
</linearGradient>
<linearGradient id="N3-shadowFill" x1="50%" y1="100%" x2="50%" y2="0%" gradientUnits="userSpaceOnUse">
<stop class="shadow-start" offset="0%" />
<stop class="shadow-end" offset="100%" />
</linearGradient>
</defs>
</g>
<g id="E">
<path id="E1-base" class="base" d="M255.1 171.6V208.2L153.6 215.8V178.5L255.1 171.6Z" />
<path id="E1-shadow" d="M255.1 171.6V208.2L153.6 215.8V178.5L255.1 171.6Z" fill="url(#E1-shadowFill)" />
<path id="E4" class="base" d="M239.9 85.2V121.2L153.6 121.5V85.6L239.9 85.2Z" />
<path id="E2-base" class="base" d="M190.1 213.1L153.6 215.8V0H190.1V213.1Z" />
<path id="E2-shadow" d="M190.1 213.1L153.6 215.8V0H190.1V213.1Z" fill="url(#E2-shadowFill)" />
<path id="E3" class="base" d="M255 0H153.6V36.4H255V0Z" />
<defs>
<linearGradient id="E1-shadowFill" x1="0%" y1="50%" x2="100%" y2="50%" gradientUnits="objectBoundingBox">
<stop class="shadow-start" offset="0%" />
<stop class="shadow-end" offset="100%" />
</linearGradient>
<linearGradient id="E2-shadowFill" x1="50%" y1="0%" x2="50%" y2="40%" gradientUnits="userSpaceOnUse">
<stop class="shadow-start" offset="0%" />
<stop class="shadow-end" offset="100%" />
</linearGradient>
</defs>
</g>
<g id="T">
<path id="T2-base" class="base" d="M317 0V204.6L353.4 203.2V0H317Z" />
<path id="T2-shadow" d="M317 0V204.6L353.4 203.2V0H317Z" fill="url(#T2-shadowFill)" />
<path id="T1" class="base" d="M391.7 0H278.7V36.4H391.7V0Z" />
<defs>
<linearGradient id="T2-shadowFill" x1="50%" y1="0%" x2="50%" y2="100%" gradientUnits="userSpaceOnUse">
<stop class="shadow-start" offset="0%" />
<stop class="shadow-end" offset="100%" />
</linearGradient>
</defs>
</g>
<g id="F">
<path id="F3" class="base" d="M501 84H415V120H501V84Z" />
<path id="F2-base" class="base" d="M414.8 0V202.2H451.8V0H414.8Z" />
<path id="F2-shadow" d="M414.8 0V202.2H451.8V0H414.8Z" fill="url(#F2-shadowFill)" />
<path id="F1" class="base" d="M516.8 0H414.8V36.4H516.8V0Z" />
<defs>
<linearGradient id="F2-shadowFill" x1="50%" y1="0%" x2="50%" y2="40%" gradientUnits="userSpaceOnUse">
<stop class="shadow-start" offset="0%" />
<stop class="shadow-end" offset="100%" />
</linearGradient>
</defs>
</g>
<g id="L">
<path id="L1-base" class="base" d="M540.5 0H576.9V205.9L540.5 204.1V0Z" />
<path id="L1-shadow" d="M540.5 0H576.9V205.9L540.5 204.1V0Z" fill="url(#L1-shadowFill)" />
<path id="L2" class="base" d="M540.5 167.5L639.5 173.1V209.1L540.5 204.1V167.5Z" />
<defs>
<linearGradient id="L1-shadowFill" x1="50%" y1="100%" x2="50%" y2="0%" gradientUnits="userSpaceOnUse">
<stop class="shadow-start" offset="0%" />
<stop class="shadow-end" offset="100%" />
</linearGradient>
</defs>
</g>
<path id="I" class="base" d="M669.2 0H705.7V214.3L669.2 211.2V0Z" />
<g id="X">
<path id="X2-base" class="base" d="M737 0L825.1 227.2L866.8 232.8L776.5 0H737Z" />
<path id="X2-shadow" d="M737 0L825.1 227.2L866.8 232.8L776.5 0H737Z" fill="url(#X2-shadowFill)" />
<path id="X1" class="base" d="M733.1 216.8L771.5 220.8L866.8 0H826.7L733.1 216.8Z" />
<defs>
<linearGradient id="X2-shadowFill" x1="0%" y1="10%" x2="80%" y2="100%" gradientUnits="objectBoundingBox">
<stop class="shadow-end" offset="0%" />
<stop class="shadow-start" offset="50%" />
<stop class="shadow-end" offset="100%" />
</linearGradient>
</defs>
</g>
</svg></div>
<script src='https://cdnjs.cloudflare.com/ajax/libs/gsap/3.2.6/gsap.min.js'></script>
<script src='js/MorphSVGPlugin3.min.js'></script>
<script src='js/CustomEase3.min.js'></script>
<script src="js/netflix-logo.js"></script>
</div>
<!-- Main content -->
<div class="container" id="main-content" style="display: none;">
<div id="menu-icon" onclick="animateMenuIcon(this)">
<div class="bar1"></div>
<div class="bar2"></div>
<div class="bar3"></div>
</div>
<div class="topnav">
<a class="nav-link active" href="#overview">Home</a>
<a class="nav-link" href="#viz1">Line Chart</a>
<a class="nav-link" href="#viz2">Actor/Director Network</a>
<a class="nav-link" href="#viz3">World Map</a>
<a class="nav-link" href="#viz4">Bar Chart & Bubble Chart</a>
</div>
<section id="overview" class="one">
<h1 class="NetflixScrapers">Netflix Scrapers</h1>
<h1 class="textOverview">Netflix is the most-subscribed video on demand streaming media service, with 269.6 million paid memberships in more than 190 countries as of April 2024. We will take you in a journey into the statistics of your favorite actors from netflix movies and shows, so that you can better grasp the essence of their success. </h1>
</section>
<section id="viz1" class="two">
<div class="viz-title-container">
<h1 class="title">
Line Chart
</h1>
</div>
<!--Placeholder to add comments later-->
<div class="viz-text-container white-text">
<text>
First, let us guide you through some basic statistics for a single actor/director. More specifically, we visualize the visualize the impact of an individual actor/director via a line chart. Switch between IMDb and TMDb scores to see if the movies were rated differently. Kindly note that since we keep track of movies and shows offered by Netflix, not all movies and shows starring the actor/director are listed.
</text>
</div>
<div class="viz-container centered white-text">
<!--IMDB/TMDB scores of an actor per year graph-->
<input type="radio" name="score_type_linechart" id="IMDB-linechart" value="IMDB" checked>
<label for="IMDB-linechart">IMDb</label>
<input type="radio" name="score_type_linechart" id="TMDB-linechart" value="TMDB">
<label for="TMDB-linechart">TMDb</label>
<div id="form-name">
<label class="label-name" for="individual">Name of actor/director:</label><br>
<input class="input-name" type="text" id="individual" name="individual" onkeyup="showResults(this.value)"><br>
<div id="search-results"></div>
</div>
<div id="viz_scores_per_year"></div>
</div>
</section>
<section id="viz2" class="three">
<div class="viz-title-container">
<h1 class="title">
Actor/Director Network
</h1>
</div>
<!--Placeholder to add comments later-->
<div class="viz-text-container white-text">
<text>
Next, we delve behind the scenes to analyze the actor’s/director's success in movies and shows with other actors/directors by using networks. Each purple node denotes a movie/show, while each blue node represents an actor/director. Hover over the blue nodes to see the name of the actor/director.
</text>
</div>
<div class="viz-container white-text centered">
<!--Circle graph with actor network-->
<input type="radio" name="score_type_network" id="IMDB-network" value="IMDB" checked>
<label for="IMDB-network">IMDb</label>
<input type="radio" name="score_type_network" id="TMDB-network" value="TMDB">
<label for="TMDB-network">TMDb</label>
<div id="viz_network"></div>
</div>
</section>
<section id="viz3" class="four">
<div class="viz-title-container">
<h1 class="title">
World Map
</h1>
</div>
<!--Placeholder to add comments later-->
<div class="viz-text-container white-text">
<text>
After focusing on an individual actor/director, let us now take a broader view to study the geographic distribution of actors' and directors' birthplaces across shows and movies in the Netflix dataset. Click on a country to see the exact distribution within a country. Red, dark circles indicate a large number of actors/directors origininating from that city. White, bright circles highlight a small number of individuals.
</text>
</div>
<div class="viz-container centered white-text">
<div id="world_map"></div>
</div>
<div class="slider-container">
<div id="slider"></div>
</div>
</section>
<section id="viz4" class="five">
<div class="viz-title-container">
<h1 class="title">
Bar Chart & Bubble Chart
</h1>
</div>
<!--Placeholder to add comments later-->
<div class="viz-text-container white-text">
<text>
To wrap up our website, our last visualization will take you to the heart of IMDb scores, breaking down the scores each year into various ranges to reveal the main tags that emerge in form of a bar chart and a bubble chart.
</text>
</div>
<div class="viz-container centered">
<div id="info"></div>
<div id="chart-container"></div>
<button id="back-button" onclick="showDaviz(getWindowData())" style="display:none;">Back to Bar Chart</button>
</div>
</section>
<footer>
<p>
Authors: Patrick Louis Aldover, Jérémy Chaverot, Jason Mina.
Project conducted in the framework of the course COM-480: Data Visualization at EPFL.
Spring 2024
</p>
</footer>
</div>
</main>
<script src="js/utils.js"></script>
<script src="js/viz-linechart.js"></script>
<script src="js/viz-network.js"></script>
<script src="js/worldmap.js"></script>
<script src="js/Barchart.js"></script>
<script src="js/index.js"></script>
<script>
function hideNetflixLogo() {
document.getElementById('netflix-animation-container').style.display = 'none';
document.getElementById('main-content').style.display = 'block'
}
// Animation timeline using GSAP
gsap.timeline()
.to('.netflix-container', { duration: 0.5, autoAlpha: 0, delay: 2, onComplete: hideNetflixLogo });
</script>
</body>
</html>