forked from yangzhihao519/ivis-project2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
219 lines (198 loc) · 9.96 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<!DOCTYPE html>
<html>
<head>
<title>How does Education Influence Values of Chinese in recent years?</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.9.4/css/bootstrap-select.min.css">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
</head>
<body>
<!-- header -->
<div class="jumbotron">
<div class="row">
<div class="col-md-2"> </div>
<div class="col-md-8">
<h1>How does Education Influence Values of Chinese in recent years?</h1>
<p>This interactive graph below demostrates how do people in China with different education level value differently towards multiple factors(family, friends, work, leisure time, politics and religion) in their lives from 1995 to 2014 with a keep growing total GDP in this country.</p>
</div>
<div class="col-md-2"> </div>
</div>
</div>
<!-- year selection -->
<div class="row">
<div class="col-md-2"> </div>
<div class="col-md-8" style="text-align: center">
<div id="year_period_menu">
<br>
Select Period of Years:
<select class="selectpicker">
<option value="YR1995-1999">1995-1999</option>
<option value="YR2000-2004">2000-2004</option>
<option value="YR2005-2009">2005-2009</option>
<option value="YR2010-2014">2010-2014</option>
</select>
</div>
</div>
<div class="col-md-2"> </div>
</div>
<!-- value selection -->
<div class="row">
<div class="col-md-2"> </div>
<div class="col-md-8" style="text-align: center">
<div id="value_menu">
<br>
<label class="checkbox-inline">
<input type="checkbox" id="FML" onclick="familyLight()"> Family
</label>
<label class="checkbox-inline">
<input type="checkbox" id="FRD" onclick="friendsLight()"> Friends
</label>
<label class="checkbox-inline">
<input type="checkbox" id="WK" onclick="workLight()"> Work
</label>
<label class="checkbox-inline">
<input type="checkbox" id="LSTM" onclick="leisureTimeLight()"> Leisure Time
</label>
<label class="checkbox-inline">
<input type="checkbox" id="PLTCS" onclick="politicsLight()"> Politics
</label>
<label class="checkbox-inline">
<input type="checkbox" id="RLG" onclick="religionLight()"> Religion
</label>
</div>
</div>
<div class="col-md-2"> </div>
</div>
<!-- display svg -->
<div class="row">
<div class="col-md-2"> </div>
<div class="col-md-8" id="display_svg" style="text-align: center">
</div>
<div class="col-md-2"> </div>
</div>
<!-- index of x axis -->
<div class="row">
<div class="col-md-2"> </div>
<div class="col-md-8" >
<div class="row">
<div class="col-md-2"> </div>
<div class="col-md-8" >
<ul class="list-group">
<li class="list-group-item"><b>Y: Percentage of People who Think "X" is Important in Their Lives</b></li>
<li class="list-group-item"><b>X: Highest Education Attained</b>
<ul>
<li>1 = No formal education</li>
<li>2 = Complete primary school</li>
<li>3 = Complete secondary school: technical/ vocational type</li>
<li>4 = Complete secondary school: university-preparatory type</li>
<li>5 = University level education, with degree</li>
</ul>
</li>
<li class="list-group-item"><b>Line thickness: Total GDP (PPP$, inflation-adjusted)</b></li>
</ul>
<br>
</div>
<div class="col-md-2"> </div>
</div>
<hr/>
</div>
<div class="col-md-2"> </div>
</div>
<!-- trail 1 -->
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-8">
<h2>Analytic Trail 1</h2>
<br/>
<h3>Data processing</h3>
<p>Process the data from WVS, get the data of different "Highest Educations Attained" and the data of how are different values important in life for Chinese in the year period of 2010-2014. Show percentages of column exluding DK/NA.</p>
<div style="text-align: center">
<img src="images/data_family.png" style="width:500px;">
</div>
<div style="text-align: center">
(use "family" as an example)
</div>
<br/>
<h3>Visual mapping</h3>
<p>Use WVS online analysis tool to illustrate histograms for each of the values.</p>
<div style="text-align: center">
<img src="images/graph_family.png" style="width:500px;">
</div>
<div style="text-align: center">
(use "family" as an example)
</div>
<br/>
<h3>Insights</h3>
<p>1. Chinese values family and friends very much no matter what education he/she attained.</p>
<p>2. The higher education one attained, the more he/she will think work, leisure time and politics are important.</p>
<p>3. The lower education one attained, the more he/she will think religion is important.</p>
<br/>
<br/>
<h3>Limitations of WVS online visualization tools</h3>
<p>1. Cannot view data of different values in one graph.</p>
<p>2. Cannot compare the data within different years in one graph.</p>
<p>3. The axis is not updated dynamically based on the data in the histogram graph.</p>
<br/>
<hr/>
</div>
</div>
<!-- trail 2 -->
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-8">
<h2>Analytic Trail 2</h2>
<br/>
<h3>Data processing</h3>
<p>Get the data of different "Highest Educations Attained" and the data of how are different values important in life for Chinese in the year period from 1995 to 2014. Sum up the percentages of “Very important” and “Rather important” for one kind of value within one education level. The result is shown below.</p>
<div style="text-align: center">
<img src="images/data_2010_2014_China.png" style="width:600px;">
</div>
<div style="text-align: center">
(use 2010-2014 as an example)
</div>
<p>Take the data of <a href="https://docs.google.com/spreadsheets/d/16rpYapnUDKQXJIdUT_QWuuYH83dLBgbFQC3GfRO8OQY/pub?gid=0">Total GDP (PPP$, inflation-adjusted) for China from Gapminder</a> . Calculate the average number of the periods 1995-1999, 2000-2004, 2005-2009, 2010-2014.</p>
<br/>
<h3>Visual mapping and visual structure</h3>
<p>Map the data into lines with markers on a 2D graph with different colors indicating different values.</p>
<div style="text-align: center">
<img src="images/graph_2010_2014_China.png" style="width:600px;">
</div>
<div style="text-align: center">
(use 2010-2014 as an example)
</div>
<p>Map the average GDP into the width of the lines.</p>
<p>The data of different year periods if showed by selecting the dropdown menu.</p>
<br/>
<h3>View transformations</h3>
<p>Use <a href="http://bl.ocks.org/nsonnad/4175202">a D3.js example</a> as the model to show the animated transition of data within two year periods, which is shown at the beginning of this page.</p>
<br/>
<h3>Insights</h3>
<p>1. With time advancing and total GDP growing, people show a decreased focus on politics.</p>
<p>2. With time advancing and total GDP growing, people show increased focuses on leisure time and friends. </p>
<p>3. Chinese people care about families and friends very much all the time regardless their education levels.</p>
<p>4. Chinese people care relatively less about religion all the time regardless their education levels.</p>
<p>5. Chinese people have a more and more balanced view towards work and leisure time.</p>
<br/>
<br/>
</div>
</div>
<!-- footer -->
<div class="jumbotron">
<div class="row">
<div class="col-md-2"> </div>
<div class="col-md-8">
<p>This is the Project 2 for Information Visualization 2016 at KTH Royal Institute of Technology. </p>
<p>The aim of the project is to try to visualize the world through its own worldview with data from <a href="http://www.worldvaluessurvey.org/">World Value Survey</a> and <a href="http://www.gapminder.org/">Gapminder</a> by using <a href="https://d3js.org/">D3.js</a>.</p>
<p>Project Code can be found here: <a href="https://github.com/yangzhihao519/ivis-project2">github.com/yangzhihao519/ivis-project2</a></p>
<p>By Zhihao Yang: <a href="http://yangzhihao.info">yangzhihao.info</a></p>
</div>
<div class="col-md-2"> </div>
</div>
</div>
<script type="text/javascript" src="http://d3js.org/d3.v2.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.9.4/js/bootstrap-select.min.js"></script>
<script type="text/javascript" src="scripts.js"></script>
</body>
</html>