-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
91 lines (91 loc) · 2.79 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
<!DOCTYPE HTML5>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type=text/css href="project_report.css">
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://labratrevenge.com/d3-tip/javascripts/d3.tip.v0.6.3.js"></script>
<script type="text/javascript" src="gdp_vs_hdi.js"></script>
</head>
<body>
<div id="wrap">
<div id="nav"></div>
<h2 id="chart_title">
Relation between Economic and Human-Development Conditions
</h2>
<ul>
<li>Economic condition of a country is measured by its PPP adjusted per-capita
<a href="http://spreadsheets.google.com/pub?key=0AkBd6lyS3EmpdHo5S0J6ekhVOF9QaVhod05QSGV4T3c&output=xls">Gross Domestic Product (GDP)</a></li>
<li>Human-development condition of a country is measured by its
<a href="http://spreadsheets.google.com/pub?key=tyadrylIpQ1K_iHP407374Q&output=xls">Human Development Index (HDI)</a></li>
</ul>
<p>
</p>
<div id="main">
<fieldset class="country_legend">
<legend></legend>
</fieldset>
<br>
<div>
   
<span><strong>GDP Rank </strong></span>
           
           
           
           
       
<span><strong>HDI Rank</strong></span>
</div>
<script type="text/javascript">
/* Load CSV file and pass the contents of it to the draw function */
var left_indicator = 'GDP'
var right_indicator = 'HDI'
d3.csv("rank_gdp_hdi.csv", function(d) {
d['Year'] = +d['Year'];
d[right_indicator] = +d[right_indicator];
d[left_indicator] = +d[left_indicator];
return d;
}, draw);
</script>
<div class="tooltip" align="center">
<table>
<tr>
<td>Country</td>
<td id="country_field"></td>
</tr>
<tr>
<td>Region</td>
<td id="region_field"></td>
</tr>
<tr>
<td id="gdp_field"></td>
<td id="hdi_field"></td>
</tr>
</table>
</div>
</div>
<div id="sidebar">
<fieldset class="region_legend">
<legend>Countries with Uneven GDP & HDI</legend>
<div class="region_map">
</div>
</fieldset>
<br>
<br>
<div>
<p><strong>Select Year</strong></p>
<select class="year_select">
</select>
</div>
<div>
<p><strong>Select Region</strong></p>
<select class="region_select">
</select>
</div>
<br>
</div>
<div id="footer">
</div>
</div>
</body>
</html>