-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
56 lines (55 loc) · 1.7 KB
/
index.html
File metadata and controls
56 lines (55 loc) · 1.7 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
<!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">
<meta name="robots" content="noindex, nofollow" />
<link rel="shortcut icon" href="/shum-logo-1.svg" />
<title>D3 Dashboard</title>
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet">
<link rel="stylesheet" href="/style.css">
</head>
<body>
<div id="nav">
<h2>CO<sub>2</sub> Dashboard</h2>
<p>
Explore CO<sub>2</sub> emissions by year.
Current year: <span id="year-val"></span>
<input id="year" type="range" step="1">
</p>
<p>
Choose between total emission or emissions per capita.
</p>
<input id="emission" type="radio" name="data-type" value="emissions" checked>
<label for="emission">Emissions</label>
<input id="emissionPC" type="radio" name="data-type" value="emissionsPerCapita">
<label for="emissionPC">Emissions Per Capita</label>
</div>
<section class="container">
<div class="chart-container">
<svg
xmlns="http://www.w3.org/2000/svg"
id="map">
</svg>
</div>
<div class="chart-container right">
<svg
xmlns="http://www.w3.org/2000/svg"
id="pie">
</svg>
<svg
xmlns="http://www.w3.org/2000/svg"
id="bar">
</svg>
</div>
</section>
<div class="tooltip"></div>
<script src="https://d3js.org/d3.v4.js"></script>
<script src="https://unpkg.com/topojson@3"></script>
<script src="/pie.js"></script>
<script src="/bar.js"></script>
<script src="/map.js"></script>
<script src="/app.js"></script>
</body>
</html>