-
Notifications
You must be signed in to change notification settings - Fork 0
/
sustainablelivelihood.html
96 lines (89 loc) · 3.89 KB
/
sustainablelivelihood.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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>Sustainable livelihood outcomes</title>
<script src="js/d3.v3.js" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="css/dotplots.css" />
<link href="css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
<h2>Sustainable livelihood outcomes</h2>
<div class="row">
<div id="changedata" class="col-md-6">
<h3>Select data</h3>
<select id="indicatorselect" class="form-control" onchange="changetoind(this)">
<option value="">- Select an indicator -</option>
<option value="Tradrel">Influence in trade relations</option>
<option value="Markacc">Market access</option>
<option value="Voice">Voice of farmers</option>
<option value="Accserv">Access to service</option>
<option value="Resshock">Resilience to shocks</option>
<option value="Statauto">State of autonomy</option>
<option value="Socinteg">Social integration</option>
<option value="Sustapp">Sustainable approach</option>
<option value="Resclim">Resilience to climate change</option>
<option value="Accfood">Access to food</option>
</select>
<button onclick="movebubbels()" class="btn btn-default btn-block">2013 >></button>
</div>
<div id="highlight" class="col-md-6">
<h3>Highlight chains</h3>
<select id="regionselect" class="form-control" onchange="filter(this)">
<option value="">- Select a region -</option>
<option value="Asia">Asia</option>
<option value="East-Africa">East-Africa</option>
<option value="Latin-America">Latin-America</option>
<option value="West-Africa">West-Africa</option>
</select>
<select id="countryselect" class="form-control" onchange="filter(this)">
<option value="">- Select a country -</option>
<option value="Benin">Benin</option>
<option value="Burkina">Burkina Faso</option>
<option value="Congo">Congo</option>
<option value="Ecuador">Ecuador</option>
<option value="Gambia">Gambia</option>
<option value="Honduras">Honduras</option>
<option value="Indonesia">Indonesia</option>
<option value="Nicaragua">Nicaragua</option>
<option value="Niger">Niger</option>
<option value="Senegal">Senegal</option>
<option value="Peru">Peru</option>
<option value="Tanzania">Tanzania</option>
<option value="Togo">Togo</option>
<option value="Uganda">Uganda</option>
<option value="Vietnam">Vietnam</option></option>
</select>
<select id="commodityselect" class="form-control" onchange="filter(this)">
<option value="">- Select a commodity -</option>
<option value="Banana">Banana</option>
<option value="Beans">Beans</option>
<option value="Cacao">Cacao</option>
<option value="Cashew">Cashew</option>
<option value="Cassava">Cassava</option>
<option value="Coffee">Coffee</option>
<option value="Fonio">Fonio</option>
<option value="Groundnuts">Groundnuts & mais</option>
<option value="Maize">Maize</option>
<option value="Niébé">Niébé</option>
<option value="Sesam">Sesam</option>
<option value="Quinoa">Quinoa</option>
<option value="Rice">Rice</option>
<option value="Sugar">Sugar</option>
<option value="Tea">Tea</option>
<option value="Vegetables">Vegetables</option>
</select>
</div>
</div>
<div id="container" style="height: 800px; width: 600px; text-align: center; ">
<div id="graphtitle"><h3><span id="indicatortitle">Influence in trade relations</span> in <span id="yeartitle">2010</span></h3></div>
<div id="graphsubtitlecontainer"><p id="graphsubtitle">To what extend can farmers negotiate with buyers (on volumes, price setting, quality, delivery schedules…)?</p></div>
<div id="textdata" style="float: right;"></div>
<div id="vis" style="width: 600px; text-align: left;"></div>
</div>
<script type="text/javascript" src="js/dotplots.js"></script>
</script>
</div>
</body>
</html>