-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
157 lines (155 loc) · 5.39 KB
/
index.html
File metadata and controls
157 lines (155 loc) · 5.39 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
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
<!DOCTYPE html>
<html lang = "en">
<head>
<meta charset ="utf-8">
<link rel="stylesheet" type="text/css" href="css/styles.css">
<script type="text/javascript" src="scripts/d3.v4.min.js"></script>
<style>
#legendContainer{
position:absolute;
top:60px;
left:10px;
overflow: auto;
height:490px;
width:110px;
}
#legendContainer2{
position:absolute;
top:60px;
left:10px;
overflow: auto;
height:490px;
width:110px;
}
#legendContainer3{
position:absolute;
top:60px;
left:10px;
overflow: auto;
height:490px;
width:110px;
}
#mainBanner{
position:absolute;
overflow: auto;
top:10px;
left:300px;
}
#globeBanner{
position:absolute;
overflow: auto;
top: 550px;
left: 30px;
height: 300px;
width: 110px;
}
#chordBanner{
position:absolute;
overflow: auto;
top: 1000px;
left: 1480px;
height: 600px;
width: 310px;
}
.banner{
font-size: 16px;
}
#legend{
width:90px;
height:200px;
}
#legend2{
width:90px;
height:200px;
}
#legend3{
width:90px;
height:200px;
}
}
.legend {
font-size: 12px;
font-weight: normal;
text-anchor: left;
}
.legendcheckbox{
cursor: pointer;
}
#inds{
position:absolute;
top:10px;
left:10px;
}
#inds2{
position:absolute;
top:40px;
left:10px;
}
#inds3{
position:absolute;
top:10px;
left:700px;
}
</style>
<body>
<select id="inds">
<option value="none" selected="selected" onclick= 'filterLand("none")'>Region: None</option>
<option value="1" onclick= 'filterLand("1")'>North America</option>
<option value="2" onclick= 'filterLand("2")'>South America</option>
<option value="3" onclick= 'filterLand("3")'>Europe</option>
<option value="4" onclick= 'filterLand("4")'>Africa</option>
<option value="5" onclick= 'filterLand("5")'>Asia</option>
<option value="6" onclick= 'filterLand("6")'>Oceania</option>
</select>
<select id="inds2">
<option value="none" selected="selected" onclick= 'filterRelig("none")'>Religion: None</option>
<option value="0" onclick= 'filterRelig("0")'>Catholic</option>
<option value="1" onclick= 'filterRelig("1")'>Other Christian</option>
<option value="2" onclick= 'filterRelig("2")'>Muslim</option>
<option value="3" onclick= 'filterRelig("3")'>Buddhist</option>
<option value="4" onclick= 'filterRelig("4")'>Hindu</option>
<option value="5" onclick= 'filterRelig("5")'>Ethnic</option>
<option value="6" onclick= 'filterRelig("6")'>Marxist</option>
<option value="7" onclick= 'filterRelig("7")'>Other Religions</option>
</select>
<select id="inds3">
<option value="none" selected="selected" onclick= 'filterColor("none")'>Color: None</option>
<option value="1" onclick= 'filterColor("red")'>Red</option>
<option value="2" onclick= 'filterColor("green")'>Green</option>
<option value="3" onclick= 'filterColor("blue")'>Blue</option>
<option value="4" onclick= 'filterColor("gold")'>Gold</option>
<option value="5" onclick= 'filterColor("white")'>White</option>
<option value="6" onclick= 'filterColor("black")'>Black</option>
<option value="7" onclick= 'filterColor("orange")'>Orange</option>
</select>
<div class='container'>
<div class='row'>
<div id="legendContainer" class="legendContainer">
<svg id="legend"></svg>
</div>
</div>
<div id="mainBanner" class = "banner">Flags around the world: An analysis </div>
<div id="globeBanner" class = "banner">Globe: Shows countries around the world. Red: Matches filtering. </div>
<div id="chordBanner" class = "banner">Chord Chart: Uses an algorithm to find similarities (currently set to 50% of the row data having that attribute), and finds which other rows have similarities with it, sorting in descending order clockwise (the countries with the most similarities will have their ribbons be the first clockwise). Currently has several issues with the filtering, largely caused by me implementing it initially without enter() update() exit() structure, and not having the time to refactor. Still visible that it takes input from the filters via trying to filter by color. </div>
</div>
<svg width="40%" height = "800" id = "sliders" style = "float:left; background-color: lightgrey"></svg>
<svg width="60%" height = "800" id = "parallelCoords" style = "float: right; background-color: lightgrey"></svg>
<svg width="25%" height= "800" id = "moreText" style = "float:left; background-color: lightgrey"></svg>
<svg width="75%" height= "800" id = "chordChart" style = "float:right; background-color: lightgrey"></svg>
<svg width="100%" height= "50" id = "pageBottom"></svg>
<svg width="35%" height = "500" id = "globe" style = "position: absolute; transform: translate(-265%,-1500px); stroke = none"></svg>
</div>
</div>
<script type="text/javascript" src="scripts/updates.js"></script>
<script type="text/javascript" src="scripts/filters.js"></script>
<script type="text/javascript" src="scripts/graphs/globe-related/queue.v1.min.js"></script>
<script type="text/javascript" src="scripts/graphs/globe-related/topojson.v1.min.js"></script>
<script type="text/javascript" src="scripts/graphs/globe.js"></script>
<script type="text/javascript" src="scripts/graphs/sliders.js"></script>
<script type="text/javascript" src="scripts/graphs/chordChart.js"></script>
<script type="text/javascript" src="scripts/graphs/parallelCoords.js"></script>
<script>
//Here's where we run the code to start drawing our graphs.
callUpdate();
</script>
<body>