-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
148 lines (125 loc) · 3.4 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
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
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="jquery.csv.min.js"></script>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script language="javascript" type="text/javascript" src="sketch.js"></script>
<!-- <div id="sankey_multiple" style="margin: auto; width: 1160px; height: 680px; padding: 30px;"></div> -->
<div id="sankey_multiple" style="margin: auto; padding: 30px;"></div>
<div id="title">
2015 People killed by police
</div>
<div id="info">
<strong><a href="https://www.theguardian.com/us-news/ng-interactive/2015/jun/01/about-the-counted" style="color: #cecece">2015 People killed by police</a></strong> <span class="bull">•</span> Created by <a href="http://qianqian-ye.com/" style="color: #b3ecec">Qianqian Ye </a> <span class="bull">•</span> Data acquired from <a href="https://interactive.guim.co.uk/2015/the-counted/thecounted-data.zip" style="color: #cecece">The Guardian</a>
</div>
<div id="label_Age">
Age
</div>
<div id="label_Race">
Race
</div>
<div id="label_Gender">
Gender
</div>
<div id="label_Armed">
Armed
</div>
<div id="label_Classification">
Classification
</div>
<div id="label_State">
State
</div>
<title>2015 People killed by police</title>
<meta charset="utf-8">
<style type="text/css">
html {
height: 100%;
}
body {
background-color: #000000;
font-size: 18px;
color: #ffffff;
font-family: sans-serif;
font-size: 13px;
line-height: 20px;
height: 100%;
}
#sankey_multiple {
width: 100%;
height: 80%;
}
#info {
font-size: 13px;
position: absolute;
bottom: 5px;
background-color: rgba(0,0,0,0.8);
border-radius: 3px;
right: 10px;
padding: 10px;
}
#title {
position: absolute;
top: 20px;
width: 270px;
left: 20px;
background-color: rgba(0,0,0,0.2);
border-radius: 3px;
font: 22px Georgia;
padding: 10px;
}
/*// -----------Label style place holder, still in progress....-----------// */
#label_Age{
font-size: 16px;
position: absolute;
width: 20%;
bottom: 10%;
left: 3%;
border-radius: 3px;
}
#label_Race{
font-size: 16px;
position: absolute;
width: 20%;
bottom: 10%;
left: 22%;
border-radius: 3px;
}
#label_Gender{
font-size: 16px;
position: absolute;
width: 20%;
bottom: 10%;
left: 40%;
border-radius: 3px;
}
#label_Armed{
font-size: 16px;
position: absolute;
width: 20%;
bottom: 10%;
left: 58%;
border-radius: 3px;
}
#label_Classification{
font-size: 16px;
position: absolute;
width: 20%;
bottom: 10%;
left: 72%;
border-radius: 3px;
}
#label_State{
font-size: 16px;
position: absolute;
width: 20%;
bottom: 10%;
left: 97%;
border-radius: 3px;
}
</style>
</head>
<body>
</body>
</html>