-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
75 lines (65 loc) · 1.64 KB
/
index.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
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css">
<style>
svg {
display: block;
margin: 0 auto;
}
h1 { margin-bottom: 2rem; }
body {
padding-top: 2rem;
padding-bottom: 2rem;
}
h3 {
margin-top: 3rem;
margin-bottom: 1rem;
}
.container {
max-width: 46rem;
}
img.block {
display: block;
border: solid #333 1p;
margin: 0 auto;
}
.axis line, .axis path {
stroke-width: 0.5;
stroke: #999;
}
</style>
</head>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-12">
<h1>Events in D3</h1>
<p class="alert alert-warning small">You'll need to run a <strong>local web server</strong> to make this work. Start with <code>python</code>, then we'll move to <code>parcel</code>.</p>
<p>This page also exists with <a href="solo.html">just the graphic</a></p>
</div>
</div>
<div class="row mt-3">
<div class="col-3">
<p>
Maybe we are just interested in
Africa,
Asia, or
S. America
</p>
<div id="info" style="display: none">
<p><strong id="name"></strong> has a life expectancy of
<span id="life"> </span>and a per-capita gDP of
<span id="GDP"></span></p>
</div>
</div>
<div class="col-9">
<div id="chart"></div>
</div>
</div>
<!-- Now we include our actual visualization -->
<script src="graph.js"></script>
</div>
</body>
</html>