-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvisualization2.html
254 lines (217 loc) · 8.46 KB
/
visualization2.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Electricity Generated by Nuclear Reactors - Visualization Protocol</title>
<link rel="stylesheet" href="styles.css">
<style>
body {
padding-top: 20px; /* Adds space at the top of the body */
}
header {
display: flex; /* Use flexbox for layout */
justify-content: space-between; /* Space between items */
align-items: center; /* Center items vertically */
margin-bottom: 1px; /* Adds space below the header */
padding: 0 40px; /* Adds horizontal padding */
}
h1 {
margin: 0; /* Remove default margin from h1 */
}
.back-button {
display: inline-block;
padding: 10px 20px;
background-color: #64ffda; /* Light teal background */
color: #000; /* Black text */
text-decoration: none; /* Remove underline */
border-radius: 5px; /* Rounded corners */
font-weight: bold; /* Bold text */
transition: background-color 0.3s, transform 0.3s; /* Smooth transition */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow effect */
}
.back-button:hover {
background-color: #50e0c0; /* Darker teal on hover */
transform: translateY(-2px); /* Slight lift effect */
}
section {
margin: 20px 0; /* Adds vertical space between sections */
padding: 15px; /* Adds padding inside each section */
}
.data-sources-list {
list-style-type: disc; /* Use disc bullets */
padding-left: 20px; /* Add padding to the left for indentation */
margin: 10px 0; /* Add vertical margin for spacing */
}
.data-sources-list li {
margin-bottom: 5px; /* Add space between list items */
font-size: 16px; /* Adjust font size for better readability */
}
.dataset-link {
color: #64ffda;
text-decoration: none;
position: relative;
padding-right: 20px;
font-weight: 500;
transition: all 0.3s ease;
}
.dataset-link:after {
content: '↗';
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
font-size: 14px;
transition: transform 0.3s ease;
}
.dataset-link:hover {
color: #50e0c0;
}
.dataset-link:hover:after {
transform: translate(2px, -50%);
}
/* Mobile-friendly adjustments */
@media screen and (max-width: 768px) {
header {
flex-direction: column;
gap: 1rem;
text-align: center;
padding: 20px;
}
h1 {
font-size: 1.8rem;
margin-bottom: 15px;
}
.back-button {
width: 100%;
text-align: center;
margin-bottom: 10px;
}
section {
padding: 15px 10px;
margin: 15px 0;
}
p {
font-size: 0.95rem;
line-height: 1.6;
}
.data-sources-list {
padding-left: 15px;
}
.data-sources-list li {
font-size: 0.95rem;
margin-bottom: 8px;
}
/* Dataset links adjustments for mobile */
.dataset-link {
display: block;
margin: 10px 0;
padding-right: 25px;
}
.dataset-link:after {
right: 5px;
}
/* Add some breathing room */
main {
padding: 10px;
}
footer {
padding: 15px;
font-size: 0.9rem;
}
}
/* Additional adjustments for very small screens */
@media screen and (max-width: 480px) {
h1 {
font-size: 1.5rem;
}
h2 {
font-size: 1.3rem;
}
.back-button {
padding: 8px 16px;
font-size: 0.9rem;
}
}
/* Improve touch targets for mobile */
@media (hover: none) {
.back-button,
.dataset-link {
padding: 12px 20px; /* Larger touch target */
margin: 8px 0;
}
.dataset-link:after {
font-size: 16px; /* Larger arrow for touch */
}
}
</style>
</head>
<body>
<header>
<h1>Electricity Generation (TWh)</h1>
<nav>
<a href="index.html" class="back-button">Back to Main Page</a>
</nav>
</header>
<main>
<section>
<h2>Timestamp</h2>
<p>
2000 - 2023
</p>
</section>
<section>
<h2>Data Source</h2>
<p>
The dataset used for this visualizaiton contains yearly electricity generation, capacity, emissions, import and demand data for over 200 geographies. Data is collected from multi-country datasets (EIA, Eurostat, BP, UN, WhiteHouse) as well as national sources (e.g China data from the National Bureau of Statistics).
This yearly electricity data is kept up to date throughout the year and is regularly amended with the latest available data. The data is updated twice a month with an update in the first week of the month followed by a second update in the third week of the month. </p>
</section>
<section>
<h2>Dataset Link</h2>
<p>
<a href="https://ember-energy.org/data/yearly-electricity-data/" class="dataset-link">Go To Webpage</a><br>
<a href="https://storage.googleapis.com/emb-prod-bkt-publicdata/public-downloads/yearly_full_release_long_format.csv" class="dataset-link back-button1" download>Download Dataset</a>
</p>
</section>
<section>
<h2>Metadata Link</h2>
<p>
<a href="https://github.com/Axeeh/Nuclear_Energy/blob/main/metadata/Racechart_metadata.txt" class="dataset-link">Racechart (Meta) </a><br>
</p>
</section>
<section>
<h2>Pre-Processing Steps</h2>
<ol>
<li>Filtered data only for <code>Electricity</code> and <code>Nuclear Energy</code>.</li>
<li>Grouped by <code>country</code> and <code>year</code>.</li>
<li>Saved the data in a CSV file.</li>
</ol>
</section>
<section>
<h2>Visualization</h2>
<ul>
<li><strong>Tool Used</strong>: flourish</li>
<li><strong>Chart Type</strong>: Race chart</li>
<li><strong>Description</strong>:
<p>
Displays the generation of electricity through Nuclear Reactors for each country.
</p>
</li>
</ul>
</section>
<section>
<h2>Insights</h2>
<p>
This bar chart animation illustrates the progression of electricity generation from nuclear reactors (measured in TWh) across various countries from 2000 to 2023. It highlights the dynamic shifts in rankings, the leading contributors, and the evolving role of nuclear power in global energy production. The visualization aims to showcase trends, regional disparities, and the growing or declining reliance on nuclear energy over time, providing a clear and engaging perspective on the global energy landscape. </p>
</section>
<section>
<h2>Conclusion</h2>
<p>
The best one, from the 2000 to the 2023 is always the USA, with an average around the 775 TWh per year, meanwhile for the second position there is for 20 years the France, but from the 2020 the second best is the China, who from 2000 to 2013 was neither in the top 5. In all the 24 years, the continent with the most states in the top 10 is Europe. </p>
</section>
</main>
<footer>
<p>© Carnevale Cattoni Schillaci</p>
</footer>
</body>
</html>