-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlineChartFinal.html
122 lines (110 loc) · 5.4 KB
/
lineChartFinal.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
<!doctype html>
<meta charset="utf-8">
<!-- Load d3.js -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://d3js.org/d3.v4.js"></script>
<script type="text/javascript" src="/4021project/chart.js"></script>
<style>
.header {
padding: 40px;
text-align: center;
background: #1abc9c;
color: white;
font-size: 30px;
}
body {
font-family: Arial;
margin: 0;
font-size: 13px;
}
</style>
<div id="throbber" style="display:none; min-height:120px;"></div>
<div id="noty-holder"></div>
<div id="wrapper">
<!-- Navigation -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
</div>
<!-- Top Menu Items -->
<ul class="nav navbar-right top-nav">
<li style="display: flex, flex-direction: row, align-items: center" id="names"> Ahmad Usama </li>
<li style="display: flex, flex-direction: row, align-items: center" id="names"> Hinna Hussain , </li>
<li style="display: flex, flex-direction: row, align-items: center" id="names"> Tanmay Bhanushali , </li>
</ul>
<!-- Sidebar Menu Items - These collapse to the responsive navigation menu on small screens -->
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav side-nav">
<li>
<a href="/4021project"><i class="fa fa-fw fa"></i> General Overview <i class="fa fa-fw fa"></i></a>
</li>
<li>
<a href="/4021project/piechart+bar.html" ><i class="fa fa-fw fa"></i>Trend in Air Pollution<i class="fa fa-fw fa"></i></a>
</li>
<li>
<a href="/4021project/lineChartFinal.html" ><i class="fa fa-fw fa"></i>Air Pollutants Concentration<i class="fa fa-fw fa"></i></a>
</li>
<li>
<a href="/4021project/chloropleth.html"><i class="fa fa-fw fa"></i> Chloropleth Graph(World Map Rating)</a>
</li>
<li>
<a href="/4021project/conclusion.html"><i class="fa fa-fw fa"></i> Conclusion</a>
</li>
<li>
<a href="/4021project/about.html"><i class="fa fa-fw fa"></i> About</a>
</li>
</ul>
</div>
</nav>
<script src="https://d3js.org/d3-scale-chromatic.v1.min.js"></script>
<!-- <div id="my_dataviz"></div> -->
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>COVID Pollution Dashboard</title>
</head>
<body>
<div class="header">
<h1>Air Pollutant Dashboard</h1>
<p class="lead">
This graph visualizes the change in the concentration of primary air pollutants in major cities across the world.
</p>
</div>
<p>Press <b>select</b> to rescale the axes. </p>
<select id="selectButton1" name = "Countries">Countries
<option disabled selected value> Select a Country </option>
<option value="/4021project/Data/christchurch.csv">Christchurch</option>
<option value="/4021project/Data/hong kong.csv">Hong Kong</option>
<option value="/4021project/Data/london.csv">London</option>
<option value="/4021project/Data/los angeles.csv">Los Angeles</option>
<option value="/4021project/Data/mumbai.csv">Mumbai</option>
<option value="/4021project/Data/rome.csv">Rome</option>
<option value="/4021project/Data/sao paulo.csv">Sao Paulo</option>
<option value="/4021project/Data/seoul.csv">Seoul</option>
<option value="/4021project/Data/tehran.csv">Tehran</option>
<option value="/4021project/Data/wuhan.csv">Wuhan</option>
</select>
<div class="container">
<select id="selectButton">
<option value="co">CO</option>
<option value="pm10">pm10</option>
<option value="pm25">pm25</option>
</select>
<button onclick="draw()">Select</button>
<div class="row">
<div class="col" id="my_dataviz">
</div>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script src="chart.js"></script>
</body>
</html>