-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCP2016.html
510 lines (437 loc) · 28.8 KB
/
CP2016.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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head>
<title> Country Profile 2016: at a glance </title>
<link rel="icon" type="image/jpg" href="icon.png" />
<!-- Style -->
<link rel="stylesheet" type="text/css" href="CSS style.css" />
<script src="DesignSpecifications.json"></script>
<!-- JS libraries -->
<script src="d3\d3.min.js"></script>
<!-- JS functions -->
<script src="functions.js" type="text/javascript" ></script>
<!-- Data -->
<script src = "Africa_Low.json"></script>
<script src = "data.json"></script>
</head>
<body>
<div class="All">
<p style = "font-size:15px; margin: 0px;"> <a href = "CP2016 FR.html"> Reports in French </a> </p>
<div class = "All Title">
<div class = "TitleText">
<h1 style = "font-size:30px; margin: 15px 0px 15px 0px"> COUNTRY PROFILE </h1>
</div>
<div class = "TitleYear">
<h1 style = "font-size:30px; margin: 15px 0px 15px 0px"> 2016 </h1>
</div>
</div>
<div class = "All Selection">
<p style = "font-size:15px; font-weight: bold"> Select country : </p>
<div class ="StyledSelect" >
<select id = "SelectCountry" style = "font-family: Helvetica">
<option value="DZA" selected = "selected"> Algeria </option>
<option value="AGO"> Angola </option>
<option value="BDI"> Burundi </option>
<option value="CPV"> Cabo Verde </option>
<option value="CAF"> Central African Republic </option>
<option value="TCD"> Chad </option>
<option value="DJI"> Djibouti</option>
<option value="GNQ"> Equatorial Guinea </option>
<option value="GAB"> Gabon </option>
<option value="GMB"> The Gambia </option>
<option value="GHA"> Ghana </option>
<option value="MDG"> Madagascar</option>
<option value="MWI"> Malawi </option>
<option value="MRT"> Mauritania </option>
<option value="MUS"> Mauritius </option>
<option value="MOZ"> Mozambique </option>
<option value="NGA"> Nigeria </option>
<option value="SOM"> Somalia </option>
<option value="ZAF"> South Africa </option>
<option value="SWZ"> Swaziland </option>
<option value="TUN"> Tunisia </option>
</select>
</div>
<p style = "font-size:15px;"> <a href = "http://www.uneca.org/publications/country-profiles-2016"> Full report download </a> </p>
</div>
<div class = "MainSection">
<div class = "CountryInfo">
<div class = "CountryInfo Ranking">
<h1 style = "font-size: 60px; margin:0px; margin-bottom:20px; color: #0D598E;" id = "SelectedCountry"> </h1>
<div class = "ColumnStyle">
<svg width = "550px" height = "40px" >
<rect x = "0" y = "0" width = "200" height = "30" fill = "#0D7DBC" />
<circle cx = "180" cy = "15" r = "5" fill = "#C7C8CA"> </circle>
<path d = "M180,15 L230,15 Z" fill = "none" stroke = "#C7C8CA" stroke-width = "2"> </path>
<text x = "240" y = "20" font-size="15" font-weight= "bold" text-anchor= "first"> Human Development Index (2015)</text>
<text id = "RankingHDI" x = "160" y = "22.5" font-size="20" text-anchor= "end" font-weight= "bold" fill = "white"> </text>
</svg>
<svg width = "550px" height = "40px" >
<rect x = "0" y = "0" width = "200" height = "30" fill = "#0D7DBC" />
<circle cx = "180" cy = "15" r = "5" fill = "#C7C8CA"> </circle>
<path d = "M180,15 L230,15 Z" fill = "none" stroke = "#C7C8CA" stroke-width = "2"> </path>
<text x = "240" y = "20" font-size="15" font-weight= "bold" text-anchor= "first"> Gender Inequality Index (2015)</text>
<text id = "RankingGII" x = "160" y = "22.5" font-size="20" text-anchor= "end" font-weight= "bold" fill = "white"> </text>
</svg>
<svg width = "550px" height = "40px" >
<rect x = "0" y = "0" width = "200" height = "30" fill = "#0D7DBC" />
<circle cx = "180" cy = "15" r = "5" fill = "#C7C8CA"> </circle>
<path d = "M180,15 L230,15 Z" fill = "none" stroke = "#C7C8CA" stroke-width = "2"> </path>
<text x = "240" y = "20" font-size="15" font-weight= "bold" text-anchor= "first"> Ibrahim Index of African Governence (2016)</text>
<text id = "RankingIIAG" x = "160" y = "22.5" font-size="20" text-anchor= "end" font-weight= "bold" fill = "white"> </text>
</svg>
<svg width = "550px" height = "40px" >
<rect x = "0" y = "0" width = "200" height = "30" fill = "#0D7DBC" />
<circle cx = "180" cy = "15" r = "5" fill = "#C7C8CA"> </circle>
<path d = "M180,15 L230,15 Z" fill = "none" stroke = "#C7C8CA" stroke-width = "2"> </path>
<text x = "240" y = "20" font-size="15" font-weight= "bold" text-anchor= "first"> Ease of Doing Business (2017)</text>
<text id = "RankingEODB" x = "160" y = "22.5" font-size="20" text-anchor= "end" font-weight= "bold" fill = "white"> </text>
</svg>
<svg width = "550px" height = "40px" >
<rect x = "0" y = "0" width = "200" height = "30" fill = "#0D7DBC" />
<circle cx = "180" cy = "15" r = "5" fill = "#C7C8CA"> </circle>
<path d = "M180,15 L230,15 Z" fill = "none" stroke = "#C7C8CA" stroke-width = "2"> </path>
<text x = "240" y = "20" font-size="15" font-weight= "bold" text-anchor= "first"> Corruption Perceptions Index (2016) </text>
<text id = "RankingCPI" x = "160" y = "22.5" font-size="20" text-anchor= "end" font-weight= "bold" fill = "white"> </text>
</svg>
</div>
</div>
<div class = "CountryInfo Map">
<div id = "SVG_Map">
</div>
</div>
</div>
<div class = "Section">
<!-- <h1 class ="HeaderWrap"> Economic Performance </h1> -->
<h1 class ="HeaderWrap"> GDP growth rate </h1>
<!-- <h1 style = "font-size: 20px; margin:10px; margin-left:30px; color: #0D598E;" > GDP growth rate </h1> -->
<div class = "RowStyle">
<div class = "Graph">
<div id = "SVG_GDP">
</div>
</div>
<div class = "Description">
<svg width = "100%" height = "100px" >
<image x="20" y="20" width="80" height="80" xlink:href="EconomicGrowth.png" />
<text id = "GDPValue" x = "120" y = "60" font-size="40" text-anchor= "start" font-weight= "bold"> </text>
<text id = "GDPYear" x = "120" y = "90" font-size="20" text-anchor= "start" font-weight= "bold"> </text>
</svg>
<div class = "Text">
<p id = "GDPText"> </p>
</div>
</div>
</div>
<h1 class ="HeaderWrap"> Current account </h1>
<!-- <h1 style = "font-size: 20px; margin:10px; margin-left:30px; color: #0D598E; " > Current account </h1> -->
<div class = "RowStyle">
<div class = "Graph">
<div id = "SVG_CAB">
</div>
</div>
<div class = "Description">
<svg width = "100%" height = "100px" >
<image x="20" y="20" width="80" height="80" xlink:href="CurrentAccount.png" />
<text id = "CABValue" x = "120" y = "60" font-size="40" text-anchor= "start" font-weight= "bold"> </text>
<text id = "CABYear" x = "120" y = "90" font-size="20" text-anchor= "start" font-weight= "bold"> </text>
</svg>
<div class = "Text">
<p id = "CABText"> </p>
</div>
</div>
</div>
<h1 class ="HeaderWrap"> Trade </h1>
<!-- <h1 style = "font-size: 20px; margin:10px; margin-left:30px; color: #0D598E;" > Trade </h1> -->
<div class = "RowStyle">
<div class = "ColumnStyle">
<h1 style = "font-size: 20px; margin:10px; margin-top:0px; margin-left:30px; color: #0D598E;" > Export </h1>
<div class = "Graph">
<div id = "SVG_Export">
</div>
</div>
</div>
<div class = "ColumnStyle">
<h1 style = "font-size: 20px; margin:10px; margin-top:0px; margin-left:30px; color: #0D598E;" > Import </h1>
<div class = "Graph">
<div id = "SVG_Import">
</div>
</div>
</div>
</div>
</div>
<div class = "Section">
<h1 class ="HeaderWrap"> Africa Regional Integration Index </h1>
<h1 id = "ARIIREC" style = "font-size: 20px; margin:10px; margin-left:30px; color: #0D598E;" > ECOWAS </h1>
<div class = "RowStyle">
<div class = "Graph">
<div id = "SVG_ARII">
</div>
</div>
<div class = "ColumnStyle">
<svg width = "400px" height = "20px" > </svg>
<svg width = "400px" height = "40px" >
<rect x = "0" y = "0" width = "80" height = "30" fill = "#bb423f" />
<circle cx = "60" cy = "15" r = "5" fill = "#C7C8CA"> </circle>
<path d = "M60,15 L90,15 Z" fill = "none" stroke = "#C7C8CA" stroke-width = "2"> </path>
<text x = "100" y = "20" font-size="15" font-weight= "bold" text-anchor= "first"> Freemovement of people </text>
<text id = "ARII_Freemovement" x = "45" y = "22" font-size="20" text-anchor= "end" font-weight= "bold" fill = "white"> </text>
</svg>
<svg width = "400px" height = "40px" >
<rect x = "0" y = "0" width = "80" height = "30" fill = "#bb423f" />
<circle cx = "60" cy = "15" r = "5" fill = "#C7C8CA"> </circle>
<path d = "M60,15 L90,15 Z" fill = "none" stroke = "#C7C8CA" stroke-width = "2"> </path>
<text x = "100" y = "20" font-size="15" font-weight= "bold" text-anchor= "first"> Trade integration</text>
<text id = "ARII_Trade" x = "45" y = "22" font-size="20" text-anchor= "end" font-weight= "bold" fill = "white"> </text>
</svg>
<svg width = "400px" height = "40px" >
<rect x = "0" y = "0" width = "80" height = "30" fill = "#bb423f" />
<circle cx = "60" cy = "15" r = "5" fill = "#C7C8CA"> </circle>
<path d = "M60,15 L90,15 Z" fill = "none" stroke = "#C7C8CA" stroke-width = "2"> </path>
<text x = "100" y = "20" font-size="15" font-weight= "bold" text-anchor= "first"> Productive integration</text>
<text id = "ARII_Productive" x = "45" y = "22" font-size="20" text-anchor= "end" font-weight= "bold" fill = "white"> </text>
</svg>
<svg width = "400px" height = "40px" >
<rect x = "0" y = "0" width = "80" height = "30" fill = "#bb423f" />
<circle cx = "60" cy = "15" r = "5" fill = "#C7C8CA"> </circle>
<path d = "M60,15 L90,15 Z" fill = "none" stroke = "#C7C8CA" stroke-width = "2"> </path>
<text x = "100" y = "20" font-size="15" font-weight= "bold" text-anchor= "first"> Infrastructural integration</text>
<text id = "ARII_Infra" x = "45" y = "22" font-size="20" text-anchor= "end" font-weight= "bold" fill = "white"> </text>
</svg>
<svg width = "400px" height = "40px" >
<rect x = "0" y = "0" width = "80" height = "30" fill = "#bb423f" />
<circle cx = "60" cy = "15" r = "5" fill = "#C7C8CA"> </circle>
<path d = "M60,15 L90,15 Z" fill = "none" stroke = "#C7C8CA" stroke-width = "2"> </path>
<text x = "100" y = "20" font-size="15" font-weight= "bold" text-anchor= "first"> Financial and macroeconomic integration</text>
<text id = "ARII_Finance" x = "45" y = "22" font-size="20" text-anchor= "end" font-weight= "bold" fill = "white"> </text>
</svg>
</div>
</div>
</div>
<div class = "Section">
<!-- <h1 class ="HeaderWrap"> Social Development </h1> -->
<h1 class ="HeaderWrap"> Demography </h1>
<!-- <h1 style = "font-size: 20px; margin:10px; margin-left:30px; color: #0D598E;" > Demography </h1> -->
<div class = "RowStyle">
<div class = "Graph">
<div id = "SVG_Population">
</div>
</div>
<div class = "Description">
<svg width = "100%" height = "100px" >
<rect x = "0" y = "0" width = "400" height = "100px" fill = "white" />
<image x="20" y="20" width="80" height="80" xlink:href="Population.png" />
<text id = "PopulationValue" x = "120" y = "60" font-size="40" text-anchor= "start" font-weight= "bold"> </text>
<text id = "PopulationYear" x = "120" y = "90" font-size="20" text-anchor= "start" font-weight= "bold"> </text>
</svg>
<div class = "Text">
<p id = "PopulationText"> </p>
</div>
</div>
</div>
<h1 class ="HeaderWrap"> Mortality rates </h1>
<!-- <h1 style = "font-size: 20px; margin:10px; margin-left:30px; color: #0D598E;" > Health (mortality rate)</h1> -->
<div class = "RowStyle">
<div class = "ColumnStyle">
<!-- <h1 style = "font-size: 15px; margin:10px; margin-top:0px; margin-left:30px; " > Child mortality </h1> -->
<div class = "Graph">
<div id = "SVG_CM">
</div>
</div>
</div>
<div class = "ColumnStyle">
<!-- <h1 style = "font-size: 15px; margin:10px; margin-top:0px; margin-left:30px; " > Maternal mortality </h1> -->
<div class = "Graph">
<div id = "SVG_MMR">
</div>
</div>
</div>
</div>
<h1 class ="HeaderWrap"> Gender equality and empowerment </h1>
<div class = "ColumnStyle">
<div class = "Text">
<p style = "font-size: 12px" > <i> * Interpretation of the pie chart: The scoring is between 0 and 10, with 0 being the worst level of inequality, 5 suggesting middle parity, and 10 indicating perfect parity. Perfect parity connotes a situation where the proportion of men and women is equal, irrespective of the developmental level of the variable or indicator being assessed. Some countries go beyond the score of 10, thus showing that women may be more highly empowered in that subsector than men for that country. However, caution is needed when drawing conclusions based only on the scores, particularly when there are large variations in levels of developmental achievements between countries. </i></p>
</div>
<div class = "RowStyle">
<div class = "ColumnStyle">
<div class = "TableSection">
<div class = "headerWrap" id="Employment"><h3 id = "Employment_Score">Employment</h3></div>
<table>
<tr>
<td id = "label_Employment1">Employment in nonagricultural sector</td>
<td><p id = "Employment_1"></p></td>
</tr>
<tr>
<td id = "label_Employment2">Labour force participation rate</p></td>
<td><p id = "Employment_2"></p></td>
</tr>
</table>
</div>
<div class = "TableSection">
<p style = "margin: 5px"> </p>
<div class = "headerWrap" id="Business"><h3 id = "Business_Score">Business</h3></div>
<table>
<tr>
<td id = "label_Business1">Top management in firms</td>
<td><p id = "Business_1"></p></td>
</tr>
<tr>
<td id = "label_Business2">Ownership in firms</td>
<td><p id = "Business_2"></p></td>
</tr>
</table>
</div>
<div class = "TableSection">
<p style = "margin: 5px"> </p>
<div class = "headerWrap" id = "Health"><h3 id = "Health_Score">Health</h3></div>
<table>
<tr>
<td id = "label_Health1">Under-five survival rate </td>
<td><p id = "Health_1"></p></td>
</tr>
<tr>
<td id = "label_Health2">Children under age five who are not stunted</td>
<td><p id = "Health_2"></p></td>
</tr>
<tr>
<td id = "label_Health3">Life expectancy at birth</td>
<td><p id = "Health_3"></p></td>
</tr>
<tr>
<td id = "label_Health4">Share of population without HIV </td>
<td><p id = "Health_4"></p></td>
</tr>
</table>
</div>
</div>
<div id="SVG_gender"></div>
<div class = "ColumnStyle">
<div class = "TableSection">
<div class = "headerWrap" id="Education"><h3 id = "Education_Score">Education</h3></div>
<table>
<tr>
<td id = "label_Education1">Youth literacy rate</td>
<td><p id = "Education_1"></p></td>
</tr>
<tr>
<td id = "label_Education2">Enrolment ratio in secondary education </td>
<td><p id = "Education_2"></p></td>
</tr>
<tr>
<td id = "label_Education3">Enrolment ratio in tertiary education</td>
<td><p id = "Education_3"></p></td>
</tr>
</table>
</div>
<div class = "TableSection">
<div class = "headerWrap" id="Politics"><h3 id = "Women in politics_Score">Women in politics</h3></div>
<table>
<tr>
<td id = "label_Politics1">Representation in parliament</td>
<td><p id = "Women in politics_1"></p></td>
</tr>
<tr>
<td id = "label_Politics2">Ministerial positions-cabinet</td>
<td><p id = "Women in politics_2" ></p></td>
</tr>
</table>
</div>
<div class = "TableSection">
<div class = "headerWrap" id = "AccessToCredit"><h3 id = "Access to credit_Score">Access to credit</h3></div>
<table>
<tr>
<td id = "label_AccessCredit1">Account at a financial institution</td>
<td><p id = "Access to credit_1"></p></td>
</tr>
<tr>
<td id = "label_AccessCredit2">Borrowed from a financial institution </td>
<td><p id = "Access to credit_2"></p></td>
</tr>
</table>
</div>
<div class = "TableSection">
<div class = "headerWrap" id = "LandAccess"> <h3 id = "Access to land_Score">Access to land</h3> </div>
<table>
<tr>
<td id = "label_AccessLand">Access to land</td>
<td><p id = "Access to land_1"></p></td>
</tr>
</table>
</div>
</div>
</div>
<div id="LowerPane">
<div id = "TopBotttomSection">
<div id = "Top3Section">
<div class = "headerWrap" id = "StandAlone" ><h3 id = "label_StandAlone">Stand-alone indicators</h3></div>
<div id = "standaloneTables">
<table id="standalone">
<tr>
<td id = "label_StandAlone1" > Access to drinking water source within 15 minutes (urban)</td>
<td><p id = "Stand-alone indicators_1"></p></td>
</tr>
<tr>
<td id = "label_StandAlone2"> Access to drinking water source within 15 minutes (rural) </td>
<td><p id = "Stand-alone indicators_2"></p></td>
</tr>
</table>
<table id="standalone">
<tr>
<td id = "label_StandAlone3"> Improved sanitation (urban)</td>
<td><p id = "Stand-alone indicators_3"></p></td>
</tr>
<tr>
<td id = "label_StandAlone4"> Improved sanitation (rural) </td>
<td><p id = "Stand-alone indicators_4"></p></td>
</tr>
</table>
<table id="standalone">
<tr>
<td id = "label_StandAlone5">Maternal mortality ratio</td>
<td><p id = "Stand-alone indicators_5"></p></td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<div>
<p style = "font-size: 11px; margin-top:30px;margin-bottom:0px;" > * For best results, please use Chrome, Firefox or Safari </p>
<p style = "font-size: 11px; " > ** The designations employed and the presentation of the material on this map do not imply the expression of any opinion whatsoever on the part of the Secretariat of the United Nations concerning the legal status of any country, territory, city or area or of its authorities, or concerning the delimitation of its frontiers or boundaries
<p style = "font-size: 11px; margin-top:0px;" > © 2017 United Nations Economic Commission for Africa</p>
</div>
</div>
</div>
<script>
var language ="EN";
var mapdata = mapdata_raw.features;
var selected_country = data.filter(function(d){ return d.iso3 == d3.select("#SelectCountry").property("value") } )[0];
html( selected_country );
map(selected_country);
GDP(selected_country);
CAB(selected_country);
ARII(selected_country);
trade(selected_country, "import", "#SVG_Import" );
trade(selected_country, "export", "#SVG_Export" );
population(selected_country);
health(selected_country, "child", "#SVG_CM");
health(selected_country, "mother", "#SVG_MMR");
gender(selected_country);
function update( iso3 ){
var selected_country = data.filter(function(d){ return d.iso3 == iso3} )[0];
html( selected_country )
map_update(selected_country);
GDP_update(selected_country);
CAB_update(selected_country);
ARII_update(selected_country);
trade_update(selected_country);
population_update(selected_country);
health_update(selected_country);
gender_update(selected_country);
}
d3.select('#SelectCountry')
.on('change', function() { update(d3.select(this).property('value'))});
</script>
</body>
</html>