-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (42 loc) · 1.02 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
<!DOCTYPE html>
<meta charset='utf-8'>
<style>
body {
font-family: "Open Sans", sans-serif;
}
svg {
font: 13px "Open Sans", sans-serif;
}
.years {
font-size: 15px;
}
.desc {
font-size: 16px;
}
.lines path {
fill: none;
stroke: black;
stroke-width: 1.1;
}
#description {
width: 300px;
float: left;
}
</style>
<body>
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Open+Sans" />
<script src="//d3js.org/d3.v3.min.js"></script>
<script src="d3.slopegraph.js"></script>
<script src="exit_polls.js"></script>
<script>
d3.csv('data/exit_polls_tidy.csv', parseRow, ready);
</script>
<div id="description">
<h3>Why did Clinton lose?</h3>
<p id='commentary'>Per CNN exit polls, we can see that Clinton underperformed Obama in the vast majority of categories.</p>
<p>One of the most striking examples is Ohio, where Clinton did worse in every category, except for Latinos.</p>
To dig deeper, select a state:
<select id="states"></select>
</div>
<div id="graph" />
</body>