-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
478 lines (399 loc) · 34.8 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
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
<html lang="en"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" name="viewport">
<meta property="og:title" content="2016 3RP Jordan (Refugee Pillar)">
<meta property="og:type" content="article">
<meta property="og:url" content="http://data.unhcr.org/jordan/3rp">
<meta property="og:image" content="http://data.unhcr.org/jordan/3rp/thumbnail.jpg">
<meta property="og:site_name" content="2016 Refugee Response in Jordan">
<meta property="og:description" content="2016 3RP Jordan ">
<title>2016 3RP Jordan </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="css/dc.css">
<link rel="stylesheet" type="text/css" href="css/3w-dashboard.css">
<!-- Add IntroJs styles and JS -->
<link rel="stylesheet" type="text/css" href="css/introjs.css">
<script type="text/javascript" src="js/intro.js"></script>
<script src="js/jquery.js"></script>
<!-- map the data to the GeoJSON object -->
<script src="js/data-jo.js"></script>
<link href="http://www.unhcr.org/favicon.ico" rel="icon" type="image/x-icon">
<style>@-webkit-keyframes popaqisqezremkggezpgzrwftdammlcebrfuyv {50% {-webkit-transform:scale(1.2);}100% {-webkit-transform:scale(1);}}@keyframes popaqisqezremkggezpgzrwftdammlcebrfuyv {50% {-webkit-transform:scale(1.2);transform:scale(1.2);}100% {-webkit-transform:scale(1);transform:scale(1);}}#aqisqezremkggezpgzrwftdammlcebrfuyv{padding:0;margin:0;font:13px Arial,Helvetica;text-transform:none;font-size: 100%;vertical-align:baseline;line-height:normal;color:#fff;position:static;border:solid 2px #fff !important;color:#fff !important;display:block !important;height:auto !important;margin:0 !important;opacity:0.9 !important;padding:7px 10px !important;position:fixed !important;visibility:visible !important;width:auto !important;z-index:2147483647 !important;-moz-border-radius:5px !important;border-radius:5px !important;-moz-box-shadow:0px 0px 20px #000 !important;box-shadow:0px 0px 20px #000 !important;}.aqisqezremkggezpgzrwftdammlcebrfuyv-blocked{padding:0;margin:0;font:13px Arial,Helvetica;text-transform:none;font-size: 100%;vertical-align:baseline;line-height:normal;color:#fff;position:static;color:#AAA !important;display:inline !important;text-decoration:line-through !important;}#aqisqezremkggezpgzrwftdammlcebrfuyv br{display:block !important;padding:0;margin:0;font:13px Arial,Helvetica;text-transform:none;font-size: 100%;vertical-align:baseline;line-height:normal;color:#fff;position:static;}#aqisqezremkggezpgzrwftdammlcebrfuyv span{background:transparent !important;padding:0;margin:0;font:13px Arial,Helvetica;text-transform:none;font-size: 100%;vertical-align:baseline;line-height:normal;color:#fff;position:static;}#aqisqezremkggezpgzrwftdammlcebrfuyv div{padding:0;margin:0;font:13px Arial,Helvetica;text-transform:none;font-size: 100%;vertical-align:baseline;line-height:normal;color:#fff;position:static;border:0 !important;margin:0 !important;padding:0 !important;width:auto !important;letter-spacing:normal !important;font:13px Arial,Helvetica !important;text-align:left !important;text-shadow:none !important;text-transform:none !important;word-spacing:normal !important;}#aqisqezremkggezpgzrwftdammlcebrfuyv a{padding:0;margin:0;font:13px Arial,Helvetica;text-transform:none;font-size: 100%;vertical-align:baseline;line-height:normal;color:#fff;position:static;font-weight:normal !important;background:none !important;text-decoration:underline !important;color:#fff !important;}a#aqisqezremkggezpgzrwftdammlcebrfuyv-gear{padding:0;margin:0;font:13px Arial,Helvetica;text-transform:none;font-size: 100%;vertical-align:baseline;line-height:normal;color:#fff;position:static;text-decoration:none !important;position:absolute !important;display:none !important;font-size:20px !important;width:20px !important;height:20px !important;line-height:20px !important;text-align:center !important;background-color:rgba(255,255,255,.8) !important;background-image:url(resource://firefox-at-ghostery-dot-com/ghostery/data/images/gear.svg) !important;background-size:16px 16px !important;background-position:center center !important;background-repeat:no-repeat !important;text-decoration:none !important;}a#aqisqezremkggezpgzrwftdammlcebrfuyv-gear:hover{-webkit-animation-name:popaqisqezremkggezpgzrwftdammlcebrfuyv !important;animation-name:popaqisqezremkggezpgzrwftdammlcebrfuyv !important;-webkit-animation-duration:0.3s !important;animation-duration:0.3s !important;}#aqisqezremkggezpgzrwftdammlcebrfuyv:hover #aqisqezremkggezpgzrwftdammlcebrfuyv-gear{text-decoration:none !important;display:inline-block !important;}#aqisqezremkggezpgzrwftdammlcebrfuyv hr{visibility:hidden !important;padding:0;margin:0;font:13px Arial,Helvetica;text-transform:none;font-size: 100%;vertical-align:baseline;line-height:normal;color:#fff;position:static;height:1em;}@media print{#aqisqezremkggezpgzrwftdammlcebrfuyv{display:none !important;}}</style></head>
<body>
<div class="container" id="dashboard">
<br><center>
<font color="#FF0000"> <b>
"This is an internal DRAFT to facilitate the review process. Data is being revised regularly. A final version will be released by end 2015". </b> </font>
</center>
<h1><a href="http://data.unhcr.org/jordan"><img src="images/coordination.png" style="height: 48px; width: 48px"></a>
<strong>2016 3RP Plan in Jordan </strong></h1>
<div class="col-xs-12">
Explore <a href="XXX" target="_blank">2016 Interagency Response</a> financial requirement (in USD)
for Refugee Crisis in Jordan. <strong>All charts are based on USD values appealed. Click on any of the graphs below to filter and slice the data.</strong>
More info on Jordan <a href="http://data.unhcr.org/syrianrefugees/country.php?id=107" target="_blank">here</a>.<br>
<p><i><strong>Please note that, while accurately reflecting planned agency budgets for 2016, this data has not been approved by the Government of Jordan within the context of the Jordan Response Plan.</strong></i></p></div>
<div class="socialmedia" data-step="13" data-intro="Share!!" data-position="left">
<table>
<tbody><tr>
<td valign="middle"><a href="http://www.facebook.com/sharer.php?u=http://data.unhcr.org/jordan/3rp" target="_blank"><img src="images/Facebook.png" style="height: 25px; width: 25px"></a></td>
<td valign="middle"><a href="http://pinterest.com/pin/create/button/?url=http%3A%2F%2Fdata.unhcr.org/jordan/3rp&media=http%3A%2F%2Fdata.unhcr.org/jordan/3rp/thumbnail.png" target="_blank" data-pin-do="buttonBookmark"><img src="images/Pinterest.png" style="height: 28px; width: 28px"></a></td>
<td valign="middle"><a href="https://twitter.com/intent/tweet?url=http://data.unhcr.org/jordan/3rp&text=%23Jordan%20@Refugees" target="_blank"><img src="images/Twitter.png" style="height: 25px; width: 25px"></a></td>
<td valign="middle"><a href="https://plus.google.com/share?&hl=en&url=http://data.unhcr.org/jordan/3rp" target="_blank"><img src="images/Google.png" style="height: 25px; width: 25px"></a></td>
</tr>
</tbody></table>
</div>
<div class="row">
<div class="col-md-8">
<div class="dc-chart" id="count-info" data-step="12" data-intro="Click on reset to cancel the filters." data-position="right">
<h4><strong><span class="filter-count"></span></strong> Activities for a budget of <strong> <span id="totalusd" class="number-display"></span></strong> USD$ selected out of <strong><span class="total-count"></span></strong> records.</div></h4>
<a class="reset btn btn-primary btn-sm" id="reset" href="javascript:dc.filterAll();dc.redrawAll();">Reset All</a>
</div>
<br>
<div class="col-md-4">
<a class="btn btn btn-success" href="javascript:void(0);" onclick="javascript:introJs().start();">Tutorial</a>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="row">
<div id="category" class="col-xs-12 col-md-8 dc-chart" data-step="1" data-intro="Click on this row chart to filter by category." data-position="right">
<h5><strong>Response Category</strong></h5>
</div>
</div>
<div class="row">
<div id="sector" class="col-xs-12 col-md-8 dc-chart" data-step="2" data-intro="Click on this pie chart to filter by sector." data-position="right">
<h5><strong>By Sectors / Working Groups</strong></h5>
</div>
</div>
<div class="row">
<div id="objective" class="col-xs-12 col-md-8 dc-chart" data-step="3" data-intro="Click on this row chart to filter by objective." data-position="right">
<h5><strong>Top 5 Objectives </strong><small> </small></h5>
</div>
</div>
<div style="position:relative;left:20px; width:700px">
<br>
UNHCR & UNDP thanks all partners for their data and cooperation.
<br>
Produced by Information Management Unit, UNHCR, Jordan. For more information please contact <a href="http://data.unhcr.org/jordan/team.html" target="_blank" >our team</a>.
</div>
</div>
<div class="col-md-4">
<div class="row">
<div id="map2" class="col-xs-12 col-md-8 dc-chart" data-step="4" data-intro="Or click on this map to filter by area of operation." data-position="right">
<h5><strong>Filter on the Map </strong><small>by Governorate, Country wide or all Camps</small></h5>
</div>
</div>
<div class="row">
<div id="area" class="col-xs-12 col-md-8 dc-chart" data-step="5" data-intro="Click on this row chart to filter by area of operation." data-position="right">
<h5><strong>Top Locations </strong><small>Locations may refers to different aggregation levels. Camps locations are not aggregated within Governorate</small></h5>
</div>
</div>
</div>
<div class="col-md-4">
<div class="row">
<div id="orgs" class="col-xs-12 col-md-8 dc-chart" data-step="6" data-intro="Click on this row chart to filter by partner." data-position="left">
<h5><strong>Top 20 Partners </strong><small>by Appeal. Scroll down for Partners filter.</small></h5>
</div>
<div id="output" class="col-xs-12 col-md-8 dc-chart" data-step="7" data-intro="Click on this row chart to filter by output." data-position="right">
<h5><strong>Top 5 Outputs </strong><small> </small></h5>
</div>
</div>
<div class="row">
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
</div>
</div>
<div class="row">
<div class="col-md-12" data-step="11" data-intro="Click on this row chart to filter by partner." data-position="right">
<h5><strong>Filter by Partners</strong><small> </small></h5>
<a href='javascript:dc.filterAll(); org_chart.filter("ACF"); dc.renderAll();rtip();' ><img src="images/partner/acf.jpg" height=20px alt="Filter on ACF" /></a>
<a href='javascript:dc.filterAll(); org_chart.filter("ACTED"); dc.renderAll();rtip();' ><img src="images/partner/acted.jpg" height=20px alt="ACTED" /></a>
<a href='javascript:dc.filterAll(); org_chart.filter("APS"); dc.renderAll();rtip();'><img src="images/partner/aps.jpg" height=20px alt="Filter on Alianza por la Solidaridad"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("ARDD-LA"); dc.renderAll();rtip();'><img src="images/partner/arddla.png" height=20px alt="Filter on Arab Renaissance for Democracy and Development"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("AVSI"); dc.renderAll();rtip();'><img src="images/partner/avsi.jpg" height=20px alt="Filter on Association of Volunteers in International Service"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("CARE"); dc.renderAll();rtip();'><img src="images/partner/care.jpg" height=20px alt="Filter on CARE"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("CARITAS"); dc.renderAll();rtip();'><img src="images/partner/caritas.jpg" height=20px alt="Filter on CARITAS"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("CVT"); dc.renderAll();rtip();'><img src="images/partner/cvt.jpg" height=20px alt="Filter on Center for Victims of Torture"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("DRC"); dc.renderAll();rtip();'><img src="images/partner/drc.jpg" height=20px alt="Filter on Danish Refugee Council"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("FAO"); dc.renderAll();rtip();'><img src="images/partner/fao.jpg" height=20px alt="Filter on Food and Agriculture Organization"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("FAO"); dc.renderAll();rtip();'><img src="images/partner/fao.jpg" height=20px alt="Filter on FAO"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("FCA"); dc.renderAll();rtip();'><img src="images/partner/fca.jpg" height=20px alt="Filter on Finn Church Aid"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("FPSC"); dc.renderAll();rtip();'><img src="images/partner/fpsci.jpg" height=20px alt="Filter on Foundation Promotion Social de la Cultura"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("HI"); dc.renderAll();rtip();'><img src="images/partner/hi.jpg" height=20px alt="Filter on Handicap International"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("ICMC"); dc.renderAll();rtip();'><img src="images/partner/icmc.jpg" height=20px alt="Filter on International Catholic Migration Commission"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("ILO"); dc.renderAll();rtip();'><img src="images/partner/ilo.jpg" height=20px alt="Filter on International Labor Organisation"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("IMC"); dc.renderAll();rtip();'><img src="images/partner/imc.jpg" height=20px alt="Filter on International Medical Corps"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("INTERSOS"); dc.renderAll();rtip();'><img src="images/partner/intersos.jpg" height=20px alt="Filter on Intersos"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("IOCC"); dc.renderAll();rtip();'><img src="images/partner/iocc.jpg" height=20px alt="Filter on International Orthodox Christian Charities"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("IOM"); dc.renderAll();rtip();'><img src="images/partner/iom.jpg" height=20px alt="Filter on International Organisation of Migration"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("IR"); dc.renderAll();rtip();'><img src="images/partner/irw.jpg" height=20px alt="Filter on Islamic Relief"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("IRC"); dc.renderAll();rtip();'><img src="images/partner/irc.jpg" height=20px alt="Filter on International Rescue Committee"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("IRD"); dc.renderAll();rtip();'><img src="images/partner/ird.jpg" height=20px alt="Filter on International Relief Development"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("JHAS"); dc.renderAll();rtip();'><img src="images/partner/jhas.jpg" height=20px alt="Filter on Jordan Health Aid Society"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("KNK"); dc.renderAll();rtip();'><img src="images/partner/knk.jpg" height=20px alt="Filter on ACTED"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("LWF"); dc.renderAll();rtip();'><img src="images/partner/lwf.jpg" height=20px alt="Filter on ACTED"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("MDM"); dc.renderAll();rtip();'><img src="images/partner/mdm.jpg" height=20px alt="Filter on Médecins du Monde"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("MECI"); dc.renderAll();rtip();'><img src="images/partner/meci.jpg" height=20px alt="Filter on Middle East Children's Institute"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("MEDAIR"); dc.renderAll();rtip();'><img src="images/partner/medair.jpg" height=20px alt="Filter on MEDAIR International Humanitarian Aid Organisation"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("MercyCorps"); dc.renderAll();rtip();'><img src="images/partner/mc.jpg" height=20px alt="Filter on MercyCorps"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("MPDL"); dc.renderAll();rtip();'><img src="images/partner/mpdl.jpg" height=20px alt="Filter on Movimiento por la Paz"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("NEF"); dc.renderAll();rtip();'><img src="images/partner/nef.png" height=20px alt="Filter on Near East Foundation"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("NHF-IFH"); dc.renderAll();rtip();'><img src="images/partner/nhf.gif" height=20px alt="Filter on Noor Al Hussein Foundation"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("NICCOD"); dc.renderAll();rtip();'><img src="images/partner/niccod.jpg" height=20px alt="Filter on Nippon International Cooperation for Community Development"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("NRC"); dc.renderAll();rtip();'><img src="images/partner/nrc.jpg" height=20px alt="Filter on Norweigan Refugee Council"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("OXFAM"); dc.renderAll();rtip();'><img src="images/partner/oxfam.jpg" height=20px alt="Filter on OXFAM"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("PU-AMI"); dc.renderAll();rtip();'><img src="images/partner/pu-ami.jpg" height=20px alt="Filter on Première Urgence - Aide Médicale Internationale"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("QRC"); dc.renderAll();rtip();'><img src="images/partner/qrc.jpg" height=20px alt="Filter on Qatar Red Crescent"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("Questscope"); dc.renderAll();rtip();'><img src="images/partner/quetscope.jpg" height=20px alt="Filter on Questcope"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("RI"); dc.renderAll();rtip();'><img src="images/partner/ri.jpg" height=20px alt="Filter on Relief International"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("SCI"); dc.renderAll();rtip();'><img src="images/partner/sci.jpg" height=20px alt="Filter on Save the Children International"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("SCJordan"); dc.renderAll();rtip();'><img src="images/partner/scjordan.jpg" height=20px alt="Filter on Save the Children Jordan"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("SIF"); dc.renderAll();rtip();'><img src="images/partner/sif.jpg" height=20px alt="Filter on Secours Islamique France"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("TDH"); dc.renderAll();rtip();'><img src="images/partner/tdh.jpg" height=20px alt="Filter on Terre Des Hommes - Lausanne"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("TDHI"); dc.renderAll();rtip();'><img src="images/partner/tdh-it.jpg" height=20px alt="Filter on Terre des Hommes Italia"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("TGH"); dc.renderAll();rtip();'><img src="images/partner/triangle.jpg" height=20px alt="Filter on Triangle Génération Humanitaire"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("UNDP"); dc.renderAll();rtip();'><img src="images/partner/undp.jpg" height=20px alt="Filter on UNDP"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("UNESCO"); dc.renderAll();rtip();'><img src="images/partner/unesco.jpg" height=20px alt="Filter on United Nations Educational, Scientific and Cultural Organisation"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("UNFPA"); dc.renderAll();rtip();'><img src="images/partner/unfpa.jpg" height=20px alt="Filter on United Nations Population Fund"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("UNHABITAT"); dc.renderAll();rtip();'><img src="images/partner/unhabitat.jpg" height=20px alt="Filter on United Nations HABITAT"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("UNHCR"); dc.renderAll();rtip();'><img src="images/partner/unhcr.jpg" height=20px alt="Filter on UN High Commissioner for Refugees"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("UNICEF"); dc.renderAll();rtip();'><img src="images/partner/unicef.jpg" height=20px alt="Filter on United Nations Children's Funds"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("UNOPS"); dc.renderAll();rtip();'><img src="images/partner/unops.jpg" height=20px alt="Filter on United Nations Office for Project Services"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("UNWOMEN"); dc.renderAll();rtip();'><img src="images/partner/unwomen.jpg" height=20px alt="Filter on UN Women"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("UPP"); dc.renderAll();rtip();'><img src="images/partner/upp.jpg" height=20px alt="Filter on Un Ponte per"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("WarChildUK"); dc.renderAll();rtip();'><img src="images/partner/warchild.jpg" height=20px alt="Filter on WarChild UK"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("WFP"); dc.renderAll();rtip();'><img src="images/partner/wfp.jpg" height=20px alt="Filter on World Food Programme"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("WHO"); dc.renderAll();rtip();'><img src="images/partner/who.jpg" height=20px alt="Filter on World Health Orgnization"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("WorldReliefGermany"); dc.renderAll();rtip();'><img src="images/partner/wrg.png" height=20px alt="Filter on World Relief Germany"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("WVI"); dc.renderAll();rtip();'><img src="images/partner/wvi.jpg" height=20px alt="Filter on World Vision International"/></a>
<a href='javascript:dc.filterAll(); org_chart.filter("ZOA"); dc.renderAll();rtip();'><img src="images/partner/zoa.png" height=20px alt="Filter on ZOA International"/></a>
<br><br>
</div>
</div>
</strong></strong></div><strong><strong>
<script type="text/javascript" src="js/d3_002.js"></script>
<script type="text/javascript" src="js/crossfilter.js"></script>
<script type="text/javascript" src="js/dc.js"></script>
<script type="text/javascript" src="js/d3.js"></script>
<script>
var sector_chart = dc.rowChart("#sector");
var category_chart = dc.rowChart("#category");
var org_chart = dc.rowChart("#orgs");
var objective_chart = dc.rowChart("#objective");
var output_chart = dc.rowChart("#output");
var area_chart = dc.rowChart("#area");
var map2_chart = dc.geoChoroplethChart("#map2");
d3.csv("data/3rpviz.csv", function(csv_data){
var numberFormat = d3.format(",f");
// si = d3.format('s');
// siMod = function(val) { return si(val).replace(/G/, 'B') };
var cf = crossfilter(csv_data);
cf.partner = cf.dimension(function(d) { return d.Partner; });
cf.sector = cf.dimension(function(d) { return d.Sector; });
cf.category = cf.dimension(function(d) { return d.Category; });
cf.objective = cf.dimension(function(d) { return d.Objective; });
cf.output = cf.dimension(function(d) { return d.Output; });
cf.area = cf.dimension(function(d) { return d.Area; });
cf.rcode = cf.dimension(function(d) { return d.RegionCODE; });
cf.total = cf.dimension(function(d) { return d.Total; });
var partner = cf.partner.group();
var sector = cf.sector.group();
var category = cf.category.group();
var objective = cf.objective.group();
var output = cf.output.group();
var area = cf.area.group();
var rcode = cf.rcode.group();
var all = cf.groupAll();
var bytotalGroup = cf.total.groupAll().reduceSum(function (d) { return d.Total; });
var sectorByTotal = cf.sector.group().reduceSum(function (d) { return d.Total; });
var partnerByTotal = cf.partner.group().reduceSum(function (d) { return d.Total; });
var categoryByTotal = cf.category.group().reduceSum(function (d) { return d.Total; });
var objectiveByTotal = cf.objective.group().reduceSum(function (d) { return d.Total; });
var outputByTotal = cf.output.group().reduceSum(function (d) { return d.Total; });
var areaByTotal = cf.area.group().reduceSum(function (d) { return d.Total; });
var rcodeByTotal = cf.rcode.group().reduceSum(function (d) { return d.Total; });
// Implement bookmarking chart filters category --> Thanks to https://github.com/franckalbinet
// Serializing filters values in URL
function getFiltersValues() {
var filters = [
{ name: 'sector', value: sector_chart.filters()},
{ name: 'objective', value: objective_chart.filters()},
{ name: 'output', value: output_chart.filters()},
{ name: 'category', value: category_chart.filters()},
{ name: 'area', value: area_chart.filters()},
{ name: 'map2', value: map2_chart.filters()},
{ name: 'org', value: org_chart.filters()}
];
var recursiveEncoded = $.param( filters );
location.hash = recursiveEncoded;
}
// Init chart filters
function initFilters() {
// Get hash values
var parseHash = /^#sector=([A-Za-z0-9,_\-\/\s]*)&objective=([A-Za-z0-9,_\-\/\s]*)&output=([A-Za-z0-9,_\-\/\s]*)&category=([A-Za-z0-9,_\-\/\s]*)&area=([A-Za-z0-9,_\-\/\s]*)&map2=([A-Za-z0-9,_\-\/\s]*)&org=([A-Za-z0-9,_\-\/\s]*)$/;
var parsed = parseHash.exec(decodeURIComponent(location.hash));
function filter(chart, rank) { // for instance chart = sector_chart and rank in URL hash = 1
// sector chart
if (parsed[rank] == "") {
chart.filter(null);
}
else {
var filterValues = parsed[rank].split(",");
for (var i = 0; i < filterValues.length; i++ ) {
chart.filter(filterValues[i]);
}
}
}
if (parsed) {
filter(sector_chart, 1);
filter(objective_chart, 2);
filter(output_chart, 3);
filter(category_chart, 4);
filter(area_chart, 5);
filter(map2_chart, 6);
filter(org_chart, 7);
filter(costunit_chart, 8);
filter(gender_chart, 9);
filter(target_chart, 10);
}
}
// tooltips for row chart
var rowTip = d3.tip()
.attr('class', 'd3-tip')
.offset([-10, 0])
.html(function (d) { return "<span style='color: #f0027f'>" + d.key + "</span> : " + numberFormat(d.value) + " USD"; });
dc.dataCount("#count-info")
.dimension(cf)
.group(all);
dc.numberDisplay("#totalusd")
.formatNumber(d3.format(",f"))
.valueAccessor(function(d){return +d})
.group(bytotalGroup);
category_chart.width(400).height(100)
.dimension(cf.category)
.group(categoryByTotal)
.elasticX(true)
.on("filtered", getFiltersValues)
.xAxis().ticks(4).tickFormat(d3.format("s"));
/* 3W data are sorted per sector and color are allocated to sectors as per standard code in rrp6 */
sector_chart.width(400).height(300)
.dimension(cf.sector)
.group(sectorByTotal)
.elasticX(true)
.on("filtered", getFiltersValues)
.data(function(group) {
return group.top(15);
})
.colors(['#3182bd'])
.colorDomain([0,0])
.colorAccessor(function(d, i){return 1;})
.margins({top: 0, right: 55, bottom: -1, left: 30})
.xAxis().ticks(4).tickFormat(d3.format("s"));
objective_chart.width(400).height(160)
.dimension(cf.objective)
.group(objectiveByTotal)
.elasticX(true)
.on("filtered", getFiltersValues)
.data(function(group) {
return group.top(5);
})
.colors(['#3182bd'])
.colorDomain([0,0])
.colorAccessor(function(d, i){return 1;})
.xAxis().ticks(4).tickFormat(d3.format("s"));
output_chart.width(450).height(150)
.dimension(cf.output)
.group(outputByTotal)
.elasticX(true)
.on("filtered", getFiltersValues)
.data(function(group) {
return group.top(5);
})
.colors(['#3182bd'])
.colorDomain([0,0])
.colorAccessor(function(d, i){return 1;})
.xAxis().ticks(4).tickFormat(d3.format("s"));
area_chart.width(400).height(220)
.dimension(cf.area)
.group(areaByTotal)
.elasticX(true)
.on("filtered", getFiltersValues)
.data(function(group) {
return group.top(6);
})
.colors(['#A9DDA9'])
.colorDomain([0,0])
.colorAccessor(function(d, i){return 1;})
.xAxis().ticks(4).tickFormat(d3.format("s"));
org_chart.width(450).height(480)
.dimension(cf.partner)
.group(partnerByTotal)
.elasticX(true)
.on("filtered", getFiltersValues)
.data(function(group) {
return group.top(20);
})
.colors(['#3182bd'])
.colorDomain([0,0])
.colorAccessor(function(d, i){return 1;})
.xAxis().ticks(4).tickFormat(d3.format("s"));
/* Region map with ID rid */
d3.json("data/admin1.geojson", function (governJSON) {
map2_chart.width(400).height(300)
.dimension(cf.rcode)
.group(rcodeByTotal)
.colors(['#AAAAAA', "rgb(49,163,84)"]) //'#CB181D'
.colorDomain([0, 2])
.overlayGeoJson(governJSON.features, "Governorates", function (d) {
return d.properties.adm1_code;
})
.projection(d3.geo.mercator().center([44,28.8]).scale(2500)) /* Center on Jordan */
.title(function (d) {
return "Geo-Filter: " + gcode2gov[d.key];
});
$('#reset').on('click', function (){
dc.filterAll();
dc.redrawAll();
return false;
})
//dc.redrawAll();
dc.renderAll();
/* Customised infobox */
d3.selectAll("g.row").call(rowTip);
d3.selectAll("g.row").on('mouseover', rowTip.show)
.on('mouseout', rowTip.hide);
});
$('#loading').hide();
$('#dashboard').show();
});
function rtip(){
var numberFormat = d3.format(",f");
var rowTip = d3.tip()
.attr('class', 'd3-tip')
.offset([-10, 0])
.html(function (d) { return "<span style='color: #f0027f'>" + d.key + "</span> : " + numberFormat(d.value) + " USD"; });
d3.selectAll("g.row").call(rowTip);
d3.selectAll("g.row").on('mouseover', rowTip.show)
.on('mouseout', rowTip.hide);
}
</script>
<script src="js/bootstrap.js"></script>
<!-- Piwik-->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://data.unhcr.org/piwik/" : "http://data.unhcr.org/piwik/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 21);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://data.unhcr.org/piwik/piwik.php?idsite=21" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tracking Code -->
</strong></strong><div class="d3-tip n" style="position: absolute; display: none; box-sizing: border-box; top: 234.633px; left: 635px;"></div><div class="d3-tip n" style="position: absolute; display: none; box-sizing: border-box; top: 254.195px; left: 328.135px;"></div></body></html>