-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscene2.html
More file actions
72 lines (71 loc) · 2.49 KB
/
Copy pathscene2.html
File metadata and controls
72 lines (71 loc) · 2.49 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
<!DOCTYPE html>
<html>
<head>
<title>Scene 2: Safety Records from 1985-1999</title>
<link rel="stylesheet" href="scene2.css" />
</head>
<body>
<h1>Scene 2: Safety Records from 1985-1999</h1>
<p>
Airline crashes are a tragic event and sometimes the natural response when
hearing about one is to avoid flying that particular airline.
</p>
<p>
The same reaction may occur when a news story about an airline
experiencing delays or an on-flight incident occurs.
</p>
<p>
This visualization serves to illuminate whether there is a correlation
between airlines and flight incidents and fatalities.
</p>
<p>
One way to go about exploring this potential correlation is through
exploring two 30-year periods using the Aviation Safety Network's
database. <br />
If the correlation is persistent between these two periods, we could
possibly conclude that specific airlines may be prone to
crashes/incidents.
</p>
<p>
In the module below, you can explore the incidents, fatal accidents, and
fatalities for Airlines between 1985 - 1999. <br />
I've also provided some notable airlines in the table below to highlight
some airlines with relatively high incidents, accidents, and fatalities.
</p>
<br />
<hr />
<!-- Dropdown menu for airlines -->
<select id="airlineSelect">
<option value="" selected disabled>Select an airline</option>
<!-- Add options for each airline in the dataset -->
<!-- For example: <option value="Aer Lingus">Aer Lingus</option> -->
</select>
<!-- Bar chart for Scene 2 will be added here -->
<div class="chart-container">
<svg id="chart"></svg>
</div>
<p>
The higher an airline's "Rank", the closer it is to having the highest
incident, fatality, or fatal accident number.
</p>
<p></p>
<!-- Highest Incidents, Fatal Accidents, and Fatalities table -->
<h2>Highest Incidents, Fatal Accidents, and Fatalities</h2>
<table id="highestData">
<tr>
<th>Airline</th>
<th>Incidents</th>
<th>Fatal Accidents</th>
<th>Fatalities</th>
</tr>
</table>
<!-- Next scene button -->
<br />
<button onclick="window.location.href = 'index.html';">
Go to Home Page
</button>
<button id="nextSceneButton">Next Scene</button>
<script src="https://d3js.org/d3.v7.min.js"></script>
<script src="scene2.js"></script>
</body>
</html>