-
Notifications
You must be signed in to change notification settings - Fork 0
/
stats.html
248 lines (210 loc) · 16.3 KB
/
stats.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
<!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" content="ie=edge" />
<link rel="stylesheet" href="stats.css" />
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<link rel = "icon" href = "icon.jpg" type = "image/x-icon">
<title>Climatist - Statistics</title>
</head>
<body>
<section class="content">
<header>
<nav id="navbar" class="sticky">
<div class="logo">
<text><a href="index.html">Climatist</a></text>
</div>
<a href="#" class="toggle-button">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</a>
<div class="menu-items">
<ul>
<li><a href=articles.html>Articles</a></li>
<li><a href=stats.html class="active">Statistics</a></li>
<li><a href=help-out.html>Help Out</a></li>
<li><a href=about.html>About Me</a></li>
</ul>
</div>
</nav>
</header>
<div class="container">
<div class="intro" id="navpad">
<h1>Effects of Climate Change</h1>
<p>Climate Change, if not dealt with promptly, is said to be the cause for a potential doomsday.
<strong>Why is this so?</strong> Since the 1980s, average surface temperatures have been on a rise which has led to global warming. “Global temperatures rose about <a href="https://www.noaa.gov/education/resource-collections/climate/climate-change-impacts" target="_blank" rel="noopener noreferrer">1.98°F (1.1°C)</a> from 1901 to 2020, but climate change refers to more than an increase in temperature.” <br><br>
Natural disasters like droughts, floods, and hurricanes are estimated to be of a higher intensity; these would cause a ripple effect leading to a large section of the population being prone to poverty. United Nations found that an estimated <a href="https://www.un.org/en/climatechange/science/causes-effects-climate-change" target="_blank" rel="noopener noreferrer">23.1 million</a> people were displaced due to events related to Climate Change. <br><br>
Even though these details may seem intimidating, <a href="https://climate.nasa.gov/faq/16/is-it-too-late-to-prevent-climate-change/" target="_blank" rel="noopener noreferrer">NASA</a> has stated that “it <strong>may not be too late</strong> to avoid or limit some of the worst effects of climate change” if we can follow the right path.
</p>
</div>
<div class="q1"><br>
<h1>How can Data Visualization help <br> Combat Climate Change?</h1>
<p>One of the goals of Climatist is to display the changes that our environment has undergone since the 20th century.<strong> Why?</strong> Studies have found that data displayed in the graphic form can have certain cognitive advantages including <a href="https://infogram.com/blog/why-data-from-charts-and-infographics-stick-in-your-brain/" target="_blank" rel="noopener noreferrer">expanding the limited human memory and ensuring what is remembered is the relevant information</a>.<br><br>
Climatist aims to make use of this human ability so that people are able to retain and, thus, share critical information about Climate Change.
</p>
</div>
</div>
</section>
<h1 id="graphhead">Some Noteworthy Graphs:</h1><br><br>
<p id="graphintro">
Combustion of fossil fuels for various industrial activities causes carbon dioxide emissions which trap the heat in the atmosphere, hence, causing global warming.<br><br>
As a result of increased CO2 emissions, average surface temperatures across the globe have increased. <br><br>
The graphs given below consider one of the many causes of climate change. <br>
Click the link given below the graphs to see more.
</p>
<section class="graphs">
<div class="charts">
<div class="graph">
<div class="chart">
<canvas id="myChart1"></canvas>
<script>
let myChart1 = document.getElementById('myChart1').getContext('2d');
let massPopChart1 = new Chart (myChart1, {
type: 'bar',
data:{
labels:['INDIA','MACAO','BRAZIL','BHUTAN','PANAMA','MEXICO','UK','HUNGARY','ITALY','CHINA','GERMANY', 'POLAND','JAPAN','ICELAND','IRAN', 'GREENLAND','RUSSIA','CANADA ','US'],
datasets:[{
label: 'C02 Emissions',
data: [1.7694, 1.9447,2.1988, 2.4953, 2.4983, 2.7686, 4.8549, 4.9973, 5.0249, 7.4117, 7.6901, 7.916, 8.1499, 8.6036, 8.8702, 9.061, 10.8072, 14.1969, 14.2379
]
}]
},
options: {}
});
</script>
</div>
<div class="written">
<p id="p1">The graph shows CO2 Emissions (in tonnes per capita) by various countries in 2020.<br><br>
2020 was a year that was beyond any of our imaginations. Even when the entire world seemed to be locked down, carbon emissions by countries like the US still reached nearly 14 tonnes per capita. <br><br>
This much carbon dioxide is one of the main factors in the rising temperatures across the globe.
</p><br>
</div>
</div>
<div class="graph">
<div class="chart">
<canvas id="myChart2"></canvas>
<script>
var xValues = [1901, 1902, 1903, 1904, 1905, 1906, 1907, 1908, 1909, 1910, 1911, 1912, 1913, 1914, 1915, 1916, 1917, 1918, 1919, 1920, 1921, 1922, 1923, 1924, 1925, 1926, 1927, 1928, 1929, 1930, 1931, 1932, 1933, 1934, 1935, 1936, 1937, 1938, 1939, 1940, 1941, 1942, 1943, 1944, 1945, 1946, 1947, 1948, 1949, 1950, 1951, 1952, 1953, 1954, 1955, 1956, 1957, 1958, 1959, 1960, 1961, 1962, 1963, 1964, 1965, 1966, 1967, 1968, 1969, 1970, 1971, 1972, 1973, 1974, 1975, 1976, 1977, 1978, 1979, 1980, 1981, 1982, 1983, 1984, 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017]
let myChart2 = document.getElementById('myChart2').getContext('2d');
let massPopChart2 = new Chart (myChart2, {
type: 'line',
data:{
labels: xValues,
datasets:[{
label:"India",
data: [33.41, 33.73, 32.91, 32.64, 33.32, 34.11, 32.68, 33.02, 33.06, 33.51, 33.78, 33.3, 33.07, 33.23, 34.2, 33.43, 31.93, 33.37, 33.38, 32.19, 35.84, 34.69, 33.23, 32.35, 32.56, 32.4, 32.58, 34.1, 33.68, 33.03, 33.46, 32.61, 32.05, 33.29, 34.24, 33.93, 33.49, 33.99, 33.97, 33.29, 33.84, 33.82, 32.68, 34.23, 33.61, 33.61, 34.02, 33.77, 33.08, 33.22, 33.03, 33.18, 34.07, 33.9, 32.12, 33.66, 32.58, 33.11, 33.3, 33.57, 33.11, 33.08, 32.89, 33.44, 32.86, 33.66, 33.22, 33.14, 33.1, 34.22, 32.88, 33.48, 34.01, 33.16, 33.82, 33.58, 32.45, 34.49, 33.36, 34.44, 33.9, 32.98, 33.18, 34.2, 34.01, 33.28, 32.88, 33.95, 33.63, 32.74, 33.65, 33.25, 34.14, 34.03, 34.45, 33.69, 33.36, 34.5, 33.26, 34.23, 34.96, 35.08, 34.12, 33.23, 33.57, 34.09, 34.05, 33.86, 34.09, 34.43, 34.33, 34.3, 34.46, 33.77, 34.09, 35.72, 35.84
],
borderColor:"red",
borderWidth: 2,
backgroundColor: "white",
fill: false},
{
label: "USA",
data:[18.365, 18.638, 17.403, 17.949, 18.337, 18.219, 17.257, 17.895, 18.643, 18.243, 19.57, 17.551, 18.731, 19.133, 17.743, 17.62, 17.806, 19.596, 18.615, 18.076, 19.506, 19.154, 18.438, 18.679, 19.242, 18.768, 18.142, 17.503, 18.241, 18.587, 19.565, 18.85, 19.805, 19.58, 18.199, 19.983, 18.913, 18.718, 18.855, 19.261, 18.519, 18.511, 19.049, 18.735, 17.245, 18.725, 17.784, 18.81, 18.612, 18.408, 17.843, 19.656, 19.755, 18.885, 17.528, 19.444, 19.162, 18.729, 19.573, 18.864, 19.164, 18.445, 18.599, 18.574, 17.768, 18.61, 18.446, 18.754, 18.272, 18.803, 19.337, 18.57, 18.945, 18.66, 18.198, 18.448, 19.741, 18.872, 18.514, 18.939, 19.467, 17.84, 18.284, 19.035, 18.462, 19.789, 19.63, 20.021, 18.698, 19.78, 19.335, 18.477, 18.459, 19.964, 18.469, 19.513, 19.042, 18.771, 18.912, 19.294, 19.357, 20.052, 18.871, 19.228, 19.511, 19.933, 19.705, 19.381, 18.962, 19.885, 19.578, 19.954, 20.198
],
borderColor:"orange",
borderWidth: 2,
backgroundColor: "white",
fill:false
},
{
label: "China",
data:[17.654, 17.503, 16.949, 18.31, 17.504, 17.96, 17.424, 17.765, 16.686, 17.143, 17.243, 17.902, 17.214, 18.377, 17.269, 17.574, 17.967, 17.188, 17.819, 17.444, 16.63, 17.783, 17.47, 17.848, 17.974, 17.496, 17.333, 17.789, 17.768, 17.159, 17.686, 17.934, 17.993, 17.449, 17.756, 17.624, 17.45, 17.262, 17.512, 17.885, 18.472, 18.41, 17.744, 18.039, 18.529, 18.286, 17.732, 18.065, 17.737, 17.359, 18.068, 18.034, 18.197, 17.164, 17.75, 17.459, 17.346, 17.831, 17.405, 17.832, 18.469, 17.559, 17.699, 17.278, 17.677, 17.758, 17.634, 17.737, 17.135, 17.249, 17.662, 17.999, 17.494, 17.379, 17.979, 16.916, 17.498, 18.267, 17.922, 18.004, 18.201, 17.438, 17.169, 17.853, 17.568, 18.049, 17.415, 18.345, 17.467, 18.192, 18.004, 17.22, 17.599, 18.31, 18.426, 17.752, 17.997, 18.462, 18.468, 18.493, 18.593, 18.738, 18.086, 18.159, 19.03, 18.417, 18.807, 18.462, 18.412, 18.649, 18.73, 18.236, 18.636
],
borderColor:"yellow",
borderWidth: 2,
backgroundColor: "white",
fill:false
}
]
},
options: {
elements: {
point:{
radius: 1
}
}
}
});
</script>
</div>
<div class="written">
<p id="p2">
This graph shows the rise in average surface temperatures (in Celsius) in India, USA, and China from 1901 to 2017. <br><br>
India has one of the highest surface temperatures in the world. With heat warnings issued regularly, we are in dire need of effective strategies to deal with individual effects of Climate Change.
</p><br>
</div>
</div>
<div class="graph">
<div class="chart">
<canvas id="myChart3"></canvas>
<script>
var xValues = [1960, 1961, 1962, 1963, 1964, 1965, 1966, 1967, 1968, 1969, 1970, 1971, 1972, 1973, 1974, 1975, 1976, 1977, 1978, 1979, 1980, 1981, 1982, 1983, 1984, 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018]
let myChart3 = document.getElementById('myChart3').getContext('2d');
let massPopChart3 = new Chart (myChart3, {
type: 'line',
data:{
labels: xValues,
datasets:[{
label:"India",
data: [0.267634188, 0.283703708, 0.305850957, 0.321794976, 0.308168697, 0.332527209, 0.337039496, 0.330973864, 0.352457485, 0.35118733, 0.351488938, 0.362529742, 0.374899181, 0.377193439, 0.381064005, 0.404751113, 0.413696987, 0.427724734, 0.424114076, 0.434690107, 0.449266666, 0.473644451, 0.477490561, 0.50527683, 0.506132025, 0.543976973, 0.57055617, 0.595939661, 0.629950476, 0.676937713, 0.644102026, 0.681429666, 0.693121231, 0.703544619, 0.727526089, 0.768837675, 0.790663149, 0.82074131, 0.823779815, 0.870943498, 0.88982752, 0.887330155, 0.903241998, 0.913962074, 0.962435743, 0.991399583, 1.041839796, 1.129216789, 1.185904772, 1.288080997, 1.349214466, 1.408315593, 1.507820975, 1.535560059, 1.649327519, 1.641198393, 1.648359053, 1.7191902, 1.799825446
],
borderColor:"yellow",
borderWidth: 2,
backgroundColor: "white",
fill: false},
{
label: "USA",
data:[1.170381372, 0.836046901, 0.661428164, 0.640001899, 0.625646054, 0.665524211, 0.710891382, 0.574162147, 0.605451997, 0.725149509, 0.942934535, 1.042239697, 1.080676637, 1.098195691, 1.097367111, 1.250124095, 1.285283136, 1.388842897, 1.52920111, 1.542675099, 1.495250749, 1.460431817, 1.566739684, 1.629055908, 1.75044806, 1.871054791, 1.939434257, 2.038410689, 2.150905225, 2.153077911, 1.914542564, 2.000547455, 2.07574444, 2.243245307, 2.31902906, 2.560366185, 2.517251858, 2.543462797, 2.602487248, 2.513859675, 2.648479977, 2.772929198, 2.974328335, 3.425411363, 3.951800629, 4.463473752, 4.906034996, 5.302594688, 5.431610495, 5.79534426, 6.332165911, 6.902792141, 7.058003472, 7.320485052, 7.252919144, 7.169112177, 7.118705414, 7.225768991, 7.405211347
],
borderColor:"orange",
backgroundColor: "white",
borderWidth: 2,
fill:false
},
{
label: "China",
data:[15.99977916, 15.68125552, 16.0139375, 16.48276215, 16.96811858, 17.45172525, 18.12107301, 18.59831788, 19.08938916, 19.85794566, 21.11125227, 20.98020348, 21.74864198, 22.51058213, 21.50293038, 20.40222407, 21.15761537, 21.53248401, 21.97300469, 21.78043698, 20.78648774, 19.76676417, 18.59049523, 18.57154371, 18.97675027, 18.88231274, 18.72072272, 19.35033442, 20.01041341, 20.07576978, 19.40922912, 19.00573561, 19.02508245, 19.2381088, 19.28061081, 19.25393761, 19.61109008, 20.34787297, 20.26688031, 20.10571961, 20.4719331, 20.17500468, 19.44947847, 19.50870471, 19.60357288, 19.478026, 18.9576435, 19.05602695, 18.29480563, 16.81886848, 17.43419587, 16.59940374, 15.77114462, 16.10295784, 16.02637907, 15.53534211, 15.13174682, 14.80588242, 15.24087458
],
borderColor:"red",
backgroundColor: "white",
borderWidth: 2,
fill:false
}
]},
options: {
elements: {
point:{
radius: 1
}
}
}});
</script>
</div>
<div class="written">
<p id="p3">
This graph shows CO2 Emissions (in tonnes per capita) by India, China, and USA from 1960 to 2018.<br><br>
Humans have made a lot of progress from where we started. Countries have become conscious of their carbon footprint, but this level is still extremely high and we need to unite to bring in change so we can help our planet heal.
</p>
</div>
</div>
</section>
<p id="more"><a href="https://www.climate.gov/maps-data/climate-data-primer/visualizing-climate-data" target="_blank" rel="noopener noreferrer">Go here to view more..</a></p>
<div class="footer-basic">
<footer>
<ul class="list-inline">
<li class="list-inline-item"><a href="index.html">Home</a></li>
<li class="list-inline-item"><a href="articles.html">Articles</a></li>
<li class="list-inline-item"><a href="stats.html">Statistics</a></li>
<li class="list-inline-item"><a href="help-out.html">Help Out</a></li>
<li class="list-inline-item"><a href="about.html">About Me</a></li>
</ul>
<p class="copyright">Climatist © 2022</p>
</footer>
</div>
<script src="app.js"></script>
</body>
</html>