forked from SahandHamzehei/cnsdashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
510 lines (432 loc) · 18.9 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
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
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
<!DOCTYPE html>
<html lang='en'>
<head>
<!-- META -->
<meta charset='utf-8' />
<meta name='viewport' content='initial-scale=1, maximum-scale=1, user-scalable=no' />
<meta name="format-detection" content="telephone=no">
<!-- TITLE -->
<title>Pollution CNS Explorer</title>
<!-- STYLE SHEETS -->
<link href='https://fonts.googleapis.com/css?family=Montserrat:300,400,600' rel='stylesheet'>
<link rel='stylesheet' href='stylesheets/style.css' type='text/css' />
<link rel='stylesheet' href='stylesheets/d3.slider.css' type='text/css' />
<link rel='stylesheet' href='stylesheets/toggle.css' type='text/css' />
<link rel='stylesheet' href='stylesheets/skip.css' type='text/css' />
<!-- D3 -->
<script src='scripts/d3.min.js'></script>
<script src='scripts/d3.slider.js'></script>
<!-- MapBox -->
<script src='https://api.mapbox.com/mapbox-gl-js/v0.53.1/mapbox-gl.js'></script>
<link href='https://api.mapbox.com/mapbox-gl-js/v0.53.1/mapbox-gl.css' rel='stylesheet' />
</head>
<!-- Video part -->
<div class="bibi" id='bibi'></div>
<div class='video-view' id = 'video-view'>
<video id="myVideo" controls="controls" class="video">
<source src="data\V3.mp4" type="video/mp4">
</video>
<div class="back">
<!-- <span>SKIP</span> -->
<a class="mamad" id='tp'>skip</a>
</div>
</div>
<!-- Video part -->
<body>
<!-- HEADER -->
<div id='header'>
<!-- HEADER/ABOUT-LINK -->
<div id='about-link'>
<span class='desktop'>About</span>
</div>
<!-- HEADER/LEGEND-MOBILE -->
<div id='legend-mobile'></div>
<!-- HEADER/MODES -->
<div id='modes'>
<div class='mode-selected' id='mode-story'>
<span class='desktop'>Story</span>
<span class='mobile'>Story</span>
</div>
<div class='mode' id='mode-viz'>
<span class='desktop'>Visualization</span>
<span class='mobile'>Viz</span>
</div>
<div class='mode' id='mode-stats'>
<span class='desktop'>Statistics</span>
<span class='mobile'>Stats</span>
</div>
</div>
<!-- HEADER/TITLE -->
<div id='title'>
<span class='desktop'>Pollution CNS Explorer</span>
</div>
</div>
<!-- ABOUT -->
<div class='about' id='about'>
<!-- ABOUT/CLOSE -->
<div id = 'about-close'></div>
<!-- ABOUT/CONTENT -->
<div id='about-content'>
<!-- ABOUT/CONTENT/HEADER -->
<div id = 'about-header'>Can pollution link to Central Nervous System diseases?</div>
<!-- ABOUT/CONENT/TEXT -->
<div id = 'about-text'>
<p>
Neurodegeneration is a process of loss of structure or function of neurons such as the death of neurons. Many neurodegenerative diseases occur as a result of this process. The central nervous system (CNS) controls most functions of the body and the mind. CNS is affected by the neurodegeneration process and causes many disorders and diseases such as Alzheimer's, Parkinson's, and stroke.
</p>
<p>
Particulate matter or in short term PM are microscopic particulate of solid or liquid matter suspended in the air. Its source can be natural or caused by humans. They have an impact on the climate and precipitation which adversely affect human health. PM 2.5 refers to the size of the particulates with 2.5 micrometers or less. Recently, discoveries have found a link between pollution and CNS disease.
</p>
<p>
Our team aims to investigate this link by considering the pollution data and CNS disease based on the Italian province available from <a href='www.istat.it/it/ambiente-ed-energia?dati'>ISTAT database</a>.
</p>
<p>
The final results that are obtained by the data analysis is shown by this Dashboard. The dashboard has three main sections, the story mode, which shows insights about the distribution of CNS diseases and pollution in Italy, the visualization section, in which the user is freely allowed to explore the data, and the statistics mode in which relevant statistics are shown about the data, such as correlation between CNS and pollution, and regression results. </p>
</p>
<p>
The final results not confirm the link between CNS and pollution over the Italian territory, this couold be either due to the effective lack of a link, or to the lack of data to investigate it. </p>
</p>
<p>
Feel free to click around the map and to look with your eyes the most polluted cities in Italy, and the one which suffers more of CNS diseases, and the relation between the two. </p>
</p>
<!-- ABOUT/CONENT/TEXT/CREDITS -->
<div id='about-credits'>
<p>
<br/>Supervisor - <a href='https://www.det.polito.it/personale/scheda/(nominativo)/guido.pagana' target='_blank'>Guido Pagana</a>
<br/>Data Analysis - <a href='https://www.linkedin.com/in/luis-daniel-martinez-salgado-178b2a155' target='_blank'>Luis Martinez</a>, <a href='linkedin.com/in/mostafakarami' target='_blank'>Mostafa Karami</a>
<br/>Dashboard Development - <a href='www.linkedin.com/in/sahand-hamzehei' target='_blank'>Sahand Hamzehei</a>, <a href='https://www.linkedin.com/in/tommaso-cal%C3%B3-20509512a' target='_blank'>Tommaso Calò</a>
<br/>Map engine - <a href='https://www.mapbox.com/mapbox-gl-js/' target='_blank'>Mapbox GL JS</a>
<br/>Graphing engine - <a href='https://d3js.org' target='_blank'>D3.js</a>
<br/>Github - <a href='https://sahandhamzehei.github.io/cnsdashboard/' target='_blank'>@cnsdashboard</a>
</p>
</div>
</div>
</div>
</div>
<!-- SIDE BAR -->
<div id='sidebar'>
<!-- LEGEND -->
<div id='legend'>
<!-- LEGEND/CONTENT -->
<div id='legend-content'>
<div class='line'>CNS deaths count:</div>
<div class='line'>
<div class = 'av' id='pop_missing'>◼︎</div>
<div class='caption'>missing data </div>
</div>
<div class='line'>
<div class = 'av' id='pop_0'>◼︎</div>
<div class='caption'>0 - 10</div>
</div>
<div class='line'>
<div class = 'av' id='pop_100'>◼︎</div>
<div class='caption'>10 - 20</div>
</div>
<div class='line'>
<div class = 'av' id='pop_200'>◼︎</div>
<div class='caption'>20 - 40</div>
</div>
<div class='line'>
<div class = 'av' id='pop_400'>◼︎</div>
<div class='caption'>40 - 80</div>
</div>
<div class='line'>
<div class = 'av' id='pop_800'>◼︎</div>
<div class='caption'>80 - 160</div>
</div>
<div class='line'>
<div class = 'av' id='pop_1600'>◼︎</div>
<div class='caption'>160 - 320</div>
</div>
<div class='line'>
<div class = 'av' id='pop_3200'>◼︎</div>
<div class='caption'>320 - 640</div>
</div>
<div class='line'>
<div class = 'av' id='pop_6400'>◼︎</div>
<div class='caption'>640 - 1280</div>
</div>
<div class='line'>
<div class = 'av' id='pop_12800'>◼︎</div>
<div class='caption'>more than 1280</div>
</div>
</div>
<div id='legend-rel'>
<div class='line'>CNSd relative count:</div>
<div class='line'>
<div class = 'av' id='pop_missing'>◼︎</div>
<div class='caption'>missing data </div>
</div>
<div class='line'>
<div class = 'av' id='pop_0'>◼︎</div>
<div class='caption'>0 - 1</div>
</div>
<div class='line'>
<div class = 'av' id='pop_100'>◼︎</div>
<div class='caption'>1 - 2</div>
</div>
<div class='line'>
<div class = 'av' id='pop_200'>◼︎</div>
<div class='caption'>2 - 3</div>
</div>
<div class='line'>
<div class = 'av' id='pop_400'>◼︎</div>
<div class='caption'>3 - 4</div>
</div>
<div class='line'>
<div class = 'av' id='pop_800'>◼︎</div>
<div class='caption'>4 - 5</div>
</div>
<div class='line'>
<div class = 'av' id='pop_1600'>◼︎</div>
<div class='caption'>5 - 6</div>
</div>
<div class='line'>
<div class = 'av' id='pop_3200'>◼︎</div>
<div class='caption'>6 - 7</div>
</div>
<div class='line'>
<div class = 'av' id='pop_6400'>◼︎</div>
<div class='caption'>7 - 8</div>
</div>
<div class='line'>
<div class = 'av' id='pop_12800'>◼︎</div>
<div class='caption'>more than 8</div>
</div>
</div>
<div id='legend-pm'>
<div class='line'>PM2.5 levels (μg/m3):</div>
<div class='line'>
<div class = 'av' id='pop_missing'>◼︎</div>
<div class='caption'>missing data </div>
</div>
<div class='line'>
<div class = 'av' id='pop_0'>◼︎</div>
<div class='caption'>0 - 4</div>
</div>
<div class='line'>
<div class = 'av' id='pop_100'>◼︎</div>
<div class='caption'>4 - 8</div>
</div>
<div class='line'>
<div class = 'av' id='pop_200'>◼︎</div>
<div class='caption'>8 - 12</div>
</div>
<div class='line'>
<div class = 'av' id='pop_400'>◼︎</div>
<div class='caption'>12 - 16</div>
</div>
<div class='line'>
<div class = 'av' id='pop_800'>◼︎</div>
<div class='caption'>16 - 20</div>
</div>
<div class='line'>
<div class = 'av' id='pop_1600'>◼︎</div>
<div class='caption'>20 - 24</div>
</div>
<div class='line'>
<div class = 'av' id='pop_3200'>◼︎</div>
<div class='caption'>24 - 28</div>
</div>
<div class='line'>
<div class = 'av' id='pop_6400'>◼︎</div>
<div class='caption'>28 - 32</div>
</div>
<div class='line'>
<div class = 'av' id='pop_12800'>◼︎</div>
<div class='caption'>more than 32</div>
</div>
</div>
</div>
<!-- NEIGHBORHOOD FILTER -->
<div id='cbs' class='desktop'>
<!-- NEIGHBORHOOD/CONTENT -->
<div id='cbs-content'>
<div class='line'>Visible Regions:</div>
<div class='line'>
<input type='checkbox' id='cb1' class='cbn' checked>
<span> Piemonte</span>
</div>
<div class='line'>
<input type='checkbox' id='cb2' class='cbn' checked>
<span> Valle d'Aosta</span>
</div>
<div class='line'>
<input type='checkbox' id='cb3' class='cbn' checked>
<span> Lombardia</span>
</div>
<div class='line'>
<input type='checkbox' id='cb4' class='cbn' checked>
<span> Trentino-Alto Adige</span>
</div>
<div class='line'>
<input type='checkbox' id='cb5' class='cbn' checked>
<span> Veneto</span>
</div>
<div class='line'>
<input type='checkbox' id='cb6' class='cbn' checked>
<span> Friuli-Venezia Giulia</span>
</div>
<div class='line'>
<input type='checkbox' id='cb7' class='cbn' checked>
<span> Liguria</span>
</div>
<div class='line'>
<input type='checkbox' id='cb8' class='cbn' checked>
<span> Emilia-Romagna</span>
</div>
<div class='line'>
<input type='checkbox' id='cb9' class='cbn' checked>
<span> Toscana</span>
</div>
<div class='line'>
<input type='checkbox' id='cb10' class='cbn' checked>
<span> Umbria</span>
</div>
<div class='line'>
<input type='checkbox' id='cb11' class='cbn' checked>
<span> Marche</span>
</div>
<div class='line'>
<input type='checkbox' id='cb12' class='cbn' checked>
<span> Lazio</span>
</div>
<div class='line'>
<input type='checkbox' id='cb13' class='cbn' checked>
<span> Abruzzo</span>
</div>
<div class='line'>
<input type='checkbox' id='cb14' class='cbn' checked>
<span> Molise</span>
</div>
<div class='line'>
<input type='checkbox' id='cb15' class='cbn' checked>
<span> Campania</span>
</div>
<div class='line'>
<input type='checkbox' id='cb16' class='cbn' checked>
<span> Puglia</span>
</div>
<div class='line'>
<input type='checkbox' id='cb17' class='cbn' checked>
<span> Basilicata</span>
</div>
<div class='line'>
<input type='checkbox' id='cb18' class='cbn' checked>
<span> Calabria</span>
</div>
<div class='line'>
<input type='checkbox' id='cb19' class='cbn' checked>
<span> Sicilia</span>
</div>
<div class='line'>
<input type='checkbox' id='cb20' class='cbn' checked>
<span> Sardegna</span>
</div>
</div>
</div>
<!-- STATSLEGEND -->
<div id='statslegend'>
<!-- STATSLEGEND CONTENT -->
<div id='statslegend-content'>
<div class='line'>Correlation coefficient between PM2.5 and CNS deaths</div>
<div class='line'>
<div class = 'av' id='diff_n4000'>◼︎</div>
<div class='caption'>more than 0.9</div>
</div>
<div class='line'>
<div class = 'av' id='diff_n2000'>◼︎</div>
<div class='caption'>0.6 to 0.8</div>
</div>
<div class='line'>
<div class = 'av' id='diff_n1000'>◼︎</div>
<div class='caption'>0.2 to 0.6</div>
</div>
<div class='line'>
<div class = 'av' id='diff_n500'>◼︎</div>
<div class='caption'>0 to 0.2</div>
</div>
<div class='line'>
<div class = 'av' id='diff_500'>◼︎</div>
<div class='caption'>-0.2 to 0</div>
</div>
<div class='line'>
<div class = 'av' id='diff_2000'>◼︎</div>
<div class='caption'>-0.4 to -0.2</div>
</div>
<div class='line'>
<div class = 'av' id='diff_4000'>◼︎</div>
<div class='caption'>-0.6 to -0.4</div>
</div>
<div class='line'>
<div class = 'av' id='diff_12000'>◼︎</div>
<div class='caption'>-0.8 to -0.6</div>
</div>
<div class='line'>
<div class = 'av' id='diff_32000'>◼︎</div>
<div class='caption'>less than -0.8</div>
</div>
</div>
</div>
</div>
<!-- STATS-INFO -->
<div id='info' class='desktop'>
<!-- INFO/HEADER -->
<div id='info-header'></div>
<!-- INFO/CONTENT -->
<div id='info-content'>
<!-- NTA-POPULATION-GRAPH-->
<div id='info-popgraph'></div>
<!-- NTA-TYPE-METRIC -->
<div id='info-ntatype' class='param'>
<div id='info-ntatype-value' class='param-value'></div>
<div id='info-ntatype-caption' class='param-caption'>Import/Export Type:</div>
</div>
<!-- NTA-MINPOP-METRIC -->
<div id='info-ntaflux' class='param'>
<div id='info-ntaflux-value' class='param-value'></div>
<div id='info-ntaflux-caption' class='param-caption'>Daytime Change:</div>
</div>
</div>
</div>
<div id='tg'>
<div class="center">
<h3> Absolute </h3>
<input type="checkbox" id="switch" /><label for="switch">Toggle</label>
<h3> Relative </h3>
</div>
</div>
<!-- STORY MODE -->
<div id = 'storymode'>
<!-- STORY MODE/HEADER -->
<div id = 'storymode-header'>The Visualization of Central Nervous System disease and PM2.5 in Italy.</div>
<!-- STORY MODE/CONTENT -->
<div id = 'storymode-content'>
<p>This dashboard shows the connection between CNS disease and PM values in Italy. It is known from research that pollution has harmful effects that can lead to a variety of diseases. The majority of evidence on the connection between dust and health has focused on lung and cardiovascular diseases. The effects of air pollution on the central nervous system (CNS), on the other hand, are a more recent discovery.
Each of the following stories, supports the visualization that shows the most relevant, or curious statistics about the distribution of the pollution level and central nervous system diseases in italian provinces.</p>
</div>
<!-- STORY MODE/CONTROLS -->
<div class = 'noselect' id = 'storymode-controls'>
<!-- STORY MODE/CONTROLS/PAGE -->
<i class='arrow left' id = 'story-back'></i>
<span id = 'storymode-controls-numbers'>1 of 15</span>
<i class='arrow right' id = 'story-forward'></i>
</div>
</div>
<!-- CONTROLS -->
<div id = 'controls'>
<div id='slider-area-t'>
<div id='slider-t'></div>
</div>
<div id='slider-area-b'>
<div id='slider-b'></div>
</div>
</div>
<!-- MB Map -->
<div id='map'></div>
<!-- JS-MANPOP -->
<script src='scripts/manpop.js'></script>
<script src='scripts/manpop_graphs.js'></script>
<script src='scripts/manpop_story.js'></script>
</body>
</html>