Skip to content

Instantly share code, notes, and snippets.

@heathermkrause
Created November 5, 2015 14:29
Show Gist options
  • Save heathermkrause/9378e614bd9adc687ec0 to your computer and use it in GitHub Desktop.
Save heathermkrause/9378e614bd9adc687ec0 to your computer and use it in GitHub Desktop.
Children Out of School
countryName Country Code Indicator Name Indicator Code 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013
Aruba ABW Children out of school, primary SE.PRM.UNER 162 146 292 408 546 480 186 123 96 78 350 93
Andorra ADO Children out of school, primary SE.PRM.UNER
Afghanistan AFG Children out of school, primary SE.PRM.UNER 1863707
Angola AGO Children out of school, primary SE.PRM.UNER 449311 504861 737447 455780 459168 496158 512918
Albania ALB Children out of school, primary SE.PRM.UNER 19855 17722 17391 22232
United Arab Emirates ARE Children out of school, primary SE.PRM.UNER 20178 26231 23277 30688 33220 36580 39151 23624 19244 11333 3948 3082 10464 18643 22965 20206 25141 32858 31334 42364 17368 12165 15878 5822 13873 11699 11672 5814
Argentina ARG Children out of school, primary SE.PRM.UNER 266990 181577 0 1475 23446 23067 34051 36270
Armenia ARM Children out of school, primary SE.PRM.UNER 20621 21878 16510 12476 8314
American Samoa ASM Children out of school, primary SE.PRM.UNER
Antigua and Barbuda ATG Children out of school, primary SE.PRM.UNER 907 786 839 1146 1343 1498
Australia AUS Children out of school, primary SE.PRM.UNER 729 8816 25543 39796 65570 62437 50983 42369 32691 31490 38023 47249 50899 57321 62306 99570 94173 103068 104842 111210 111025 114191 104337 106732 104249 101442 99551 71292 68647 64934 65493 68417 61061 50771
Austria AUT Children out of school, primary SE.PRM.UNER 22905
Azerbaijan AZE Children out of school, primary SE.PRM.UNER 37824 37049 58523 97132 88243 49899 74383 84825 56897 84704 102011 102629 110026 98088 95428 92606 89421 84545 74675 78445 64313 53736
Burundi BDI Children out of school, primary SE.PRM.UNER 496774 488089 474242 445369 428599 416934 419157 405691 410413 529871 729848 630982 641987 602910 587618 551966 342265 254212 120803 146837 81150 78044
Belgium BEL Children out of school, primary SE.PRM.UNER 2492 13201 14216 40093 46132 50255 41021 32302 24732 29248 40275 22241 27012 26755 23156 7048 5974 6580 6387 12218 23097 23902 19809 10023 6861 6647 6586 6830 7427 9981
Benin BEN Children out of school, primary SE.PRM.UNER 339671 345407 369302 397801 407708 498742 449398 430472 435125 427228 418157 399210 215864 184474 237123 210515 180087 100088 90391 93598 83149
Burkina Faso BFA Children out of school, primary SE.PRM.UNER 915929 923518 928081 940177 955187 962731 969101 981228 1010572 1042711 1089177 1113415 1130994 1143518 1146258 1167207 1188707 1197300 1207757 1261871 1251474 1229201 1177397 1128686 1039612 927860 884687 1032931 927753 917044 912426
Bangladesh BGD Children out of school, primary SE.PRM.UNER 4036909 4521153 4821284 5182732 5457112 5736226 4405307 4501563 4145045 780439 634229 1008572 794429 621163
Bulgaria BGR Children out of school, primary SE.PRM.UNER 24510 19954 9167 7612 7892 5904 8312 8057 9096 17761 21277 11536 6100 2328 1509 4957 9103 8960
Bahrain BHR Children out of school, primary SE.PRM.UNER 7831 8127 8980 7947 6504 4434 1933 2321 926 537 329 1887 1264 1323 621 54 191 189 648
Bahamas BHS Children out of school, primary SE.PRM.UNER 878 0 1298 4049 3955 2607 2985 1844 406 907 442 441 1221 694
Bosnia and Herzegovina BIH Children out of school, primary SE.PRM.UNER
Belarus BLR Children out of school, primary SE.PRM.UNER 91729 19294 29619 27040 31804 38169 36682 35741 27739 29725 31405 20243 25137
Belize BLZ Children out of school, primary SE.PRM.UNER 110 227 546 388 551 97 327 434 135 177 409 99 393 136
Bermuda BMU Children out of school, primary SE.PRM.UNER 481 336 116 444 585 797
Bolivia BOL Children out of school, primary SE.PRM.UNER 66142 73360 85957 101999 94483 93647 80125 94558 135503 111528 154080 193609 243882 272823
Brazil BRA Children out of school, primary SE.PRM.UNER
Barbados BRB Children out of school, primary SE.PRM.UNER 875 962 791 129 373 2446 1121 1269 1457 1754 1830 2052 1961 1432 1440 1059 1251 849 614
Brunei Darussalam BRN Children out of school, primary SE.PRM.UNER 4944 6046 6695 6612 6751 6483 2930 2232 1296 1342 439 1293 1092 1385 1478 1944 2275
Bhutan BTN Children out of school, primary SE.PRM.UNER 48206 47470 44395 40215 28007 23723 17641 12857 10618 9917 8045 9135
Botswana BWA Children out of school, primary SE.PRM.UNER 54022 45440 40651 41548 38822 37990 37359 37523 37351 39971 35203 38120 40780 42360 71162 70719 62521 64061 59986 54763 53802 53504 50749 52890 50265 52617 52940 49841 28404
Central African Republic CAF Children out of school, primary SE.PRM.UNER 158806 157586 156283 159018 208075 224415 230623 195795 221045 312324 316475 268106 210778 210436 196160 212206 193652
Canada CAN Children out of school, primary SE.PRM.UNER 95551 100903 112801 115947 109332 108740 109779 105603 106737 49638 56368 95252 109226 136754 115168 36114 5285 1892 19897
Switzerland CHE Children out of school, primary SE.PRM.UNER 125259 120865 118313 116802 113395 108389 100625 91004 81089 73483 70575 71829 77061 82722 53056 44363 2581 3557 3964 3949 3931 5493 9855 11598 11006 7406 5059 4594 3503 4154
Channel Islands CHI Children out of school, primary SE.PRM.UNER
Chile CHL Children out of school, primary SE.PRM.UNER 80247 71441 98882 89480 103671 108768 117517
China CHN Children out of school, primary SE.PRM.UNER 3977988 2223220 3196434 2844282 4315630 7171367 9764867 12413449 14879134 16490623 17450430
Cote Ivoire CIV Children out of school, primary SE.PRM.UNER 1050204 1073966 1032570 1023474 995492 1026564 920615 924880 1062165 1142428 678306
Cameroon CMR Children out of school, primary SE.PRM.UNER 478304 503593 559612 619140 563145 486161 206596
Republic of Congo COG Children out of school, primary SE.PRM.UNER 30952 34414 33352 32740 29447 256521 245608 77175 56264
Colombia COL Children out of school, primary SE.PRM.UNER 1001277 1110697 1187493 1291328 1284388 1302259 1303941 1190651 875312 857424 840109 725269 532967 270024 198353 159945 234995 189015 281828 178763 222685 272710 295334 319134 391648
Comoros COM Children out of school, primary SE.PRM.UNER 8203 11423 16588 24779 25366 18895 15919 19357
Cabo Verde CPV Children out of school, primary SE.PRM.UNER 5628 6291 8211 5625 4877 4765 4602 2121 1038 608 745 381 801 836 1011 2106 2807 3581 4202 4579 4115 3345 2707 1623 1081
Costa Rica CRI Children out of school, primary SE.PRM.UNER 34757 33752 40257 51489 49274 50108 52430 54613 54565 48562 48847 55352 52131 44744 23445 33373 41981
Cuba CUB Children out of school, primary SE.PRM.UNER 33429 63519 77016 72951 87463 101362 90251 68664 67026 64440 68395 73694 56583 51579 31606 33555 13502 14951 17095 15037 21243 26876 32547 50875 49609 45000 35716 11733 5604 1695 1369 14907 28025 28528
Curacao CUW Children out of school, primary SE.PRM.UNER
Cayman Islands CYM Children out of school, primary SE.PRM.UNER
Cyprus CYP Children out of school, primary SE.PRM.UNER 21113 18913 20969 20871 20757 20325 17336 14826 14186 14590 15642 16012 17854 1508 1986 2460 2516 2411 1325 1276 1620 973 879 783 205 280 371 571 453 386 387 988
Czech Republic CZE Children out of school, primary SE.PRM.UNER
Germany DEU Children out of school, primary SE.PRM.UNER 604 5150 31133 91484 93863 63208 40800 11559 5641 10523 10921 8651 7230 12667 26311
Djibouti DJI Children out of school, primary SE.PRM.UNER 52842 54638 58541 62427 65618 67431 68912 68950 73226 75368 78168 82432 87504 92193 92399 88601 86017 77999 73447 66770 60019 44391 44421 36756 38735
Dominica DMA Children out of school, primary SE.PRM.UNER 2120 2288 1712 155 274 131 201 153 424 563 932 853 222
Denmark DNK Children out of school, primary SE.PRM.UNER 20229 16289 8502 4164 4846 5095 4266 3700 7952 8094 5862 8471 9848 4140 5500 6029 1957 7532 7158 582 514 6892 15754 14330 12074 14363 14708 15219 10402 8599 6777
Dominican Republic DOM Children out of school, primary SE.PRM.UNER 202805 193795 127041 164311 225447 204326 221247 144758 186720 67582 101475 113092 136567
Algeria DZA Children out of school, primary SE.PRM.UNER 673421 688659 727913 778723 767733 779371 759413 731730 720419 718036 744348 717492 708899 756808 768782 750224 750403 754842 577504 513876 387776 304209 264279 226252 219757 226401 232421 188317 86271 29678 26869 25337
Ecuador ECU Children out of school, primary SE.PRM.UNER 134373 96826 95946 84593 48906 43208 44947 28539 10811 10186 11407 10903 9810 11611 53849 56036 55427 59326 21944
Egypt EGY Children out of school, primary SE.PRM.UNER 676674 449974 417688 327886 207216 170755 152176 94003 245758 198740 209573 178804 258378
Euro area EMU Children out of school, primary SE.PRM.UNER 884591 940477 986883 1063754 1002851 869467 641529 644736 569375 554493 571443 582915 762045 764068 738481 592320 423266 313444 164136 141081 136547 177670 252361 285062 308701 229936 175009 129827 132019 132092 133076 157916 192277 274263
Eritrea ERI Children out of school, primary SE.PRM.UNER
Spain ESP Children out of school, primary SE.PRM.UNER 27231 27137 14513 7511 3680 90 17599 4976 1801 5220 6372 1897 1424 2344 1718 5667 3475 7510 1405 2689 2757 4811 5359 8210 6833 5316 4170 2853 6448 7575 7116 42422
Estonia EST Children out of school, primary SE.PRM.UNER 17409 12362 419 144 193 192 36 2408 2213 2203 2464 3067 2521 2495 2112 2728 2385 2280
Ethiopia ETH Children out of school, primary SE.PRM.UNER 4806895 4922164 5185948 7220071 7256631 7080165 6686183 6601682 6348847 6068514 6016205 6147070 6038880 4889900 4451317
Finland FIN Children out of school, primary SE.PRM.UNER 4357 4794 6030 5787 4415 1475 647 1029 945 1835 4615 8220 9689 11654 9781 8601 8369 7384 6055 3798 3020
Fiji FJI Children out of school, primary SE.PRM.UNER 3762 3188 4732 7231 6781 5835 6398 5984 2656 850 1270 851 1127 370 642 928 1138 1287
France FRA Children out of school, primary SE.PRM.UNER 131322 193746 251921 306225 156138 2432 245 108160 194343 195802 124266 45514 33634 10179 13957 32255 44676 56350 72354 27328 27417 27012 29229 30235 30412 40088 43491 35641
Faeroe Islands FRO Children out of school, primary SE.PRM.UNER
Micronesia FSM Children out of school, primary SE.PRM.UNER
Gabon GAB Children out of school, primary SE.PRM.UNER 13980
United Kingdom GBR Children out of school, primary SE.PRM.UNER 116164 129727 179608 250513 265905 303482 230058 112249 43033 13743 30492 103036 168545 4681 2387 2247 2565 2597 3260 23135 516 10759 64293 10031 11275 14483 13333 7244 3829
Georgia GEO Children out of school, primary SE.PRM.UNER 56266 55922 50588 35158 31905 16260 14047 1934 3975 3772 9082
Ghana GHA Children out of school, primary SE.PRM.UNER 1107352 1023138 1205260 1151777 1181952 1262559 1055698 1082925 921395 751067 815900 582236 652518 466541
Guinea GIN Children out of school, primary SE.PRM.UNER 509497 505196 539906 577312 592338 619436 656668 671761 798165 782792 754607 717919 624340 582812 545943 523378 496789 476314 504840 496448 470407 411342 431051 423685
Gambia GMB Children out of school, primary SE.PRM.UNER 49497 43572 42148 40682 40722 39890 42530 71000 83685 81788 71234 67222 46962 52574 51860 57749 51875 53279 61406 52811 55158 67690 76783 79771 75180 89476
Guinea-Bissau GNB Children out of school, primary SE.PRM.UNER 69398 75732 97245 97358 95225 91293 99904 70083
Equatorial Guinea GNQ Children out of school, primary SE.PRM.UNER 9666 21605 16676 18429 19813 41360 42130 42429 40506 38352
Greece GRC Children out of school, primary SE.PRM.UNER 56384 31159 20510 7186 4088 2607 8293 32834 31692 41522 45905 44898 55690 69335 75181 68738 78468 76588 30037 26232 15744 20267 9892 1832 2419 623 1574 2636 2787 2968 1550
Grenada GRD Children out of school, primary SE.PRM.UNER 678 1482 1999 1992 1578 2 601 224 1386 938 586 345 201
Greenland GRL Children out of school, primary SE.PRM.UNER
Guatemala GTM Children out of school, primary SE.PRM.UNER 484533 462887 513426 481578 443828 286367 242394 264643 206676 124568 98238 71432 55145 65207 29142 39924 109984 203524 289755
Guam GUM Children out of school, primary SE.PRM.UNER
Guyana GUY Children out of school, primary SE.PRM.UNER 6599 1410 2262 1960 3806 6800 2787 12528 21327 21615 25072 31760
Hong Kong HKG Children out of school, primary SE.PRM.UNER 26074 24051 25940 22378 18270 16265 38235 34864 15628 16485 17704 16829 4581 2314
Honduras HND Children out of school, primary SE.PRM.UNER 143082 78134 68486 62794 68701 101196 95595 118298 73057 48628 88609 41424 78507 43198 38898 45945 30453 66576 110704
Croatia HRV Children out of school, primary SE.PRM.UNER 33194 14332 13575 11911 9381 8369 1844 1773 1881 6993 16257 8696 3702 2034
Haiti HTI Children out of school, primary SE.PRM.UNER 549346 544818 504279 475851 518160 485678 480463 585837 566579
Hungary HUN Children out of school, primary SE.PRM.UNER 40379 45762 106975 64819 20091 19348 16820 14717 14093 19186 20373 16320 13393 13498 8172 5319 5814 8553 12825 15300
Indonesia IDN Children out of school, primary SE.PRM.UNER 1967869 920177 601466 538485 519372 683577 381535 606758 484906 551995 798344 1036398 1370946 1239473 1296114 1593881 1606224 657177 803934 922205 1120326 1379984 1012878 381333 654519 534602 567575 911111 1335753
Isle of Man IMY Children out of school, primary SE.PRM.UNER
India IND Children out of school, primary SE.PRM.UNER 22814670 16947662 16891852 17031052 10960947 1091960 508133 1218431 875082 1387374 1723585
Ireland IRL Children out of school, primary SE.PRM.UNER 35722 38918 42641 45998 47664 43891 39365 36916 34640 35629 37741 38881 39512 40259 39708 35177 1551 271 984 4058 557 280 1063 1161 428 635 1498 1550 1101 5853 1301
Iran IRN Children out of school, primary SE.PRM.UNER 1058464 1107383 1104920 1137842 1127415 1137610 660991 343080 536009 1154351 1167317 412429 424251 184783 171965 47195 20601 8322 11891 7105 3468 90968
Iraq IRQ Children out of school, primary SE.PRM.UNER 156446 178355 297804 339539 328955 287518 263776 303890 708177 853497 407993 456828 252905 314886 373276
Iceland ISL Children out of school, primary SE.PRM.UNER 766 587 515 309 292 256 134 145 233 690 670 634 580 374 207 356 441 558
Israel ISR Children out of school, primary SE.PRM.UNER 15193 13752 10916 13169 12786 15883 17158 21072 19897 20518 23156 20236 23296 18632 22433
Italy ITA Children out of school, primary SE.PRM.UNER 98348 35710 12211 3683 3455 7406 9524 12717 14258 23588 17766 17391 17731 19156 18782 17121 25573 46295
Jamaica JAM Children out of school, primary SE.PRM.UNER 14101 13231 7782 11042 12596 10787 2962 12522 941 3330 8943 19381 24756 21132 23957 26619 32355 29266
Jordan JOR Children out of school, primary SE.PRM.UNER 18241 29175 32132 46650 49411 46182 17559 8112 6833 7349 8671 5263 7578 5531 10099 21409 19852 24927
Japan JPN Children out of school, primary SE.PRM.UNER 7334 5152 21922 74624 56395 9676 9645 8150 6276 3488 2845 3255 2790 3547 3420 616 103 2220 1861 1802 314 2447 100 1685 58 1051 1627 3473 3425 3384
Kazakhstan KAZ Children out of school, primary SE.PRM.UNER 44256 32718 14114 15430 13281 12155 11046 11288 13288 16963 23720 16564 10114 12519
Kenya KEN Children out of school, primary SE.PRM.UNER 1954930 1792032 1724925 2006462 1366599 1446224 1384918 1433002 819690 1113988 1088170 1063630
Kyrgyz Republic KGZ Children out of school, primary SE.PRM.UNER 37428 34383 37348 33256 32277 31734 9560 19997 15686 21149 23223 24321 18551 15256 6237 2849
Cambodia KHM Children out of school, primary SE.PRM.UNER 358329 319362 281392 164633 50147 33303 31059 32206 31608 30211 28581
Kiribati KIR Children out of school, primary SE.PRM.UNER 86 12 360 111 40 259
St. Kitts and Nevis KNA Children out of school, primary SE.PRM.UNER 46 1013 828 87 81 38 181 376 244 200 223 280 673 1167 518 936 838 1062 1175
Korea KOR Children out of school, primary SE.PRM.UNER 6821 3001 7459 9682 40777 73592 71379 18433 19176 23516 28846 27529 29733 32562 38041 47424 45259 39021 46270 25557 9876 17008 23888 9763 21990 25137 24658 23568 19878 13751 34670 30444 21686
Kosovo KSV Children out of school, primary SE.PRM.UNER
Kuwait KWT Children out of school, primary SE.PRM.UNER 22521 20150 20240 19098 19855 19184 19331 28135 31266 98769 38008 1079 2654 226 435 75 1049 1040 1223 3490
Lao PDR LAO Children out of school, primary SE.PRM.UNER 189134 200613 253299 231604 215728 218486 208826 192865 196286 197657 208869 205123 187778 184085 173939 160529 139261 114951 87689 42024 33946 29694 19641
Lebanon LBN Children out of school, primary SE.PRM.UNER 49310 635 9541 16967 37295 52185 49861 48215 43717 34930 29409 17915 16930
Liberia LBR Children out of school, primary SE.PRM.UNER 221843 342559 332167 363460 389259
Libya LBY Children out of school, primary SE.PRM.UNER
St. Lucia LCA Children out of school, primary SE.PRM.UNER 1920 1425 230 307 0 0 630 2293 2176 400 692 1151 1650 1080 1291
Liechtenstein LIE Children out of school, primary SE.PRM.UNER 16 12 24 23 16 30 16 25 29
Sri Lanka LKA Children out of school, primary SE.PRM.UNER 37975 2590 4078 29081 64335 73758 80240 82202 91172 124810 96984 103178 107784 103142
Lesotho LSO Children out of school, primary SE.PRM.UNER 94170 96210 88046 92224 92130 87301 87661 83718 81105 84702 90151 86482 86759 95867 92875 97103 97185 126516 140200 68388 68257 67441 67945 77373 81055 80718 89817 85290 82228 73832 67268 61720 68082
Lithuania LTU Children out of school, primary SE.PRM.UNER 7672 6356 4185 3619 3672 7945 11250 10267 5988 1483 1758 1538 1333 1381 2463 3392
Luxembourg LUX Children out of school, primary SE.PRM.UNER 5831 4150 4337 4573 4485 5286 3752 840 940 1084 1012 1400 1180 758 610 628 962 1837 1955 1801
Latvia LVA Children out of school, primary SE.PRM.UNER 4076 3360 2015 2007 1985 1806 3254
Macao SAR, China MAC Children out of school, primary SE.PRM.UNER 4742 4173 6891
St. Martin MAF Children out of school, primary SE.PRM.UNER
Morocco MAR Children out of school, primary SE.PRM.UNER 1196519 1144623 1156794 1113540 1063556 1119954 1190162 1267220 1344390 1441746 1450589 1771588 1791967 1736395 1646446 1536483 1436637 1358782 1371555 1171496 978675 819210 649154 593705 592944 543921 481014 418679 371450 349255 197594 108211 86800 43220
Monaco MCO Children out of school, primary SE.PRM.UNER
Moldova MDA Children out of school, primary SE.PRM.UNER 18507 10459 9108 7181 6717 12469 16572 16982 15389 15482 14936 13935 13945 13892
Madagascar MDG Children out of school, primary SE.PRM.UNER 518249 521355 790292 811971 783321 771743 758465 761518 549685
Maldives MDV Children out of school, primary SE.PRM.UNER 1531 1096 750 1205 1231 90 989 1157 3288
Mexico MEX Children out of school, primary SE.PRM.UNER 589958 391867 314626 353341 619306 366172 394809 325766 338211 400014 436127 497261 583568 599488 284222 250736 262201 194238 298348 472431 657947 781443 801014 782894 667229 524757 405347 291066 290493
Marshall Islands MHL Children out of school, primary SE.PRM.UNER 143 24
Macedonia, FYR MKD Children out of school, primary SE.PRM.UNER 9429 11338 7032 9588 11063 11877 10170 8556 8298 7344 8560 6444 2143 9743
Mali MLI Children out of school, primary SE.PRM.UNER 843156 756432 777150 801608 725897 722904 704617 592848 583075 567251 637251 773347
Malta MLT Children out of school, primary SE.PRM.UNER 358 461 559 1757 2198 1976 2975 4181 4750 4767 4571 4573 4853 5091 5865 5828 5372 5092 1528 1209
Myanmar MMR Children out of school, primary SE.PRM.UNER
Montenegro MNE Children out of school, primary SE.PRM.UNER 1150 713 580 1361 1356 3211 623
Mongolia MNG Children out of school, primary SE.PRM.UNER 4813 9290 8585 34413 28873 37734 28946 24161 18285 14296 16226 31771 15545 19395 6228 5472 1517 3425 2234 1798 5242 10799
Northern Mariana Islands MNP Children out of school, primary SE.PRM.UNER
Mozambique MOZ Children out of school, primary SE.PRM.UNER 905314 941702 744559 742373 774953 1034993 1125473 1137497 1123171 1153899 1195202 1231479 1228650 1205510 1688871 1609015 1512425 1397262 1586181 1147568 960806 816872 627534 520874 516831 503773 663691 691512 650883
Mauritania MRT Children out of school, primary SE.PRM.UNER 199218 193819 175078 166936 162187 169059 172651 162159 169235 159579 130924 140518 130814 129759 151072 158387 159589 159280 169313 156299
Mauritius MUS Children out of school, primary SE.PRM.UNER 28821 23867 15497 11115 6783 117 2017 440 679 834 3471 9002 8629 7378 6233 3573 2552 5073 9181 8761 9357 7148 7678 5259 4267 4245 3542 3326 2858 2929 2516 2167 1844
Malawi MWI Children out of school, primary SE.PRM.UNER 17496 16172 54060 53684 66605 157163 70355 62649
Malaysia MYS Children out of school, primary SE.PRM.UNER 109345 137735 148207 67435 92671 129651 103166 75173 93743
Namibia NAM Children out of school, primary SE.PRM.UNER 54038 54644 47763 43427 42509 46089 44656 40509 40913 36651 35087 31217 32619 42379 43487 48921 44832 48213 49453 50585 43474
New Caledonia NCL Children out of school, primary SE.PRM.UNER
Niger NER Children out of school, primary SE.PRM.UNER 775893 834800 923922 954063 973955 1028062 1148827 1184219 1203159 1240524 1220711 1197267 1175752 1159700 1217276 1243999 1271546 1246512 1205780 1146739 1053836 1048707 1096175
Nigeria NGA Children out of school, primary SE.PRM.UNER 7080067 6628619 6905795 6996643 7076784 6636364 8453625 8449787 8709243
Nicaragua NIC Children out of school, primary SE.PRM.UNER 198653 220812 225133 241240 221486 234150 229289 233936 252447 241124 227889 206979 204319 199198 214009 218685 158026 144220 123639 77098 59147 51432 64119 61368 50390 53792
Netherlands NLD Children out of school, primary SE.PRM.UNER 111411 123651 152768 175069 183420 177629 101872 70328 45992 36053 37640 47786 60636 68728 9370 4405 3237 3582 7438 6942 7150 7305 17661 25311 24617 16345 6174 5148 3484 1283 776 15533 33663
Norway NOR Children out of school, primary SE.PRM.UNER 3159 6164 6998 9461 12730 12159 9681 7331 3976 625 103 997 4079 4983 5695 5532 2984 990 908 1169 971 1106 624 2371 6089 5928 3782 3344 4293 4814 3100 2397 1232
Nepal NPL Children out of school, primary SE.PRM.UNER 765872 756383 682837 905936 708717 489022 497707 105685 81526 45137
New Zealand NZL Children out of school, primary SE.PRM.UNER 807 1377 2220 4105 914 789 349 146 513 400 1403 3520 8109 9839 5446 3925 852 1383 1692 3650 9723 11212 6721 5853 3178 2970 1736 1331 1743 1833 2587 5273 7432
Oman OMN Children out of school, primary SE.PRM.UNER 102555 102992 103113 96281 97475 89861 89840 96867 98598 99434 99867 99011 91182 89414 85511 75892 71876 61768 52486 46708 41330 46843 61145 10477 8213 7054 7256
Pakistan PAK Children out of school, primary SE.PRM.UNER 8799325 8509910 7511746 7164848 7640208 6620459 6282281 5728766 5153334 5479543 5370428 5544789
Panama PAN Children out of school, primary SE.PRM.UNER 39374 44425 48271 52609 53831 52262 52763 50495 53753 49093 48782 28979 23072 18921 8631 10654 14033 12339 10929 19431 33430 27756 33234 34737 38132
Peru PER Children out of school, primary SE.PRM.UNER 380889 247769 236591 125854 268448 182883 362901 384286 408125 8583 3073 844 4554 2282 3843 13037 12847 10256 10392 83120 120503 92147 128536 301703 194632
Philippines PHL Children out of school, primary SE.PRM.UNER 521397 529951 668281 740199 464101 528014 519595 352588 226166 146756 432185 534343 711026 455714 915261 1253663 1185811 1136956 1104639 1184349 1294164 1514646 1557369 1536722 1469175 1223909
Palau PLW Children out of school, primary SE.PRM.UNER 17
Papua New Guinea PNG Children out of school, primary SE.PRM.UNER 243514 165181
Poland POL Children out of school, primary SE.PRM.UNER 91544 90706 89118 100474 112499 122022 129001 121574 116560 111286 92990 80862 79063 69945 64147
Puerto Rico PRI Children out of school, primary SE.PRM.UNER 39342 49219 44638 43508
Democratic Republic of Korea PRK Children out of school, primary SE.PRM.UNER
Portugal PRT Children out of school, primary SE.PRM.UNER 39133 33304 20810 5480 3489 4777 2502 11935 2992 2044 6627 3909 19751 4243 6119 5223 6100 4556 6863 8020 27369
Paraguay PRY Children out of school, primary SE.PRM.UNER 73651 64438 42611 63773 67343 69734 77612 76265 70390 62866 55608 46762 43498 41783 73066 72008 44551 27382 17290 20657 36297 42021 45904 42605 58016 79050 101955 123659 136944 150388 163201
Pacific island small states PSS Children out of school, primary SE.PRM.UNER 32973 31538 26728 25039 24237 33242 25623 28021 35933 36264 28033 23975 23013 22978 21593 20020 19895 12857 6480 5212 5916 5727 20535
French Polynesia PYF Children out of school, primary SE.PRM.UNER 1182 1168 1514 295 135 395 982 1222
Qatar QAT Children out of school, primary SE.PRM.UNER 923 1404 1188 1934 2090 2946 2822 4398 5287 6105 7381 10133 11159 11075 7729 385 2820 2681 2346 1530 3247 2782
Romania ROM Children out of school, primary SE.PRM.UNER 271658 170767 129190 142406 170096 133467 165185 139095 96628 39072 2553 10073 10403 43947 49797 55020 55942 60623 66744 84187
Russian Federation RUS Children out of school, primary SE.PRM.UNER 243998 493082 397419 352731 287620 217543 148497 151247 146243
Rwanda RWA Children out of school, primary SE.PRM.UNER 222976 189067 122758 215001 29304 23118 118633
Saudi Arabia SAU Children out of school, primary SE.PRM.UNER 473769 265365 275505 216133 115277
Sudan SDN Children out of school, primary SE.PRM.UNER 2810907 2692774
Senegal SEN Children out of school, primary SE.PRM.UNER 594437 605442 613989 620820 638453 655383 600821 637150 666239 694172 731547 761230 742276 702333 684666 720698 686607 610131 554281 469111 494564 481398 448694 474411 485247 487486 438556
Singapore SGP Children out of school, primary SE.PRM.UNER
Solomon Islands SLB Children out of school, primary SE.PRM.UNER 18201 14734 14922
Sierra Leone SLE Children out of school, primary SE.PRM.UNER 352310
El Salvador SLV Children out of school, primary SE.PRM.UNER 219595 139470 130669 111496 107960 50383 50984 53289 53560 52706 44718 39400 40525 58489
San Marino SMR Children out of school, primary SE.PRM.UNER 135 98 117
Somalia SOM Children out of school, primary SE.PRM.UNER 786130
Serbia SRB Children out of school, primary SE.PRM.UNER 937 422 4878 5765 11309 16133 16788 21878 10450
South Sudan SSD Children out of school, primary SE.PRM.UNER 992293
Sao Tome and Principe STP Children out of school, primary SE.PRM.UNER 621 450 92 83 491 4698 895 627 164 95 685 286 541 339 898
Suriname SUR Children out of school, primary SE.PRM.UNER 553 704 822 928 5678 6444 9364 6995 5775 4802 12080
Slovak Republic SVK Children out of school, primary SE.PRM.UNER
Slovenia SVN Children out of school, primary SE.PRM.UNER 7515 5661 4895 2505 3548 4339 3782 3308 2716 1289 2070 2949 3411 2961 2890 2988 3034 2468 2989
Sweden SWE Children out of school, primary SE.PRM.UNER 25575 10923 9202 6948 2575 1366 881 2203 654 7155 1259 1159 1608 4064 1973 3463 6006 21553 31117 31812 23255 9399 3732 3428 3027 3042 2416
Swaziland SWZ Children out of school, primary SE.PRM.UNER 37609 34918 36009 38273 38823 37796 40953 41876 44346 47132 45470 47055 47624 52352 53517 53534 60347 63708 65780 62186 60819 60503 59416 53189 50513 37745 31857
Sint Maarten Dutch SXM Children out of school, primary SE.PRM.UNER
Seychelles SYC Children out of school, primary SE.PRM.UNER 814 396 212 218 26 1060 481 407 396 63
Syrian Arab Republic SYR Children out of school, primary SE.PRM.UNER 219150 228175 233025 234892 210517 190186 164415 100793 106640 102549 112156 96954 89904 90744 86863 87356 90441 104250 80981 89033 80670 63616 59899 29324 19259 15884 17763 19831 18171 19402 18600 715674
Turks and Caicos Islands TCA Children out of school, primary SE.PRM.UNER 532 353 477
Chad TCD Children out of school, primary SE.PRM.UNER 612851 763393 724218 684593 685822 689034 696974 673419 678954 770441 316427
Togo TGO Children out of school, primary SE.PRM.UNER 126179 147827 166142 209887 228450 261668 218377 223770 229483 228566 217904 267761 211446 160709 182889 91385 122035 101961 75602 94531 71533 75758 59924 82134 67071 26780
Thailand THA Children out of school, primary SE.PRM.UNER 371322 339424 306596 243883
Tajikistan TJK Children out of school, primary SE.PRM.UNER 40261 41169 26946 21480 18511 18001 19035 24904 14980 13840 12332 13006 7099
Turkmenistan TKM Children out of school, primary SE.PRM.UNER
Timor-Leste TMP Children out of school, primary SE.PRM.UNER 59260 44888 28449 16117
Tonga TON Children out of school, primary SE.PRM.UNER 178 1381 158 434 465 1188 1144 797 1278 146 287 178 168 247 2457
Trinidad and Tobago TTO Children out of school, primary SE.PRM.UNER 22356 14338 12423 12623 14014 13701 17054 13723 12579 15638 19757 21135 22385 24255 21672 21098 3543 2723 3425 7996 5698 4588 8251 3889 2555 2179 1640
Tunisia TUN Children out of school, primary SE.PRM.UNER 171701 145472 114001 94641 87670 82608 78131 74475 86710 89871 101716 87972 80536 62532 50928 34433 33722 39867 45648 45460 40336 19620 17631 16398 28473 14516 12668 2323 1825 1981 1898 510 2206
Turkey TUR Children out of school, primary SE.PRM.UNER 577793 537562 574435 479238 483979 369384 409250 392435 545470 591242 620627 571857 367311 265997 230645 209146 181569 161440 142386 117077 90398 74171 228572 184747 243731 312679 247557
Tuvalu TUV Children out of school, primary SE.PRM.UNER 195
Taiwan, China TWN Children out of school, primary SE.PRM.UNER
Tanzania TZA Children out of school, primary SE.PRM.UNER 1057362 1137014 1359399 1455742 1635559 1807698 1926312 2055992 2198302 2271695 2370899 2483446 2563749 2692755 2845187 2930858 3007236 3059709 3159062 3194326 3019200 2769796 1816743 1266341 979505 674100 282148 168478 694158 1100399 1423949
Uganda UGA Children out of school, primary SE.PRM.UNER 1520165 1519950 1304562 595539 840206 662974 660049
Ukraine UKR Children out of school, primary SE.PRM.UNER 90802 209245 192413 172516 180380 176405 167485 145561 89371 38091 24365 34632
Uruguay URY Children out of school, primary SE.PRM.UNER 43923 43594 38946 37781 40513 25102 18814 16639 21782 23555 25384 25127 7779 159 6092 2462 1848 496
United States USA Children out of school, primary SE.PRM.UNER 1431529 1121870 608794 664859 1159194 1262770 952491 1081306 840817 826779 774457 1255751 1380546 1648192 1428083 1171617 935399 874649 1231167 1540821 1757331 1800414 1888429
Uzbekistan UZB Children out of school, primary SE.PRM.UNER 166198 197683 208180 189949 177691
St. Vincent and the Grenadines VCT Children out of school, primary SE.PRM.UNER 1266 585 99 293 151 81 94 260 230 354 233 206 443 116 486
Venezuela, RB VEN Children out of school, primary SE.PRM.UNER 449613 361576 268120 165930 209580 201966 245091 225777 196116 264517 203375 180935 185834 190870 221811
Vietnam VNM Children out of school, primary SE.PRM.UNER 533157 767536 195722 278210 380877 504389 772299 771939 536016 72958 64427 122809 40219 121992 130057
Vanuatu VUT Children out of school, primary SE.PRM.UNER 2988 6090 558 686 202 128 238 105 762 277
West Bank and Gaza WBG Children out of school, primary SE.PRM.UNER 24153 29717 44233 50198 56342 64882 73858 69961 70353 61564 54629 49798 45862 32639 29745
Samoa WSM Children out of school, primary SE.PRM.UNER 1780 1059 2079 2464 1533 456 73 902 1391 1103
Yemen YEM Children out of school, primary SE.PRM.UNER 1338154 1131419 972836 887055 825676 846698 656001 490049 443893
South Africa ZAF Children out of school, primary SE.PRM.UNER 677096 412052 350406 323358 256000 401135 397849 389158 346730 335687 366511
Democratic Republic of Congo ZAR Children out of school, primary SE.PRM.UNER 1111045 1112641 1854342 2253343 2464238 2650337 2694587 2263759 4886134
Zambia ZMB Children out of school, primary SE.PRM.UNER 236653 240261 246128 231545 222821 217485 257068 371384 407889 487831 525862 539553 557895 512894 275327 104830 127261 115799 112146 196177 271516 170939 124814 195582
Zimbabwe ZWE Children out of school, primary SE.PRM.UNER 36905 18828 30598 435840 379532 352225 301009 379419 401888 139194
Missing Data 103641128 94074443 98080665 93275451 89530210 83519992 79393410 71243032 70000237 71796949 57633709 82836734 82310461 79205017 73228979 75823037 76450781 78130731 80913033 50259594 38821921 43487428 24907905 27843956 30110905 27106842 20854674 28105722 24500244 21856088 27454429 32379793 33347990 38461486
date Fragile and conflict affected situations Girls Fragile and conflict affected situations Boys Heavily indebted poor countries Girls Heavily indebted poor countries Boys High income: non-OECD Girls/Boys High income: OECD Girls/Boys
1980 7.91E+06 5.75E+06 1.27E+07 1.07E+07 1.10E+06 9.62E+05 1.52E+06 1.76E+06
1981 7.70E+06 5.59E+06 1.27E+07 1.07E+07 1.16E+06 1.02E+06 1.57E+06 1.80E+06
1982 8.02E+06 5.78E+06 1.32E+07 1.11E+07 1.21E+06 1.07E+06 1.37E+06 1.56E+06
1983 8.11E+06 5.86E+06 1.34E+07 1.12E+07 1.28E+06 1.15E+06 1.57E+06 1.78E+06
1984 8.26E+06 5.99E+06 1.38E+07 1.16E+07 1.31E+06 1.20E+06 1.67E+06 1.90E+06
1985 8.53E+06 6.18E+06 1.42E+07 1.20E+07 1.28E+06 1.18E+06 1.59E+06 1.82E+06
1986 8.56E+06 6.29E+06 1.45E+07 1.24E+07 1.24E+06 1.15E+06 1.33E+06 1.52E+06
1987 8.94E+06 6.60E+06 1.52E+07 1.30E+07 1.19E+06 1.10E+06 1.13E+06 1.32E+06
1988 9.07E+06 6.84E+06 1.56E+07 1.35E+07 1.17E+06 1.08E+06 1.02E+06 1.19E+06
1989 9.58E+06 7.19E+06 1.64E+07 1.42E+07 1.21E+06 1.13E+06 9.59E+05 1.11E+06
1990 1.02E+07 7.76E+06 1.72E+07 1.49E+07 1.23E+06 1.16E+06 9.07E+05 1.07E+06
1991 9.68E+06 7.42E+06 1.72E+07 1.50E+07 1.11E+06 1.03E+06 9.61E+05 1.09E+06
1992 1.01E+07 7.76E+06 1.80E+07 1.57E+07 1.07E+06 9.70E+05 1.20E+06 1.36E+06
1993 1.03E+07 7.99E+06 1.87E+07 1.62E+07 1.05E+06 9.72E+05 1.35E+06 1.48E+06
1994 1.04E+07 8.00E+06 1.89E+07 1.64E+07 1.11E+06 1.06E+06 1.34E+06 1.51E+06
1995 1.06E+07 7.80E+06 1.91E+07 1.59E+07 1.22E+06 1.20E+06 1.19E+06 1.29E+06
1996 1.11E+07 8.18E+06 1.96E+07 1.62E+07 1.17E+06 1.15E+06 1.16E+06 1.26E+06
1997 1.14E+07 8.53E+06 1.91E+07 1.56E+07 1.16E+06 1.16E+06 9.43E+05 1.04E+06
1998 1.16E+07 8.88E+06 1.95E+07 1.60E+07 1.17E+06 1.17E+06 7.23E+05 8.17E+05
1999 1.19E+07 9.46E+06 1.98E+07 1.66E+07 1.14E+06 1.14E+06 6.91E+05 7.72E+05
2000 1.20E+07 9.39E+06 1.95E+07 1.63E+07 9.89E+05 1.01E+06 6.97E+05 7.38E+05
2001 1.18E+07 9.11E+06 1.89E+07 1.57E+07 7.86E+05 7.99E+05 6.28E+05 8.21E+05
2002 1.13E+07 8.69E+06 1.79E+07 1.48E+07 6.31E+05 6.27E+05 9.16E+05 1.14E+06
2003 1.08E+07 8.34E+06 1.70E+07 1.41E+07 6.62E+05 6.41E+05 1.03E+06 1.21E+06
2004 1.04E+07 8.09E+06 1.63E+07 1.36E+07 6.57E+05 6.25E+05 1.16E+06 1.37E+06
2005 1.05E+07 8.01E+06 1.56E+07 1.27E+07 8.76E+05 8.81E+05 1.02E+06 1.21E+06
2006 1.02E+07 7.79E+06 1.49E+07 1.21E+07 8.04E+05 8.23E+05 8.04E+05 1.05E+06
2007 1.02E+07 7.70E+06 1.44E+07 1.16E+07 7.42E+05 7.50E+05 6.80E+05 8.56E+05
2008 9.50E+06 7.13E+06 1.31E+07 1.04E+07 6.74E+05 6.89E+05 6.37E+05 7.63E+05
2009 9.53E+06 7.10E+06 1.32E+07 1.06E+07 5.24E+05 5.67E+05 7.23E+05 1.00E+06
2010 9.46E+06 7.01E+06 1.33E+07 1.08E+07 3.62E+05 4.43E+05 9.55E+05 1.09E+06
2011 9.36E+06 6.92E+06 1.29E+07 1.06E+07 3.40E+05 4.46E+05 1.03E+06 1.28E+06
2012 8.85E+06 6.59E+06 1.25E+07 1.04E+07 3.00E+05 4.09E+05 1.13E+06 1.23E+06
2013 9.09E+06 6.84E+06 1.25E+07 1.05E+07 2.87E+05 3.47E+05 1.21E+06 1.31E+06
countryName Country Code Indicator Name Gender 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015
Girls WLD F Children out of school, primary, female 75469192 73908840 73618600 73425272 72578816 69813224 66151592 64852536 62684704 62117196 62216716 62746000 64830256 65130852 65342800 67551456 68602016 68220480 65640488 61223784 57544716 54850356 52323324 44808500 42651800 40975372 38153704 33802472 32307050 31434980 30542788 30055752 30184814 30888304
Boys WLD M Children out of school, primary, male 41762708 40798880 40451408 40515512 40818808 40599184 39981724 39964376 39524732 39351580 39570248 39802052 42132848 43869664 45525712 47260924 49326456 49328620 46673560 43597152 41108864 39548252 38216872 36158128 33312396 31093920 30057266 26376992 26445828 26607320 26351302 27413984 27680944 28367072
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Stacked area chart</title>
<script type="text/javascript" src="//d3js.org/d3.v3.min.js"></script>
<style type="text/css">
body {
background-color: #d1be91;
font-family: Helvetica, Arial, sans-serif;
}
.axis path,
.axis line {
fill: none;
stroke: #000;
shape-rendering: crispEdges;
}
.line {
fill: none;
stroke: steelblue;
stroke-width: 1.5px;
}
#container {
width:475px;
margin-left: 10px;
margin-right: 5px;
margin-top: 20px;
padding: 10px;
float: left;
background-color: white;
box-shadow: 1px 1px 2px 2px #4d462f;
}
#container2 {
width:400px;
margin-left: 10px;
margin-right: 5px;
margin-top: 20px;
padding: 10px;
background-color: white;
float: left;
box-shadow: 1px 1px 2px 2px #4d462f;
}
#container3 {
width:900px;
margin-left: 10px;
margin-right: 5px;
margin-top: 20px;
padding: 10px;
background-color: #c7c378;
box-shadow: 1px 1px 2px 2px #4d462f;
}
#container4 {
width:900px;
margin-left: 10px;
margin-right: 5px;
margin-top: 20px;
padding: 10px;
background-color: white;
float: left;
box-shadow: 1px 1px 2px 2px #4d462f;
}
h1 {
font-size: 18px;
margin: 0;
}
p {
font-size: 10px;
margin: 10px 0 0 0;
}
p2 {
font-size: 12px;
margin: 10px 0 0 0;
}
svg {
background-color: white;
}
path:hover {
fill: orange;
}
.axis path,
.axis line {
fill: none;
stroke: black;
shape-rendering: crispEdges;
}
.axis text {
font-family: sans-serif;
font-size: 9px;
}
.city text {
font-family: sans-serif;
font-size: 9px;
}
</style>
</head>
<body>
<div id="container3">
<h1>There are still too many young children who don't attend school</h1>
<p2>Universal Primary Education is considered to be a human right by UNICEF. Much work has been done towards reducing out of school children in the past 20 years. Substantial reduction in both the number and the gender gap has been achieved. However, there is a long way to go. Girls still significantly outnumber boys in vulnerable and conflict areas around the world. As well, the accuracy of data collection itself must be improved. Data Source: <a href="http://data.worldbank.org/indicator/SE.PRM.UNER">World Bank</a>, 2014</p2>
</div>
<div id="container">
<h1>Primary Aged Children Out of School by Country</h1>
<p>Total count of primary aged school children who do not attend school, 1980-2010. Data not available for the entire period for all countries. </p>
</div>
<div id="container2">
<h1>Children Out of School by Gender</h1>
<p>In the past 30 years, the greatest reduction in the counts of our primary aged children not in school has been among girls. Data not available for the entire period for all countries.</p>
</div>
<div id="container4">
<h1>Children Out of School by Selected Regions</h1>
<p>Primary aged children out of school are most common in highly vulnerable and conflicted regions around the globe. It's important to see that while gender parity has been achieved in high income states. Among the most vulnerable children, girls are still more likely to not attend primary school than boys.</p>
</div>
<script type="text/javascript">
//Set up stack method
var stack = d3.layout.stack()
.values(function(d) {
return d.kids;
})
.order("reverse");
//Width, height, padding
var w = 470;
var h = 250;
var padding = [ 20, -10, 20, 65 ]; //Top, right, bottom, left
var margin = {top: 30, right: 0, bottom: 30, left: 50};
//Set up date format function (years)
var dateFormat = d3.time.format("%Y");
//Set up scales
var xScale = d3.time.scale()
.range([ padding[3], w - padding[1] - padding[3] ]);
var yScale = d3.scale.linear()
.range([ padding[0], h - padding[2] ]);
//Configure axis generators
var xAxis = d3.svg.axis()
.scale(xScale)
.orient("bottom")
.ticks(15)
.tickFormat(function(d) {
return dateFormat(d);
});
var yAxis = d3.svg.axis()
.scale(yScale)
.orient("left")
.ticks(5);
//Configure area generator
var area = d3.svg.area()
.x(function(d) {
return xScale(dateFormat.parse(d.x));
})
.y0(function(d) {
return yScale(d.y0); //Updated
})
.y1(function(d) {
return yScale(d.y0 + d.y); //Updated
});
var color2 = d3.scale.ordinal()
.domain(["foo", "bar", "baz"])
.range(["#ffbc67","#da727e","#ac6c82"]);
var color3 = d3.scale.ordinal()
.domain(["Afghanistan", "Albania", "Algeria", "American Samoa",
"Andorra", "Angola", "Antigua and Barbuda", "Argentina", "Armenia",
"Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh",
"Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda",
"Bhutan", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Brazil",
"Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cabo Verde",
"Cambodia", "Cameroon", "Canada", "Cayman Islands", "Central African Republic",
"Chad", "Channel Islands", "Chile", "China", "Colombia", "Comoros",
"Costa Rica", "Cote Ivoire", "Croatia", "Cuba", "Curacao",
"Cyprus", "Czech Republic", "Democratic Republic of Congo", "Democratic Republic of Korea",
"Denmark", "Djibouti", "Dominica", "Dominican Republic", "Ecuador",
"Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia",
"Ethiopia", "Euro area", "Faeroe Islands", "Fiji", "Finland",
"France", "French Polynesia", "Gabon", "Gambia", "Georgia", "Germany",
"Ghana", "Greece", "Greenland", "Grenada", "Guam", "Guatemala",
"Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Honduras", "Hong Kong",
"Hungary", "Iceland", "India", "Indonesia", "Iran ", "Iraq",
"Ireland", "Isle of Man", "Israel", "Italy", "Jamaica", "Japan",
"Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea", "Kosovo",
"Kuwait", "Kyrgyz Republic", "Lao PDR", "Latvia", "Lebanon",
"Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania",
"Luxembourg", "Macao SAR, China", "Macedonia, FYR", "Madagascar",
"Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands",
"Mauritania", "Mauritius", "Mexico", "Micronesia", "Missing Data",
"Moldova", "Monaco", "Mongolia", "Montenegro", "Morocco", "Mozambique",
"Myanmar", "Namibia", "Nepal", "Netherlands", "New Caledonia",
"New Zealand", "Nicaragua", "Niger", "Nigeria", "Northern Mariana Islands",
"Norway", "Oman", "Pacific island small states", "Pakistan",
"Palau", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines",
"Poland", "Portugal", "Puerto Rico", "Qatar", "Republic of Congo",
"Romania", "Russian Federation", "Rwanda", "Samoa", "San Marino",
"Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia",
"Seychelles", "Sierra Leone", "Singapore", "Sint Maarten Dutch",
"Slovak Republic", "Slovenia", "Solomon Islands", "Somalia",
"South Africa", "South Sudan", "Spain", "Sri Lanka", "St. Kitts and Nevis",
"St. Lucia", "St. Martin", "St. Vincent and the Grenadines",
"Sudan", "Suriname", "Swaziland", "Sweden", "Switzerland", "Syrian Arab Republic",
"Taiwan, China", "Tajikistan", "Tanzania", "Thailand", "Timor-Leste",
"Togo", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey",
"Turkmenistan", "Turks and Caicos Islands", "Tuvalu", "Uganda",
"Ukraine", "United Arab Emirates", "United Kingdom", "United States",
"Uruguay", "Uzbekistan", "Vanuatu", "Venezuela, RB", "Vietnam",
"West Bank and Gaza", "Yemen", "Zambia", "Zimbabwe"])
.range(["#e0ecf4", "#bfd3e6" , "#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b","#e0ecf4", "#bfd3e6" , "#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b","#e0ecf4", " #bfd3e6", "#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b","#e0ecf4", "#bfd3e6" , "#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b","#e0ecf4", "#bfd3e6" , "#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b","#e0ecf4", "#bfd3e6" , "#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#e0ecf4",
"#e0ecf4", "#bfd3e6" , "#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b","#e0ecf4", "#4d004b" , "#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b","#e0ecf4", "#bfd3e6" , "#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b","#e0ecf4", "#bfd3e6" , "#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b","#e0ecf4", "#bfd3e6" , "#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b","#4d004b", "#bfd3e6" , "#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b","#e0ecf4", "#bfd3e6" , "#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b","#e0ecf4", "#bfd3e6" , "#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b","#4d004b", "#bfd3e6" , "#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b","#e0ecf4", "#bfd3e6" , "#9ebcda","#8c96c6","#aeeeoo","#8c6bb1","#88419d","#810f7c","#aeeeoo"])
//Easy colors accessible via a 10-step ordinal scale
var color = d3.scale.category20b();
//Create the empty SVG image
var svg = d3.select("#container")
.append("svg")
.attr("width", w)
.attr("height", h);
//Load data
d3.csv("ChildrenOOS.csv", function(data) {
//Uncomment to log the newly loaded data to the console
//console.log(data);
//New array with all the years, for referencing later
var years = [ "1980", "1981", "1982", "1983", "1984", "1985", "1986", "1987", "1988", "1989", "1990", "1991", "1992", "1993", "1994", "1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009", "2010"];
//Create a new, empty array to hold our restructured dataset
var dataset = [];
//Loop once for each row in data
for (var i = 0; i < data.length; i++) {
//Create new object with this country's name and empty array
dataset[i] = {
country: data[i].countryName,
kids: []
};
//Loop through all the years
for (var j = 0; j < years.length; j++) {
//Default value, used in case no value is present
var amount = null;
// If value is not empty
if (data[i][years[j]]) {
amount = +data[i][years[j]];
}
//Add a new object to the emissions data array
//for this country
dataset[i].kids.push({
x: years[j],
y: amount
});
}
}
//Stack the data!
stack(dataset);
//Uncomment to log the original data to the console
//console.log(data);
//Uncomment to log the newly restructured dataset to the console
//console.log(dataset);
//Now that the data is ready, we can check its
//min and max values to set our scales' domains!
xScale.domain([
d3.min(years, function(d) {
return dateFormat.parse(d);
}),
d3.max(years, function(d) {
return dateFormat.parse(d);
})
]);
//Need to recalcluate the max value for yScale
//differently, now that everything is stacked.
//Loop once for each year, and get the total value
//of CO2 for that year.
var totals = [];
for (i = 0; i < years.length; i++) {
totals[i] = 0;
for (j = 0; j < dataset.length; j++) {
totals[i] += dataset[j].kids[i].y;
}
}
yScale.domain([ d3.max(totals), 0 ]);
//Areas
//
//Now that we are creating multiple paths, we can use the
//selectAll/data/enter/append pattern to generate as many
//as needed.
//Make a path for each country
var paths = svg.selectAll("path")
.data(dataset)
.enter()
.append("path")
.attr("class", "area")
.attr("d", function(d) {
//Calculate path based on only d.kids array,
//not all of d (which would include the country name)
return area(d.kids);
})
.attr("stroke", "none")
.attr("fill", function(d, i) {
return color3(i);
});
//Append a title with the country name (so we get easy tooltips)
paths.append("title")
.text(function(d) {
return d.country;
});
//Create axes
svg.append("g")
.attr("class", "x axis")
.attr("transform", "translate(0," + (h - padding[2]) + ")")
.call(xAxis);
svg.append("g")
.attr("class", "y axis")
.attr("transform", "translate(" + padding[3] + ",0)")
.call(yAxis)
.append("text")
.attr("y", 60)
.attr("dy", ".71em")
.style("text-anchor", "end")
.text("Children");
// Add the text label for the Y axis - THIS ISN"T WORKING
svg.append("text")
.attr("transform", "rotate(-90)")
.attr("y", 0 - margin.left)
.attr("x",0 - (h / 2))
.attr("dy", "1em")
.style("text-anchor", "middle")
.text("Children");
});
//Second chart starts here
var w2 = 375;
var h2 = 250;
var color2 = d3.scale.ordinal()
.domain(["foo", "bar", "baz"])
.range(["#605e3a","#523631","#4d462f"]);
//Easy colors accessible via a 10-step ordinal scale
var color = d3.scale.category20b();
//Create the empty SVG image
var svg2 = d3.select("#container2")
.append("svg")
.attr("width", w2)
.attr("height", h2);
//Load data
d3.csv("ChildrenOOSWorld.csv", function(data) {
//Uncomment to log the newly loaded data to the console
//console.log(data);
//Data is loaded in, but we need to restructure it.
//Remember, each line requires an array of x/y pairs;
//that is, an array of arrays, like so:
//
// [ [x: 1, y: 1], [x: 2, y: 2], [x: 3, y: 3] ]
//
//Our x value will be the year, and y will be the amount
//of CO2. We also need to know which country belongs to
//each line, so we will build an array of objects that is
//structured like this:
//
//
//Note that this is an array of objects. Each object
//contains two values, 'country' and 'emissions'.
//The 'emissions' value is itself an array, containing
//more objects, each one holding x and y values.
//
//The x (year) values have to be strings in this case,
//because the date format function expects a string
//to parse into a Date object.
//New array with all the years, for referencing later
var years = [ "1980", "1981", "1982", "1983", "1984", "1985", "1986", "1987", "1988", "1989", "1990", "1991", "1992", "1993", "1994", "1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009", "2010"];
//Create a new, empty array to hold our restructured dataset
var dataset2 = [];
//Loop once for each row in data
for (var i = 0; i < data.length; i++) {
//Create new object with this country's name and empty array
dataset2[i] = {
country: data[i].countryName,
kids: []
};
//Loop through all the years
for (var j = 0; j < years.length; j++) {
//Default value, used in case no value is present
var amount = null;
// If value is not empty
if (data[i][years[j]]) {
amount = +data[i][years[j]];
}
//Add a new object to the emissions data array
//for this country
dataset2[i].kids.push({
x: years[j],
y: amount
});
}
}
//Stack the data!
stack(dataset2);
//Uncomment to log the original data to the console
//console.log(data);
//Uncomment to log the newly restructured dataset to the console
//console.log(dataset);
//Now that the data is ready, we can check its
//min and max values to set our scales' domains!
xScale.domain([
d3.min(years, function(d) {
return dateFormat.parse(d);
}),
d3.max(years, function(d) {
return dateFormat.parse(d);
})
]);
//Need to recalcluate the max value for yScale
//differently, now that everything is stacked.
//Loop once for each year, and get the total value
//of CO2 for that year.
var totals = [];
for (i = 0; i < years.length; i++) {
totals[i] = 0;
for (j = 0; j < dataset2.length; j++) {
totals[i] += dataset2[j].kids[i].y;
}
}
yScale.domain([ d3.max(totals), 0 ]);
//Areas
//
//Now that we are creating multiple paths, we can use the
//selectAll/data/enter/append pattern to generate as many
//as needed.
//Make a path for each country
var paths = svg2.selectAll("path")
.data(dataset2)
.enter()
.append("path")
.attr("class", "area")
.attr("d", function(d) {
//Calculate path based on only d.kids array,
//not all of d (which would include the country name)
return area(d.kids);
})
.attr("stroke", "none")
.attr("fill", function(d, i) {
return color2(i);
});
//Append a title with the country name (so we get easy tooltips)
paths.append("title")
.text(function(d) {
return d.country;
});
//Create axes
svg2.append("g")
.attr("class", "x axis")
.attr("transform", "translate(0," + (h2 - padding[2]) + ")")
.call(xAxis);
svg2.append("g")
.attr("class", "y axis")
.attr("transform", "translate(" + padding[3] + ",0)")
.call(yAxis)
.append("text")
.attr("y", 60)
.attr("dy", ".71em")
.style("text-anchor", "end")
.text("Children");;
});
//Third Chart
var margin3 = {top: 20, right: 250, bottom: 30, left: 90},
width3 = 860 - margin3.left - margin3.right,
height3 = 300 - margin3.top - margin3.bottom;
var parseDate = d3.time.format("%Y").parse;
var x = d3.time.scale()
.range([0, width3]);
var y = d3.scale.linear()
.range([height3, 0]);
var color4 = d3.scale.category10();
var xAxis2 = d3.svg.axis()
.scale(x)
.orient("bottom");
var yAxis2 = d3.svg.axis()
.scale(y)
.orient("left");
var line = d3.svg.line()
.interpolate("basis")
.x(function(d) { return x(d.date); })
.y(function(d) { return y(d.temperature); });
var svg5 = d3.select("#container4").append("svg")
.attr("width", width3 + margin3.left + margin3.right)
.attr("height", height3 + margin3.top + margin3.bottom)
.append("g")
.attr("transform", "translate(" + margin3.left + "," + margin3.top + ")");
d3.csv("ChildrenOOSLine2.csv", function(error, data) {
if (error) throw error;
color4.domain(d3.keys(data[0]).filter(function(key) { return key !== "date"; }));
data.forEach(function(d) {
d.date = parseDate(d.date);
});
var cities = color4.domain().map(function(name) {
return {
name: name,
values: data.map(function(d) {
return {date: d.date, temperature: +d[name]};
})
};
});
x.domain(d3.extent(data, function(d) { return d.date; }));
y.domain([
d3.min(cities, function(c) { return d3.min(c.values, function(v) { return v.temperature; }); }),
d3.max(cities, function(c) { return d3.max(c.values, function(v) { return v.temperature; }); })
]);
svg5.append("g")
.attr("class", "x axis")
.attr("transform", "translate(0," + height3 + ")")
.call(xAxis2);
svg5.append("g")
.attr("class", "y axis")
.call(yAxis2)
.append("text")
.attr("transform", "rotate(-90)")
.attr("y", 6)
.attr("dy", ".71em")
.style("text-anchor", "end")
.text("Children");
var city = svg5.selectAll(".city")
.data(cities)
.enter().append("g")
.attr("class", "city");
city.append("path")
.attr("class", "line")
.attr("d", function(d) { return line(d.values); })
.style("stroke", function(d) { return color4(d.name); });
city.append("text")
.datum(function(d) { return {name: d.name, value: d.values[d.values.length - 1]}; })
.attr("transform", function(d) { return "translate(" + x(d.value.date) + "," + y(d.value.temperature) + ")"; })
.attr("x", 3)
.text(function(d) { return d.name; });
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment