Skip to content

Instantly share code, notes, and snippets.

@parker-jana
Last active January 30, 2016 21:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parker-jana/3584ca150a59d28a6463 to your computer and use it in GitHub Desktop.
Save parker-jana/3584ca150a59d28a6463 to your computer and use it in GitHub Desktop.
Comparison of world flags
{
"rows": [
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
648,
16,
1,
1,
0,
1,
1,
1,
0,
0,
0,
1,
0,
0,
0,
3,
5,
0,
0,
0,
0,
1
],
"id": "Afghanistan"
},
{
"data": [
0,
0,
1,
0,
0,
0,
1,
1,
29,
3,
1,
0,
0,
1,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0,
3,
0,
0,
0,
0,
1
],
"id": "Albania"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
1,
2388,
20,
1,
1,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0,
2,
0,
3,
0,
0,
0,
0,
1
],
"id": "Algeria"
},
{
"data": [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
1,
1,
1,
0,
1,
0,
1,
1,
1,
0,
0,
0,
5,
0,
0,
0,
0,
0
],
"id": "American-Samoa"
},
{
"data": [
0,
0,
1,
0,
0,
0,
1,
1,
0,
0,
1,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
3,
0,
3,
0,
0,
0,
0,
0
],
"id": "Andorra"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
0,
1247,
7,
1,
0,
0,
1,
0,
1,
0,
0,
0,
1,
0,
0,
0,
2,
3,
0,
0,
0,
0,
1
],
"id": "Angola"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
1,
0,
1,
0,
0,
0,
1,
0,
0,
1,
3,
0,
0,
0,
0,
0
],
"id": "Anguilla"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
0,
1,
1,
1,
1,
0,
0,
1,
0,
0,
0,
0,
1,
5,
0,
0,
0,
0,
1
],
"id": "Antigua-Barbuda"
},
{
"data": [
0,
1,
0,
0,
0,
0,
0,
0,
2777,
28,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
3,
2,
0,
0,
0,
0,
0
],
"id": "Argentina"
},
{
"data": [
0,
0,
0,
0,
0,
1,
1,
0,
7690,
15,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
3,
0,
1,
1,
1,
6
],
"id": "Australia"
},
{
"data": [
0,
0,
1,
0,
0,
0,
1,
1,
84,
8,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
3,
2,
0,
0,
0,
0,
0
],
"id": "Austria"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
19,
0,
0,
0,
1,
1,
0,
1,
0,
0,
1,
0,
0,
0,
0,
3,
3,
0,
0,
0,
0,
0
],
"id": "Bahamas"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
1,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
2,
0,
0,
0,
0,
0
],
"id": "Bahrain"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
143,
90,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
2,
1,
0,
0,
0,
0
],
"id": "Bangladesh"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
1,
0,
1,
0,
0,
0,
1,
0,
0,
3,
0,
3,
0,
0,
0,
0,
0
],
"id": "Barbados"
},
{
"data": [
0,
0,
1,
0,
0,
0,
1,
1,
31,
10,
1,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
3,
0,
3,
0,
0,
0,
0,
0
],
"id": "Belgium"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
23,
0,
1,
1,
1,
1,
1,
1,
1,
0,
0,
1,
1,
1,
0,
2,
8,
1,
0,
0,
0,
0
],
"id": "Belize"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
1,
113,
3,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
2,
0,
0,
0,
0,
1
],
"id": "Benin"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
1,
1,
1,
1,
1,
0,
0,
0,
1,
1,
0,
0,
0,
6,
1,
1,
1,
1,
0
],
"id": "Bermuda"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
47,
1,
1,
0,
0,
0,
1,
1,
1,
0,
0,
0,
1,
0,
0,
0,
4,
4,
0,
0,
0,
0
],
"id": "Bhutan"
},
{
"data": [
0,
1,
0,
0,
0,
0,
0,
0,
1099,
6,
1,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
3,
3,
0,
0,
0,
0,
0
],
"id": "Bolivia"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
0,
600,
1,
0,
0,
1,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
5,
3,
0,
0,
0,
0,
0
],
"id": "Botswana"
},
{
"data": [
0,
1,
0,
0,
0,
0,
0,
0,
8512,
119,
0,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
4,
1,
0,
0,
0,
22
],
"id": "Brazil"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
1,
1,
1,
1,
0,
1,
0,
0,
1,
1,
1,
0,
0,
6,
0,
1,
1,
1,
0
],
"id": "British-Virgin-Isles"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
6,
0,
1,
0,
0,
1,
1,
1,
0,
0,
1,
1,
1,
1,
0,
0,
4,
0,
0,
0,
0,
0
],
"id": "Brunei"
},
{
"data": [
0,
0,
1,
0,
0,
0,
1,
1,
111,
9,
1,
1,
1,
1,
1,
0,
0,
0,
0,
1,
1,
0,
0,
3,
5,
0,
0,
0,
0,
1
],
"id": "Bulgaria"
},
{
"data": [
0,
0,
0,
1,
0,
0,
0,
1,
274,
7,
1,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
2,
3,
0,
0,
0,
0,
1
],
"id": "Burkina"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
678,
35,
1,
0,
1,
0,
1,
0,
0,
0,
0,
1,
1,
0,
0,
0,
3,
0,
0,
0,
1,
14
],
"id": "Burma"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
0,
28,
4,
1,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
3,
1,
0,
1,
0,
3
],
"id": "Burundi"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
1,
474,
8,
1,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
3,
0,
3,
0,
0,
0,
0,
1
],
"id": "Cameroon"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
9976,
24,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
1,
0,
2,
0,
2,
0,
0,
0,
0,
0
],
"id": "Canada"
},
{
"data": [
0,
0,
0,
1,
0,
0,
0,
1,
4,
0,
1,
1,
0,
1,
0,
1,
1,
0,
0,
0,
1,
0,
1,
2,
5,
0,
0,
0,
0,
1
],
"id": "Cape-Verde-Islands"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
1,
1,
1,
1,
0,
1,
0,
0,
1,
1,
1,
0,
0,
6,
1,
1,
1,
1,
4
],
"id": "Cayman-Islands"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
1,
623,
2,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
1,
0,
5,
0,
0,
0,
0,
1
],
"id": "Central-African-Republic"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
1,
1284,
4,
1,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
3,
0,
3,
0,
0,
0,
0,
0
],
"id": "Chad"
},
{
"data": [
0,
1,
0,
0,
0,
0,
0,
0,
757,
11,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
2,
3,
0,
0,
0,
1,
1
],
"id": "Chile"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
9561,
1008,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
2,
0,
0,
0,
0,
5
],
"id": "China"
},
{
"data": [
0,
1,
0,
0,
0,
0,
0,
1,
1139,
28,
1,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
3,
3,
0,
0,
0,
0,
0
],
"id": "Colombia"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
0,
2,
0,
0,
1,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
2,
0,
0,
0,
0,
4
],
"id": "Comorro-Islands"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
0,
342,
2,
1,
1,
0,
1,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
3,
0,
0,
0,
0,
1
],
"id": "Congo"
},
{
"data": [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
4,
1,
1,
1,
1,
15
],
"id": "Cook-Islands"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
51,
2,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
5,
3,
0,
0,
0,
0,
0
],
"id": "Costa-Rica"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
115,
10,
1,
0,
1,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
5,
3,
0,
0,
0,
0,
1
],
"id": "Cuba"
},
{
"data": [
0,
0,
1,
0,
0,
0,
1,
1,
9,
1,
0,
1,
0,
1,
1,
0,
0,
0,
0,
1,
1,
0,
0,
0,
3,
0,
0,
0,
0,
0
],
"id": "Cyprus"
},
{
"data": [
0,
0,
1,
0,
0,
0,
1,
1,
128,
15,
1,
0,
1,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
3,
0,
0,
0,
0,
0
],
"id": "Czechoslovakia"
},
{
"data": [
0,
0,
1,
0,
0,
0,
1,
1,
43,
5,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
2,
0,
1,
0,
0,
0
],
"id": "Denmark"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
1,
22,
0,
1,
1,
1,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
4,
0,
0,
0,
0,
1
],
"id": "Djibouti"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
1,
0,
0,
0,
6,
1,
0,
0,
0,
10
],
"id": "Dominica"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
49,
6,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
3,
0,
1,
0,
0,
0
],
"id": "Dominican-Republic"
},
{
"data": [
0,
1,
0,
0,
0,
0,
0,
0,
284,
8,
1,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
3,
3,
0,
0,
0,
0,
0
],
"id": "Ecuador"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
1,
1001,
47,
1,
0,
0,
1,
1,
1,
0,
0,
0,
0,
1,
1,
0,
3,
4,
0,
0,
0,
0,
0
],
"id": "Egypt"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
21,
5,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
3,
2,
0,
0,
0,
0,
0
],
"id": "El-Salvador"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
1,
28,
0,
1,
1,
1,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
3,
4,
0,
0,
0,
0,
0
],
"id": "Equatorial-Guinea"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
1,
1222,
31,
1,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
3,
3,
0,
0,
0,
0,
0
],
"id": "Ethiopia"
},
{
"data": [
0,
0,
1,
0,
0,
0,
0,
1,
1,
0,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
3,
0,
1,
0,
0,
0
],
"id": "Faeroes"
},
{
"data": [
0,
1,
0,
0,
0,
0,
0,
0,
12,
0,
1,
1,
1,
1,
1,
0,
0,
0,
0,
1,
1,
1,
0,
0,
6,
1,
1,
1,
1,
0
],
"id": "Falklands-Malvinas"
},
{
"data": [
0,
0,
0,
0,
0,
1,
1,
0,
18,
1,
1,
1,
1,
1,
1,
0,
1,
0,
0,
1,
1,
0,
0,
0,
7,
0,
2,
1,
1,
0
],
"id": "Fiji"
},
{
"data": [
0,
0,
1,
0,
0,
0,
1,
1,
337,
5,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
2,
0,
1,
0,
0,
0
],
"id": "Finland"
},
{
"data": [
0,
0,
1,
0,
0,
0,
1,
1,
547,
54,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
3,
0,
3,
0,
0,
0,
0,
0
],
"id": "France"
},
{
"data": [
0,
1,
0,
0,
0,
0,
0,
1,
91,
0,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
3,
0,
3,
0,
0,
0,
0,
0
],
"id": "French-Guiana"
},
{
"data": [
0,
0,
0,
0,
0,
1,
0,
0,
4,
0,
1,
0,
1,
1,
1,
1,
0,
0,
0,
1,
0,
0,
0,
3,
5,
1,
0,
0,
0,
1
],
"id": "French-Polynesia"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
0,
268,
1,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
3,
3,
0,
0,
0,
0,
0
],
"id": "Gabon"
},
{
"data": [
0,
0,
0,
1,
0,
0,
0,
1,
10,
1,
1,
1,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
5,
4,
0,
0,
0,
0,
0
],
"id": "Gambia"
},
{
"data": [
0,
0,
1,
0,
0,
0,
1,
1,
108,
17,
1,
0,
0,
1,
0,
1,
0,
0,
0,
1,
0,
0,
0,
3,
3,
0,
0,
0,
0,
0
],
"id": "Germany-DDR"
},
{
"data": [
0,
0,
1,
0,
0,
0,
1,
1,
249,
61,
1,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
3,
3,
0,
0,
0,
0,
0
],
"id": "Germany-FRG"
},
{
"data": [
0,
0,
0,
1,
0,
0,
0,
1,
239,
14,
1,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
3,
4,
0,
0,
0,
0,
1
],
"id": "Ghana"
},
{
"data": [
0,
0,
1,
0,
0,
0,
0,
1,
0,
0,
1,
0,
0,
1,
1,
0,
0,
0,
0,
1,
0,
0,
0,
1,
3,
0,
0,
0,
0,
0
],
"id": "Gibraltar"
},
{
"data": [
0,
0,
1,
0,
0,
0,
1,
1,
132,
10,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
9,
2,
0,
1,
0,
1,
0
],
"id": "Greece"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
2176,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
2,
1,
0,
0,
0,
0
],
"id": "Greenland"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
1,
0,
1,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
3,
1,
0,
0,
0,
7
],
"id": "Grenada"
},
{
"data": [
0,
0,
0,
0,
0,
1,
1,
1,
0,
0,
1,
1,
1,
1,
1,
0,
1,
0,
0,
1,
1,
1,
0,
0,
7,
0,
0,
0,
0,
0
],
"id": "Guam"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
109,
8,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
3,
0,
2,
0,
0,
0,
0,
0
],
"id": "Guatemala"
},
{
"data": [
0,
0,
0,
1,
0,
0,
0,
1,
246,
6,
1,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
3,
0,
3,
0,
0,
0,
0,
0
],
"id": "Guinea"
},
{
"data": [
0,
0,
0,
1,
0,
0,
0,
1,
36,
1,
1,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
1,
2,
4,
0,
0,
0,
0,
1
],
"id": "Guinea-Bissau"
},
{
"data": [
0,
1,
0,
0,
0,
0,
0,
1,
215,
1,
1,
1,
0,
1,
1,
1,
0,
0,
1,
0,
0,
0,
0,
0,
5,
0,
0,
0,
0,
0
],
"id": "Guyana"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
28,
6,
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
2,
0,
2,
0,
0,
0,
0,
0
],
"id": "Haiti"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
112,
4,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
3,
2,
0,
0,
0,
0,
5
],
"id": "Honduras"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
1,
5,
1,
1,
1,
1,
1,
0,
1,
0,
0,
1,
1,
1,
0,
0,
6,
1,
1,
1,
1,
0
],
"id": "Hong-Kong"
},
{
"data": [
0,
0,
1,
0,
0,
0,
1,
1,
93,
11,
1,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
3,
3,
0,
0,
0,
0,
0
],
"id": "Hungary"
},
{
"data": [
0,
0,
1,
0,
0,
0,
0,
1,
103,
0,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
3,
0,
1,
0,
0,
0
],
"id": "Iceland"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
3268,
684,
0,
1,
1,
0,
1,
0,
1,
0,
0,
1,
0,
0,
0,
3,
4,
1,
0,
0,
0,
0
],
"id": "India"
},
{
"data": [
0,
0,
0,
0,
0,
1,
1,
0,
1904,
157,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
2,
2,
0,
0,
0,
0,
0
],
"id": "Indonesia"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
1648,
39,
1,
1,
0,
0,
1,
0,
0,
0,
0,
1,
0,
1,
0,
3,
3,
0,
0,
0,
0,
0
],
"id": "Iran"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
435,
14,
1,
1,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
3,
4,
0,
0,
0,
0,
3
],
"id": "Iraq"
},
{
"data": [
0,
0,
1,
0,
0,
0,
0,
1,
70,
3,
0,
1,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
3,
0,
3,
0,
0,
0,
0,
0
],
"id": "Ireland"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
21,
4,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
2,
2,
0,
0,
0,
0,
1
],
"id": "Israel"
},
{
"data": [
0,
0,
1,
0,
0,
0,
1,
1,
301,
57,
1,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
3,
0,
3,
0,
0,
0,
0,
0
],
"id": "Italy"
},
{
"data": [
0,
0,
0,
1,
0,
0,
0,
1,
323,
7,
1,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
3,
0,
3,
0,
0,
0,
0,
0
],
"id": "Ivory-Coast"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
11,
2,
0,
1,
0,
1,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
3,
0,
0,
1,
0,
0
],
"id": "Jamaica"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
372,
118,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
2,
1,
0,
0,
0,
1
],
"id": "Japan"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
98,
2,
1,
1,
0,
0,
1,
1,
0,
0,
1,
0,
0,
0,
0,
3,
4,
0,
0,
0,
0,
1
],
"id": "Jordan"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
181,
6,
1,
0,
0,
1,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
2,
0,
0,
0,
0,
0
],
"id": "Kampuchea"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
1,
583,
17,
1,
1,
0,
0,
1,
1,
0,
0,
0,
1,
0,
0,
0,
5,
4,
1,
0,
0,
0,
0
],
"id": "Kenya"
},
{
"data": [
0,
0,
0,
0,
0,
1,
1,
1,
0,
0,
1,
0,
1,
1,
1,
0,
0,
0,
0,
1,
1,
0,
0,
0,
4,
0,
0,
0,
0,
1
],
"id": "Kiribati"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
18,
2,
1,
1,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
3,
4,
0,
0,
0,
0,
0
],
"id": "Kuwait"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
236,
3,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
3,
3,
1,
0,
0,
0,
0
],
"id": "Laos"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
10,
3,
1,
1,
0,
0,
1,
0,
1,
0,
0,
0,
1,
0,
0,
2,
4,
0,
0,
0,
0,
0
],
"id": "Lebanon"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
0,
30,
1,
1,
1,
1,
0,
1,
0,
0,
0,
0,
1,
0,
0,
2,
0,
4,
0,
0,
0,
0,
0
],
"id": "Lesotho"
},
{
"data": [
0,
0,
0,
1,
0,
0,
0,
1,
111,
1,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
11,
3,
0,
0,
0,
1,
1
],
"id": "Liberia"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
1,
1760,
3,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
],
"id": "Libya"
},
{
"data": [
0,
0,
1,
0,
0,
0,
1,
1,
0,
0,
1,
0,
1,
1,
0,
0,
0,
0,
0,
1,
0,
0,
0,
2,
3,
0,
0,
0,
0,
0
],
"id": "Liechtenstein"
},
{
"data": [
0,
0,
1,
0,
0,
0,
1,
1,
3,
0,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
3,
3,
0,
0,
0,
0,
0
],
"id": "Luxembourg"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
0,
587,
9,
1,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
1,
2,
3,
0,
0,
0,
0,
0
],
"id": "Malagasy"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
0,
118,
6,
1,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
3,
3,
0,
0,
0,
0,
1
],
"id": "Malawi"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
333,
13,
1,
0,
1,
1,
1,
0,
0,
1,
0,
0,
0,
0,
0,
14,
4,
0,
0,
0,
1,
1
],
"id": "Malaysia"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
0,
0,
1,
1,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
3,
0,
0,
0,
0,
0
],
"id": "Maldive-Islands"
},
{
"data": [
0,
0,
0,
1,
0,
0,
0,
1,
1240,
7,
1,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
3,
0,
3,
0,
0,
0,
0,
0
],
"id": "Mali"
},
{
"data": [
0,
0,
1,
0,
0,
0,
1,
1,
0,
0,
1,
0,
0,
0,
1,
1,
0,
0,
0,
1,
0,
0,
2,
0,
3,
0,
1,
0,
0,
0
],
"id": "Malta"
},
{
"data": [
0,
0,
0,
0,
0,
1,
1,
1,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
3,
0,
0,
0,
0,
1
],
"id": "Marianas"
},
{
"data": [
0,
0,
0,
1,
0,
0,
0,
1,
1031,
2,
0,
1,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
2,
0,
0,
0,
0,
1
],
"id": "Mauritania"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
0,
2,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
4,
4,
0,
0,
0,
0,
0
],
"id": "Mauritius"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
1973,
77,
1,
1,
0,
0,
1,
0,
1,
0,
0,
0,
1,
0,
3,
0,
4,
0,
0,
0,
0,
0
],
"id": "Mexico"
},
{
"data": [
0,
0,
0,
0,
0,
1,
1,
1,
1,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
2,
0,
0,
0,
0,
4
],
"id": "Micronesia"
},
{
"data": [
0,
0,
1,
0,
0,
0,
1,
1,
0,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
2,
2,
0,
0,
0,
0,
0
],
"id": "Monaco"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
1566,
2,
1,
0,
1,
1,
0,
0,
0,
1,
1,
1,
0,
0,
3,
0,
3,
2,
0,
0,
0,
1
],
"id": "Mongolia"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
1,
1,
1,
1,
1,
0,
0,
0,
1,
1,
0,
0,
0,
7,
0,
2,
1,
1,
0
],
"id": "Montserrat"
},
{
"data": [
0,
0,
0,
1,
0,
0,
0,
1,
447,
20,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
2,
0,
0,
0,
0,
1
],
"id": "Morocco"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
0,
783,
12,
1,
1,
0,
1,
1,
1,
0,
0,
1,
1,
0,
0,
0,
5,
5,
0,
0,
0,
0,
1
],
"id": "Mozambique"
},
{
"data": [
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
3,
3,
0,
0,
0,
0,
1
],
"id": "Nauru"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
140,
16,
0,
0,
1,
0,
1,
0,
1,
1,
0,
0,
0,
0,
0,
0,
3,
0,
0,
0,
0,
2
],
"id": "Nepal"
},
{
"data": [
0,
0,
1,
0,
0,
0,
1,
1,
41,
14,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
3,
3,
0,
0,
0,
0,
0
],
"id": "Netherlands"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
3,
0,
0,
0,
0,
6
],
"id": "Netherlands-Antilles"
},
{
"data": [
0,
0,
0,
0,
0,
1,
1,
0,
268,
2,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
3,
0,
1,
1,
1,
4
],
"id": "New-Zealand"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
128,
3,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
3,
2,
0,
0,
0,
0,
0
],
"id": "Nicaragua"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
1,
1267,
5,
0,
1,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
3,
3,
1,
0,
0,
0,
0
],
"id": "Niger"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
1,
925,
56,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
3,
0,
2,
0,
0,
0,
0,
0
],
"id": "Nigeria"
},
{
"data": [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
4,
1,
1,
1,
1,
5
],
"id": "Niue"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
121,
18,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
5,
3,
1,
0,
0,
0,
1
],
"id": "North-Korea"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
195,
9,
1,
1,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
3,
4,
0,
0,
0,
0,
1
],
"id": "North-Yemen"
},
{
"data": [
0,
0,
1,
0,
0,
0,
1,
1,
324,
4,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
3,
0,
1,
0,
0,
0
],
"id": "Norway"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
212,
1,
1,
1,
0,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0,
2,
3,
0,
0,
0,
0,
0
],
"id": "Oman"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
804,
84,
0,
1,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0,
1,
0,
2,
0,
0,
0,
0,
1
],
"id": "Pakistan"
},
{
"data": [
0,
1,
0,
0,
0,
0,
0,
1,
76,
2,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
3,
0,
0,
0,
4,
2
],
"id": "Panama"
},
{
"data": [
0,
0,
0,
0,
0,
1,
1,
0,
463,
3,
1,
0,
0,
1,
1,
1,
0,
0,
1,
0,
1,
0,
0,
0,
4,
0,
0,
0,
0,
5
],
"id": "Papua-New-Guinea"
},
{
"data": [
0,
1,
0,
0,
0,
0,
0,
0,
407,
3,
1,
1,
1,
1,
1,
1,
0,
0,
0,
1,
1,
1,
0,
3,
6,
1,
0,
0,
0,
1
],
"id": "Parguay"
},
{
"data": [
0,
1,
0,
0,
0,
0,
0,
0,
1285,
14,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
3,
0,
2,
0,
0,
0,
0,
0
],
"id": "Peru"
},
{
"data": [
0,
0,
0,
0,
0,
1,
1,
1,
300,
48,
1,
0,
1,
1,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
4,
0,
0,
0,
0,
4
],
"id": "Philippines"
},
{
"data": [
0,
0,
1,
0,
0,
0,
1,
1,
313,
36,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
2,
2,
0,
0,
0,
0,
0
],
"id": "Poland"
},
{
"data": [
0,
0,
1,
0,
0,
0,
0,
1,
92,
10,
1,
1,
1,
1,
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
5,
1,
0,
0,
0,
0
],
"id": "Portugal"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
9,
3,
1,
0,
1,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
5,
3,
0,
0,
0,
0,
1
],
"id": "Puerto-Rico"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
11,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
2,
0,
0,
0,
0,
0
],
"id": "Qatar"
},
{
"data": [
0,
0,
1,
0,
0,
0,
1,
1,
237,
22,
1,
1,
1,
1,
1,
0,
1,
0,
0,
1,
1,
1,
3,
0,
7,
0,
0,
0,
0,
2
],
"id": "Romania"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
0,
26,
5,
1,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
1,
3,
0,
4,
0,
0,
0,
0,
0
],
"id": "Rwanda"
},
{
"data": [
0,
0,
1,
0,
0,
0,
1,
1,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
2,
2,
0,
0,
0,
0,
0
],
"id": "San-Marino"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
1,
0,
0,
1,
1,
0,
1,
0,
1,
0,
0,
1,
0,
0,
0,
0,
3,
4,
0,
0,
0,
0,
2
],
"id": "Sao-Tome"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
2150,
9,
0,
1,
0,
0,
1,
0,
0,
0,
0,
1,
0,
1,
0,
0,
2,
0,
0,
0,
0,
0
],
"id": "Saudi-Arabia"
},
{
"data": [
0,
0,
0,
1,
0,
0,
0,
1,
196,
6,
1,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
3,
0,
3,
0,
0,
0,
0,
1
],
"id": "Senegal"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
0,
0,
0,
1,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
3,
0,
0,
0,
0,
0
],
"id": "Seychelles"
},
{
"data": [
0,
0,
0,
1,
0,
0,
0,
1,
72,
3,
0,
1,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
3,
3,
0,
0,
0,
0,
0
],
"id": "Sierra-Leone"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
1,
3,
1,
0,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
2,
2,
0,
0,
0,
0,
5
],
"id": "Singapore"
},
{
"data": [
0,
0,
0,
0,
0,
1,
1,
0,
30,
0,
0,
1,
1,
1,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
4,
0,
0,
0,
0,
5
],
"id": "Soloman-Islands"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
1,
637,
5,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
2,
0,
0,
0,
0,
1
],
"id": "Somalia"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
0,
1221,
29,
1,
1,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
3,
5,
0,
1,
1,
0,
0
],
"id": "South-Africa"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
99,
39,
1,
0,
1,
0,
1,
1,
0,
0,
0,
1,
0,
0,
0,
0,
4,
1,
0,
0,
0,
0
],
"id": "South-Korea"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
288,
2,
1,
0,
1,
0,
1,
1,
0,
0,
1,
0,
0,
0,
0,
3,
4,
0,
0,
0,
0,
1
],
"id": "South-Yemen"
},
{
"data": [
0,
0,
1,
0,
0,
0,
0,
1,
505,
38,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
3,
2,
0,
0,
0,
0,
0
],
"id": "Spain"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
66,
15,
0,
1,
0,
1,
0,
0,
1,
0,
0,
1,
1,
0,
2,
0,
4,
0,
0,
0,
0,
0
],
"id": "Sri-Lanka"
},
{
"data": [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
0,
1,
0,
0,
1,
0,
0,
0,
0,
7,
0,
1,
1,
1,
0
],
"id": "St-Helena"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
1,
0,
1,
1,
1,
0,
0,
1,
0,
0,
0,
0,
0,
5,
0,
0,
0,
0,
2
],
"id": "St-Kitts-Nevis"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
1,
1,
1,
0,
0,
1,
0,
0,
0,
0,
0,
4,
0,
0,
0,
0,
0
],
"id": "St-Lucia"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
1,
1,
1,
1,
0,
0,
0,
0,
1,
1,
1,
5,
0,
4,
0,
0,
0,
0,
0
],
"id": "St-Vincent"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
1,
2506,
20,
1,
1,
0,
0,
1,
1,
0,
0,
1,
0,
0,
0,
0,
3,
4,
0,
0,
0,
0,
0
],
"id": "Sudan"
},
{
"data": [
0,
1,
0,
0,
0,
0,
0,
1,
63,
0,
1,
1,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
5,
4,
0,
0,
0,
0,
1
],
"id": "Surinam"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
0,
17,
1,
1,
0,
1,
1,
1,
1,
1,
0,
0,
1,
0,
0,
0,
5,
7,
0,
0,
0,
0,
0
],
"id": "Swaziland"
},
{
"data": [
0,
0,
1,
0,
0,
0,
1,
1,
450,
8,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
2,
0,
1,
0,
0,
0
],
"id": "Sweden"
},
{
"data": [
0,
0,
1,
0,
0,
0,
1,
1,
41,
6,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
2,
0,
1,
0,
0,
0
],
"id": "Switzerland"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
185,
10,
1,
1,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
3,
4,
0,
0,
0,
0,
2
],
"id": "Syria"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
36,
18,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
3,
1,
0,
0,
1,
1
],
"id": "Taiwan"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
0,
945,
18,
0,
1,
1,
1,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
4,
0,
0,
0,
0,
0
],
"id": "Tanzania"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
514,
49,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
5,
3,
0,
0,
0,
0,
0
],
"id": "Thailand"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
1,
57,
2,
1,
1,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
5,
4,
0,
0,
0,
1,
1
],
"id": "Togo"
},
{
"data": [
0,
0,
0,
0,
0,
1,
1,
0,
1,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
2,
0,
1,
0,
1,
0
],
"id": "Tonga"
},
{
"data": [
0,
1,
0,
0,
0,
0,
0,
1,
5,
1,
1,
0,
0,
0,
1,
1,
0,
0,
1,
0,
0,
0,
0,
0,
3,
0,
0,
0,
0,
0
],
"id": "Trinidad-Tobago"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
1,
164,
7,
1,
0,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
2,
1,
0,
0,
0,
1
],
"id": "Tunisia"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
781,
45,
1,
0,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
2,
0,
0,
0,
0,
1
],
"id": "Turkey"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
1,
1,
1,
1,
0,
1,
0,
0,
1,
1,
0,
0,
0,
6,
0,
1,
1,
1,
0
],
"id": "Turks-Cocos-Islands"
},
{
"data": [
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
1,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
5,
0,
1,
1,
1,
9
],
"id": "Tuvalu"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
84,
1,
1,
1,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
1,
3,
4,
0,
0,
0,
0,
0
],
"id": "UAE"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
1,
236,
13,
1,
0,
0,
1,
1,
1,
0,
0,
0,
0,
1,
0,
0,
6,
5,
1,
0,
0,
0,
0
],
"id": "Uganda"
},
{
"data": [
0,
0,
1,
0,
0,
0,
0,
1,
245,
56,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
3,
0,
1,
1,
0,
0
],
"id": "UK"
},
{
"data": [
0,
1,
0,
0,
0,
0,
0,
0,
178,
3,
0,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
9,
3,
0,
0,
0,
1,
1
],
"id": "Uruguay"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
1,
1,
1,
1,
0,
0,
0,
0,
1,
1,
1,
0,
0,
6,
0,
0,
0,
0,
0
],
"id": "US-Virgin-Isles"
},
{
"data": [
1,
0,
0,
0,
0,
0,
0,
1,
9363,
231,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
13,
3,
0,
0,
0,
1,
50
],
"id": "USA"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
22402,
274,
1,
0,
0,
1,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
2,
0,
0,
0,
0,
1
],
"id": "USSR"
},
{
"data": [
0,
0,
0,
0,
0,
1,
1,
0,
15,
0,
1,
1,
0,
1,
0,
1,
0,
0,
1,
0,
1,
0,
0,
0,
4,
0,
0,
0,
0,
0
],
"id": "Vanuatu"
},
{
"data": [
0,
0,
1,
0,
0,
0,
1,
1,
0,
0,
1,
0,
0,
1,
1,
1,
0,
0,
0,
1,
0,
0,
2,
0,
4,
0,
0,
0,
0,
0
],
"id": "Vatican-City"
},
{
"data": [
0,
1,
0,
0,
0,
0,
0,
1,
912,
15,
1,
1,
1,
1,
1,
1,
1,
0,
0,
1,
1,
0,
0,
3,
7,
0,
0,
0,
0,
7
],
"id": "Venezuela"
},
{
"data": [
0,
0,
0,
0,
1,
0,
1,
1,
333,
60,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
2,
0,
0,
0,
0,
1
],
"id": "Vietnam"
},
{
"data": [
0,
0,
0,
0,
0,
1,
0,
0,
3,
0,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
3,
0,
0,
0,
1,
5
],
"id": "Western-Samoa"
},
{
"data": [
0,
0,
1,
0,
0,
0,
1,
1,
256,
22,
1,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
3,
4,
0,
0,
0,
0,
1
],
"id": "Yugoslavia"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
0,
905,
28,
1,
1,
0,
1,
0,
0,
1,
0,
0,
1,
1,
0,
0,
0,
4,
1,
0,
0,
0,
0
],
"id": "Zaire"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
0,
753,
6,
1,
1,
0,
0,
0,
1,
1,
0,
0,
0,
1,
0,
3,
0,
4,
0,
0,
0,
0,
0
],
"id": "Zambia"
},
{
"data": [
0,
0,
0,
1,
0,
0,
1,
0,
391,
8,
1,
1,
0,
1,
1,
1,
0,
0,
1,
1,
1,
0,
0,
7,
5,
0,
0,
0,
0,
1
],
"id": "Zimbabwe"
}
],
"legend": [
"North American country",
"South American country",
"European country",
"African country",
"Asian country",
"Oceanian country",
"Country in eastern hemisphere",
"Country in northern hemisphere",
"Area in thousands of km^2",
"Population in millions",
"Flag contains color red",
"Flag contains color green",
"Flag contains color blue",
"Flag contains color gold or yellow",
"Flag contains color white",
"Flag contains color black",
"Flag contains color orange or brown",
"A crescent moon is present",
"A triangle is present",
"An inanimate object is present",
"An animate object is present",
"Text or writing is present",
"Number of vertical bars in the flag",
"Number of horizontal stripes in the flag",
"Number of different colors in the flag",
"Number of circles in the flag",
"Number of upright crosses in the flag",
"Number of diagonal crosses in the flag",
"Number of quartered sections in the flag",
"Number of sun or star symbols in the flag"
]
}
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<link type="text/css" rel="stylesheet" href="style.css"/>
<script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script>
</head>
<body>
<div id="controls">
</div>
<script type="text/javascript">
var pad_top = 0,
pad_left = 0,
w = 500,
h = 500,
color = d3.scale.category10(),
users;
var chart = d3.select("body").append("svg")
.attr("id", "chart")
.attr("width", w)
.attr("height", h);
var split = function(left, top, width, height, users, indices, values, vertical) {
if (indices[0] === undefined || indices[0] < 0 || users.length == 0) {
return [];
}
var inUsers = users.filter(function(user) { return user.data[indices[0]] > values[0]; });
var outUsers = users.filter(function(user) { return user.data[indices[0]] <= values[0]; });
var newBox = {
left: left,
top: top,
width: vertical ? width : width * inUsers.length / users.length,
height: vertical ? height * inUsers.length / users.length : height,
color: color(indices.length)
};
return [newBox].concat(
split(newBox.left, newBox.top, newBox.width, newBox.height, inUsers, indices.slice(1), values.slice(1), !vertical)
).concat(
split(
vertical ? newBox.left : newBox.left + newBox.width,
vertical ? newBox.top + newBox.height : newBox.top,
vertical ? newBox.width : width - newBox.width,
vertical ? height - newBox.height : newBox.height,
outUsers,
indices.slice(1),
values.slice(1),
!vertical
)
);
};
var split2 = function(left, top, width, height, users, parentColor, indices, values, vertical) {
var inUsers = users.filter(function(user) { return user.data[indices[0]] > values[0]; });
var outUsers = users.filter(function(user) { return user.data[indices[0]] <= values[0]; });
indices = indices.slice(1);
values = values.slice(1);
var boxes = [];
if (inUsers.length > 0) {
var newColor = d3.rgb(color(indices.length));
var oldColor = d3.rgb(parentColor);
boxes.push({
left: left,
top: top,
width: vertical ? width : width * inUsers.length / users.length,
height: vertical ? height * inUsers.length / users.length : height,
color: d3.rgb(0.5*newColor.r + 0.5*oldColor.r,
0.5*newColor.g + 0.5*oldColor.g,
0.5*newColor.b + 0.5*oldColor.b),
users: inUsers
});
}
if (outUsers.length > 0) {
if (vertical) {
boxes.push({
left: left,
top: top + height * inUsers.length / users.length,
width: width,
height: height * outUsers.length / users.length,
color: parentColor,
users: outUsers
});
} else {
boxes.push({
left: left + width * inUsers.length / users.length,
top: top,
width: width * outUsers.length / users.length,
height: height,
color: parentColor,
users: outUsers
});
}
}
if (indices[0] === undefined || indices[0] < 0 || users.length == 0) {
return boxes;
}
var subBoxes = [];
boxes.forEach(function (subBox) {
subBoxes = subBoxes.concat(split2(
subBox.left,
subBox.top,
subBox.width,
subBox.height,
subBox.users,
subBox.color,
indices,
values,
!vertical //subBox.height > subBox.width
));
});
return subBoxes;
};
var rectTitle = function(d) {
if (d.users === undefined || d.users.length == 0) {
return "";
}
var title = d.users[0].id;
var i;
for (i = 1; i < 4; i++) {
if (i < d.users.length) {
title += ", " + d.users[i].id;
}
}
if (i < d.users.length) {
title += ", and " + (d.users.length - i) + " others";
}
return title;
}
var selectChange = function() {
var selectIndexes = [];
var selectValues = []
d3.selectAll("div#controls select")[0].forEach(function(sel, i) {
selectIndexes[i] = sel.value;
});
d3.selectAll("div#controls input")[0].forEach(function(inp, i) {
selectValues[i] = inp.value || 0;
});
var boxData = [{left: pad_left, top: pad_top, width: w - pad_left, height: h - pad_top, color: '#D0D0D0'}];
boxData = boxData.concat(split2(pad_left, pad_top, w - pad_left, h - pad_top, users, '#D0D0D0', selectIndexes, selectValues, false));
var boxes = chart.selectAll("rect")
.data(boxData, JSON.stringify);
boxes.enter().append("rect")
.attr("y", function (d) { return d.top; })
.attr("x", function (d) { return d.left; })
.attr("width", function (d) { return d.width; })
.attr("height", function (d) { return d.height; })
.style("fill", function (d) { return d.color; })
.style("fill-opacity", 0.2)
.style("stroke", function (d) { return d.color; })
.style("stroke-opacity", 0.6)
.append("title")
.text(rectTitle);
boxes.exit().remove();
};
d3.json("data.json", function(file) {
var legend = file.legend;
users = file.rows;
var controlBox = d3.select("div#controls").selectAll("div")
.data(legend.slice(-16)) // one box per legend item, max 16
.enter().append("div");
controlBox.append("select");
controlBox.append("span").text(">");
controlBox.append("input").attr("value", "0");
d3.selectAll("div#controls input").on("keyup", selectChange);
var selects = d3.selectAll("div#controls select");
selects.on("change", selectChange);
selects.selectAll('option')
.data(['-'].concat(legend))
.enter().append("option")
.attr("value", function(d, i) { return i-1; })
.text(function(d) { return d; });
selectChange();
});
</script>
<footer>
Sample data from <a href="https://archive.ics.uci.edu/ml/datasets/Flags">UCI Machine Learning Repository</a>
</footer>
</body>
</html>
body {
overflow: hidden;
margin: 0;
}
div#controls {
float: left;
}
div#controls div {
border: solid white 1px;
}
div#controls select {
float: left;
}
div#controls input {
margin-top: 1px;
margin-right: 8px;
font-size: 15pt;
width: 50px;
clear: right;
}
select {
background-color:#3498DB;
display: block;
color:white;
padding:6px;
margin: 2px;
width:auto;
font-size:12px;
color:#fff;
border-radius:3px;
-webkit-border-radius:3px;
-webkit-appearance: none;
border:0;
outline:0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment