(Created page with "<html> <script> /*! * Bootstrap v3.3.1 (http://getbootstrap.com) * Copyright 2011-2014 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/bl...") |
|||
Line 83: | Line 83: | ||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(n.topojson=n.topojson||{})}(this,function(n){"use strict";function t(){}function r(n){if(!n)return t;var r,e,o=n.scale[0],i=n.scale[1],u=n.translate[0],f=n.translate[1];return function(n,t){t||(r=e=0),n[0]=(r+=n[0])*o+u,n[1]=(e+=n[1])*i+f}}function e(n){if(!n)return t;var r,e,o=n.scale[0],i=n.scale[1],u=n.translate[0],f=n.translate[1];return function(n,t){t||(r=e=0);var c=Math.round((n[0]-u)/o),a=Math.round((n[1]-f)/i);n[0]=c-r,n[1]=a-e,r=c,e=a}}function o(n,t){for(var r,e=n.length,o=e-t;o<--e;)r=n[o],n[o++]=n[e],n[e]=r}function i(n,t){for(var r=0,e=n.length;e>r;){var o=r+e>>>1;n[o]<t?r=o+1:e=o}return r}function u(n,t){return"GeometryCollection"===t.type?{type:"FeatureCollection",features:t.geometries.map(function(t){return f(n,t)})}:f(n,t)}function f(n,t){var r={type:"Feature",id:t.id,properties:t.properties||{},geometry:c(n,t)};return null==t.id&&delete r.id,r}function c(n,t){function e(n,t){t.length&&t.pop();for(var r,e=l[0>n?~n:n],i=0,u=e.length;u>i;++i)t.push(r=e[i].slice()),s(r,i);0>n&&o(t,u)}function i(n){return n=n.slice(),s(n,0),n}function u(n){for(var t=[],r=0,o=n.length;o>r;++r)e(n[r],t);return t.length<2&&t.push(t[0].slice()),t}function f(n){for(var t=u(n);t.length<4;)t.push(t[0].slice());return t}function c(n){return n.map(f)}function a(n){var t=n.type;return"GeometryCollection"===t?{type:t,geometries:n.geometries.map(a)}:t in h?{type:t,coordinates:h[t](n)}:null}var s=r(n.transform),l=n.arcs,h={Point:function(n){return i(n.coordinates)},MultiPoint:function(n){return n.coordinates.map(i)},LineString:function(n){return u(n.arcs)},MultiLineString:function(n){return n.arcs.map(u)},Polygon:function(n){return c(n.arcs)},MultiPolygon:function(n){return n.arcs.map(c)}};return a(t)}function a(n,t){function r(t){var r,e=n.arcs[0>t?~t:t],o=e[0];return n.transform?(r=[0,0],e.forEach(function(n){r[0]+=n[0],r[1]+=n[1]})):r=e[e.length-1],0>t?[r,o]:[o,r]}function e(n,t){for(var r in n){var e=n[r];delete t[e.start],delete e.start,delete e.end,e.forEach(function(n){o[0>n?~n:n]=1}),f.push(e)}}var o={},i={},u={},f=[],c=-1;return t.forEach(function(r,e){var o,i=n.arcs[0>r?~r:r];i.length<3&&!i[1][0]&&!i[1][1]&&(o=t[++c],t[c]=r,t[e]=o)}),t.forEach(function(n){var t,e,o=r(n),f=o[0],c=o[1];if(t=u[f])if(delete u[t.end],t.push(n),t.end=c,e=i[c]){delete i[e.start];var a=e===t?t:t.concat(e);i[a.start=t.start]=u[a.end=e.end]=a}else i[t.start]=u[t.end]=t;else if(t=i[c])if(delete i[t.start],t.unshift(n),t.start=f,e=u[f]){delete u[e.end];var s=e===t?t:e.concat(t);i[s.start=e.start]=u[s.end=t.end]=s}else i[t.start]=u[t.end]=t;else t=[n],i[t.start=f]=u[t.end=c]=t}),e(u,i),e(i,u),t.forEach(function(n){o[0>n?~n:n]||f.push([n])}),f}function s(n){return c(n,l.apply(this,arguments))}function l(n,t,r){function e(n){var t=0>n?~n:n;(s[t]||(s[t]=[])).push({i:n,g:c})}function o(n){n.forEach(e)}function i(n){n.forEach(o)}function u(n){"GeometryCollection"===n.type?n.geometries.forEach(u):n.type in l&&(c=n,l[n.type](n.arcs))}var f=[];if(arguments.length>1){var c,s=[],l={LineString:o,MultiLineString:i,Polygon:i,MultiPolygon:function(n){n.forEach(i)}};u(t),s.forEach(arguments.length<3?function(n){f.push(n[0].i)}:function(n){r(n[0].g,n[n.length-1].g)&&f.push(n[0].i)})}else for(var h=0,p=n.arcs.length;p>h;++h)f.push(h);return{type:"MultiLineString",arcs:a(n,f)}}function h(n){var t=n[0],r=n[1],e=n[2];return Math.abs((t[0]-e[0])*(r[1]-t[1])-(t[0]-r[0])*(e[1]-t[1]))}function p(n){for(var t,r=-1,e=n.length,o=n[e-1],i=0;++r<e;)t=o,o=n[r],i+=t[0]*o[1]-t[1]*o[0];return i/2}function v(n){return c(n,g.apply(this,arguments))}function g(n,t){function r(n){n.forEach(function(t){t.forEach(function(t){(o[t=0>t?~t:t]||(o[t]=[])).push(n)})}),i.push(n)}function e(t){return Math.abs(p(c(n,{type:"Polygon",arcs:[t]}).coordinates[0]))}var o={},i=[],u=[];return t.forEach(function(n){"Polygon"===n.type?r(n.arcs):"MultiPolygon"===n.type&&n.arcs.forEach(r)}),i.forEach(function(n){if(!n._){var t=[],r=[n];for(n._=1,u.push(t);n=r.pop();)t.push(n),n.forEach(function(n){n.forEach(function(n){o[0>n?~n:n].forEach(function(n){n._||(n._=1,r.push(n))})})})}}),i.forEach(function(n){delete n._}),{type:"MultiPolygon",arcs:u.map(function(t){var r,i=[];if(t.forEach(function(n){n.forEach(function(n){n.forEach(function(n){o[0>n?~n:n].length<2&&i.push(n)})})}),i=a(n,i),(r=i.length)>1)for(var u,f,c=1,s=e(i[0]);r>c;++c)(u=e(i[c]))>s&&(f=i[0],i[0]=i[c],i[c]=f,s=u);return i})}}function y(n){function t(n,t){n.forEach(function(n){0>n&&(n=~n);var r=o[n];r?r.push(t):o[n]=[t]})}function r(n,r){n.forEach(function(n){t(n,r)})}function e(n,t){"GeometryCollection"===n.type?n.geometries.forEach(function(n){e(n,t)}):n.type in f&&f[n.type](n.arcs,t)}var o={},u=n.map(function(){return[]}),f={LineString:t,MultiLineString:r,Polygon:r,MultiPolygon:function(n,t){n.forEach(function(n){r(n,t)})}};n.forEach(e);for(var c in o)for(var a=o[c],s=a.length,l=0;s>l;++l)for(var h=l+1;s>h;++h){var p,v=a[l],g=a[h];(p=u[v])[c=i(p,g)]!==g&&p.splice(c,0,g),(p=u[g])[c=i(p,v)]!==v&&p.splice(c,0,v)}return u}function d(n,t){return n[1][2]-t[1][2]}function m(){function n(n,t){for(;t>0;){var r=(t+1>>1)-1,o=e[r];if(d(n,o)>=0)break;e[o._=t]=o,e[n._=t=r]=n}}function t(n,t){for(;;){var r=t+1<<1,i=r-1,u=t,f=e[u];if(o>i&&d(e[i],f)<0&&(f=e[u=i]),o>r&&d(e[r],f)<0&&(f=e[u=r]),u===t)break;e[f._=t]=f,e[n._=t=u]=n}}var r={},e=[],o=0;return r.push=function(t){return n(e[t._=o]=t,o++),o},r.pop=function(){if(!(0>=o)){var n,r=e[0];return--o>0&&(n=e[o],t(e[n._=0]=n,0)),r}},r.remove=function(r){var i,u=r._;if(e[u]===r)return u!==--o&&(i=e[o],(d(i,r)<0?n:t)(e[i._=u]=i,u)),u},r}function E(n,t){function o(n){f.remove(n),n[1][2]=t(n),f.push(n)}var i=r(n.transform),u=e(n.transform),f=m();return t||(t=h),n.arcs.forEach(function(n){var r,e,c,a,s=[],l=0;for(e=0,c=n.length;c>e;++e)a=n[e],i(n[e]=[a[0],a[1],1/0],e);for(e=1,c=n.length-1;c>e;++e)r=n.slice(e-1,e+2),r[1][2]=t(r),s.push(r),f.push(r);for(e=0,c=s.length;c>e;++e)r=s[e],r.previous=s[e-1],r.next=s[e+1];for(;r=f.pop();){var h=r.previous,p=r.next;r[1][2]<l?r[1][2]=l:l=r[1][2],h&&(h.next=p,h[2]=r[2],o(h)),p&&(p.previous=h,p[0]=r[0],o(p))}n.forEach(u)}),n}var M="1.6.26";n.version=M,n.mesh=s,n.meshArcs=l,n.merge=v,n.mergeArcs=g,n.feature=u,n.neighbors=y,n.presimplify=E}); | !function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(n.topojson=n.topojson||{})}(this,function(n){"use strict";function t(){}function r(n){if(!n)return t;var r,e,o=n.scale[0],i=n.scale[1],u=n.translate[0],f=n.translate[1];return function(n,t){t||(r=e=0),n[0]=(r+=n[0])*o+u,n[1]=(e+=n[1])*i+f}}function e(n){if(!n)return t;var r,e,o=n.scale[0],i=n.scale[1],u=n.translate[0],f=n.translate[1];return function(n,t){t||(r=e=0);var c=Math.round((n[0]-u)/o),a=Math.round((n[1]-f)/i);n[0]=c-r,n[1]=a-e,r=c,e=a}}function o(n,t){for(var r,e=n.length,o=e-t;o<--e;)r=n[o],n[o++]=n[e],n[e]=r}function i(n,t){for(var r=0,e=n.length;e>r;){var o=r+e>>>1;n[o]<t?r=o+1:e=o}return r}function u(n,t){return"GeometryCollection"===t.type?{type:"FeatureCollection",features:t.geometries.map(function(t){return f(n,t)})}:f(n,t)}function f(n,t){var r={type:"Feature",id:t.id,properties:t.properties||{},geometry:c(n,t)};return null==t.id&&delete r.id,r}function c(n,t){function e(n,t){t.length&&t.pop();for(var r,e=l[0>n?~n:n],i=0,u=e.length;u>i;++i)t.push(r=e[i].slice()),s(r,i);0>n&&o(t,u)}function i(n){return n=n.slice(),s(n,0),n}function u(n){for(var t=[],r=0,o=n.length;o>r;++r)e(n[r],t);return t.length<2&&t.push(t[0].slice()),t}function f(n){for(var t=u(n);t.length<4;)t.push(t[0].slice());return t}function c(n){return n.map(f)}function a(n){var t=n.type;return"GeometryCollection"===t?{type:t,geometries:n.geometries.map(a)}:t in h?{type:t,coordinates:h[t](n)}:null}var s=r(n.transform),l=n.arcs,h={Point:function(n){return i(n.coordinates)},MultiPoint:function(n){return n.coordinates.map(i)},LineString:function(n){return u(n.arcs)},MultiLineString:function(n){return n.arcs.map(u)},Polygon:function(n){return c(n.arcs)},MultiPolygon:function(n){return n.arcs.map(c)}};return a(t)}function a(n,t){function r(t){var r,e=n.arcs[0>t?~t:t],o=e[0];return n.transform?(r=[0,0],e.forEach(function(n){r[0]+=n[0],r[1]+=n[1]})):r=e[e.length-1],0>t?[r,o]:[o,r]}function e(n,t){for(var r in n){var e=n[r];delete t[e.start],delete e.start,delete e.end,e.forEach(function(n){o[0>n?~n:n]=1}),f.push(e)}}var o={},i={},u={},f=[],c=-1;return t.forEach(function(r,e){var o,i=n.arcs[0>r?~r:r];i.length<3&&!i[1][0]&&!i[1][1]&&(o=t[++c],t[c]=r,t[e]=o)}),t.forEach(function(n){var t,e,o=r(n),f=o[0],c=o[1];if(t=u[f])if(delete u[t.end],t.push(n),t.end=c,e=i[c]){delete i[e.start];var a=e===t?t:t.concat(e);i[a.start=t.start]=u[a.end=e.end]=a}else i[t.start]=u[t.end]=t;else if(t=i[c])if(delete i[t.start],t.unshift(n),t.start=f,e=u[f]){delete u[e.end];var s=e===t?t:e.concat(t);i[s.start=e.start]=u[s.end=t.end]=s}else i[t.start]=u[t.end]=t;else t=[n],i[t.start=f]=u[t.end=c]=t}),e(u,i),e(i,u),t.forEach(function(n){o[0>n?~n:n]||f.push([n])}),f}function s(n){return c(n,l.apply(this,arguments))}function l(n,t,r){function e(n){var t=0>n?~n:n;(s[t]||(s[t]=[])).push({i:n,g:c})}function o(n){n.forEach(e)}function i(n){n.forEach(o)}function u(n){"GeometryCollection"===n.type?n.geometries.forEach(u):n.type in l&&(c=n,l[n.type](n.arcs))}var f=[];if(arguments.length>1){var c,s=[],l={LineString:o,MultiLineString:i,Polygon:i,MultiPolygon:function(n){n.forEach(i)}};u(t),s.forEach(arguments.length<3?function(n){f.push(n[0].i)}:function(n){r(n[0].g,n[n.length-1].g)&&f.push(n[0].i)})}else for(var h=0,p=n.arcs.length;p>h;++h)f.push(h);return{type:"MultiLineString",arcs:a(n,f)}}function h(n){var t=n[0],r=n[1],e=n[2];return Math.abs((t[0]-e[0])*(r[1]-t[1])-(t[0]-r[0])*(e[1]-t[1]))}function p(n){for(var t,r=-1,e=n.length,o=n[e-1],i=0;++r<e;)t=o,o=n[r],i+=t[0]*o[1]-t[1]*o[0];return i/2}function v(n){return c(n,g.apply(this,arguments))}function g(n,t){function r(n){n.forEach(function(t){t.forEach(function(t){(o[t=0>t?~t:t]||(o[t]=[])).push(n)})}),i.push(n)}function e(t){return Math.abs(p(c(n,{type:"Polygon",arcs:[t]}).coordinates[0]))}var o={},i=[],u=[];return t.forEach(function(n){"Polygon"===n.type?r(n.arcs):"MultiPolygon"===n.type&&n.arcs.forEach(r)}),i.forEach(function(n){if(!n._){var t=[],r=[n];for(n._=1,u.push(t);n=r.pop();)t.push(n),n.forEach(function(n){n.forEach(function(n){o[0>n?~n:n].forEach(function(n){n._||(n._=1,r.push(n))})})})}}),i.forEach(function(n){delete n._}),{type:"MultiPolygon",arcs:u.map(function(t){var r,i=[];if(t.forEach(function(n){n.forEach(function(n){n.forEach(function(n){o[0>n?~n:n].length<2&&i.push(n)})})}),i=a(n,i),(r=i.length)>1)for(var u,f,c=1,s=e(i[0]);r>c;++c)(u=e(i[c]))>s&&(f=i[0],i[0]=i[c],i[c]=f,s=u);return i})}}function y(n){function t(n,t){n.forEach(function(n){0>n&&(n=~n);var r=o[n];r?r.push(t):o[n]=[t]})}function r(n,r){n.forEach(function(n){t(n,r)})}function e(n,t){"GeometryCollection"===n.type?n.geometries.forEach(function(n){e(n,t)}):n.type in f&&f[n.type](n.arcs,t)}var o={},u=n.map(function(){return[]}),f={LineString:t,MultiLineString:r,Polygon:r,MultiPolygon:function(n,t){n.forEach(function(n){r(n,t)})}};n.forEach(e);for(var c in o)for(var a=o[c],s=a.length,l=0;s>l;++l)for(var h=l+1;s>h;++h){var p,v=a[l],g=a[h];(p=u[v])[c=i(p,g)]!==g&&p.splice(c,0,g),(p=u[g])[c=i(p,v)]!==v&&p.splice(c,0,v)}return u}function d(n,t){return n[1][2]-t[1][2]}function m(){function n(n,t){for(;t>0;){var r=(t+1>>1)-1,o=e[r];if(d(n,o)>=0)break;e[o._=t]=o,e[n._=t=r]=n}}function t(n,t){for(;;){var r=t+1<<1,i=r-1,u=t,f=e[u];if(o>i&&d(e[i],f)<0&&(f=e[u=i]),o>r&&d(e[r],f)<0&&(f=e[u=r]),u===t)break;e[f._=t]=f,e[n._=t=u]=n}}var r={},e=[],o=0;return r.push=function(t){return n(e[t._=o]=t,o++),o},r.pop=function(){if(!(0>=o)){var n,r=e[0];return--o>0&&(n=e[o],t(e[n._=0]=n,0)),r}},r.remove=function(r){var i,u=r._;if(e[u]===r)return u!==--o&&(i=e[o],(d(i,r)<0?n:t)(e[i._=u]=i,u)),u},r}function E(n,t){function o(n){f.remove(n),n[1][2]=t(n),f.push(n)}var i=r(n.transform),u=e(n.transform),f=m();return t||(t=h),n.arcs.forEach(function(n){var r,e,c,a,s=[],l=0;for(e=0,c=n.length;c>e;++e)a=n[e],i(n[e]=[a[0],a[1],1/0],e);for(e=1,c=n.length-1;c>e;++e)r=n.slice(e-1,e+2),r[1][2]=t(r),s.push(r),f.push(r);for(e=0,c=s.length;c>e;++e)r=s[e],r.previous=s[e-1],r.next=s[e+1];for(;r=f.pop();){var h=r.previous,p=r.next;r[1][2]<l?r[1][2]=l:l=r[1][2],h&&(h.next=p,h[2]=r[2],o(h)),p&&(p.previous=h,p[0]=r[0],o(p))}n.forEach(u)}),n}var M="1.6.26";n.version=M,n.mesh=s,n.meshArcs=l,n.merge=v,n.mergeArcs=g,n.feature=u,n.neighbors=y,n.presimplify=E}); | ||
+ | |||
+ | /** | ||
+ | * Created by nil on 21/08/2016. | ||
+ | */ | ||
+ | |||
+ | var map_data = {}; | ||
+ | $.ajax({ | ||
+ | url: "maps/cancer_prevalence.json", | ||
+ | success: function (raw_data) { | ||
+ | for(var i = 0; i<raw_data.length; i++){ | ||
+ | map_data[raw_data[i].Population] = raw_data[i].Value; | ||
+ | } | ||
+ | |||
+ | // console.log(map_data); | ||
+ | } | ||
+ | }); | ||
+ | |||
+ | // var colours = ["#6363FF", "#6373FF", "#63A3FF", "#63E3FF", "#63FFFB", "#63FFCB", | ||
+ | // "#63FF9B", "#63FF6B", "#7BFF63", "#BBFF63", "#DBFF63", "#FBFF63", | ||
+ | // "#FFD363", "#FFB363", "#FF8363", "#FF7363", "#FF6364"]; | ||
+ | |||
+ | // var colours = ["#fef0d9" ,"#fdd49e", "#fdbb84", "#fc8d59", "#ef6548", "#d7301f", "#990000"]; //red | ||
+ | var colours = ["#f7fbff", "#deebf7", "#c6dbef", "#9ecae1", "#6baed6", "#4292c6", "#2171b5", "#08519c", "#08306b"]; //blues | ||
+ | |||
+ | var heatmapColour = d3.scale.linear() | ||
+ | .domain(d3.range(0, 1, 1.0 / (colours.length - 1))) | ||
+ | .range(colours); | ||
+ | |||
+ | var cancer = [{"Population":"Afghanistan","Value":"3.2"},{"Population":"Albania","Value":"10.5"},{"Population":"Algeria","Value":"7.9"},{"Population":"Angola","Value":"3.0"},{"Population":"Argentina","Value":"29.0"},{"Population":"Armenia","Value":"20.9"},{"Population":"Australia","Value":"57.9"},{"Population":"Austria","Value":"50.6"},{"Population":"Azerbaijan","Value":"5.5"},{"Population":"Bahamas","Value":"18.6"},{"Population":"Bahrain","Value":"5.8"},{"Population":"Bangladesh","Value":"2.7"},{"Population":"Barbados","Value":"37.6"},{"Population":"Belarus","Value":"34.7"},{"Population":"Belgium","Value":"74.6"},{"Population":"Belize","Value":"3.7"},{"Population":"Benin","Value":"3.1"},{"Population":"Bhutan","Value":"2.6"},{"Population":"Bolivia (Plurinational State of)","Value":"6.7"},{"Population":"Bosnia and Herzegovina","Value":"26.6"},{"Population":"Botswana","Value":"2.7"},{"Population":"Brazil","Value":"15.4"},{"Population":"Brunei Darussalam","Value":"15.0"},{"Population":"Bulgaria","Value":"54.7"},{"Population":"Burkina Faso","Value":"1.5"},{"Population":"Burundi","Value":"3.7"},{"Population":"Cabo Verde","Value":"3.4"},{"Population":"Cambodia","Value":"5.4"},{"Population":"Cameroon","Value":"2.3"},{"Population":"Canada","Value":"65.2"},{"Population":"Central African Republic","Value":"3.1"},{"Population":"Chad","Value":"2.9"},{"Population":"Chile","Value":"17.2"},{"Population":"China","Value":"14.0"},{"Population":"Colombia","Value":"11.0"},{"Population":"Comoros","Value":"1.6"},{"Population":"Congo","Value":"3.2"},{"Population":"Costa Rica","Value":"14.8"},{"Population":"Croatia","Value":"65.3"},{"Population":"Cuba","Value":"27.1"},{"Population":"Cyprus","Value":"35.8"},{"Population":"Czech Republic","Value":"65.4"},{"Population":"Cote d'Ivoire","Value":"3.5"},{"Population":"Democratic People’s Republic of Korea","Value":"20.9"},{"Population":"Democratic Republic of the Congo","Value":"3.7"},{"Population":"Denmark","Value":"76.4"},{"Population":"Djibouti","Value":"4.2"},{"Population":"Dominican Republic","Value":"9.2"},{"Population":"Ecuador","Value":"9.6"},{"Population":"Egypt","Value":"4.6"},{"Population":"El Salvador","Value":"8.1"},{"Population":"Equatorial Guinea","Value":"4.0"},{"Population":"Eritrea","Value":"3.4"},{"Population":"Estonia","Value":"48.5"},{"Population":"Ethiopia","Value":"4.7"},{"Population":"Fiji","Value":"6.1"},{"Population":"Finland","Value":"50.2"},{"Population":"France","Value":"62.4"},{"Population":"France, Guadeloupe","Value":"20.4"},{"Population":"France, La Reunion","Value":"18.4"},{"Population":"France, Martinique","Value":"39.2"},{"Population":"France, New Caledonia","Value":"21.5"},{"Population":"French Guyana","Value":"4.3"},{"Population":"French Polynesia","Value":"11.5"},{"Population":"Gabon","Value":"4.0"},{"Population":"The Gambia","Value":"0.7"},{"Population":"Georgia","Value":"9.8"},{"Population":"Germany","Value":"68.5"},{"Population":"Ghana","Value":"2.8"},{"Population":"Greece","Value":"29.7"},{"Population":"Guatemala","Value":"3.2"},{"Population":"Guinea","Value":"1.2"},{"Population":"Guinea-Bissau","Value":"2.5"},{"Population":"Guyana","Value":"7.7"},{"Population":"Haiti","Value":"4.6"},{"Population":"Honduras","Value":"4.9"},{"Population":"Hungary","Value":"70.5"},{"Population":"Iceland","Value":"46.5"},{"Population":"India","Value":"3.9"},{"Population":"Indonesia","Value":"9.2"},{"Population":"Iran (Islamic Republic of)","Value":"7.5"},{"Population":"Iraq","Value":"4.1"},{"Population":"Ireland","Value":"50.9"},{"Population":"Israel","Value":"54.5"},{"Population":"Italy","Value":"70.1"},{"Population":"Jamaica","Value":"14.3"},{"Population":"Japan","Value":"85.8"},{"Population":"Jordan","Value":"14.4"},{"Population":"Kazakhstan","Value":"19.0"},{"Population":"Kenya","Value":"5.0"},{"Population":"Republic of Korea","Value":"64.6"},{"Population":"Kuwait","Value":"7.0"},{"Population":"Kyrgyzstan","Value":"5.2"},{"Population":"Lao People's Democratic Republic","Value":"5.3"},{"Population":"Latvia","Value":"41.7"},{"Population":"Lebanon","Value":"14.1"},{"Population":"Lesotho","Value":"1.4"},{"Population":"Liberia","Value":"2.0"},{"Population":"Libya","Value":"10.3"},{"Population":"Lithuania","Value":"38.4"},{"Population":"Luxembourg","Value":"63.2"},{"Population":"Madagascar","Value":"5.2"},{"Population":"Malawi","Value":"2.2"},{"Population":"Malaysia","Value":"13.4"},{"Population":"Maldives","Value":"3.3"},{"Population":"Mali","Value":"3.7"},{"Population":"Malta","Value":"57.7"},{"Population":"Mauritania","Value":"2.5"},{"Population":"Mauritius","Value":"18.8"},{"Population":"Mexico","Value":"6.9"},{"Population":"Mongolia","Value":"3.7"},{"Population":"Montenegro","Value":"39.8"},{"Population":"Morocco","Value":"6.8"},{"Population":"Mozambique","Value":"0.7"},{"Population":"Myanmar","Value":"6.4"},{"Population":"Namibia","Value":"3.2"},{"Population":"Nepal","Value":"2.2"},{"Population":"Netherlands","Value":"77.3"},{"Population":"New Zealand","Value":"57.3"},{"Population":"Nicaragua","Value":"5.5"},{"Population":"Niger","Value":"3.5"},{"Population":"Nigeria","Value":"3.0"},{"Population":"Norway","Value":"74.6"},{"Population":"Oman","Value":"4.0"},{"Population":"Pakistan","Value":"2.9"},{"Population":"Panama","Value":"11.6"},{"Population":"Papua New Guinea","Value":"4.7"},{"Population":"Paraguay","Value":"9.7"},{"Population":"Peru","Value":"9.6"},{"Population":"Philippines","Value":"8.5"},{"Population":"Poland","Value":"41.4"},{"Population":"Portugal","Value":"58.5"},{"Population":"Puerto Rico","Value":"33.2"},{"Population":"Qatar","Value":"5.8"},{"Population":"Republic of Moldova","Value":"37.2"},{"Population":"Romania","Value":"40.1"},{"Population":"Russian Federation","Value":"34.9"},{"Population":"Rwanda","Value":"2.8"},{"Population":"Samoa","Value":"6.0"},{"Population":"Saudi Arabia","Value":"6.4"},{"Population":"Senegal","Value":"2.5"},{"Population":"Serbia","Value":"52.4"},{"Population":"Sierra Leone","Value":"2.2"},{"Population":"Singapore","Value":"44.9"},{"Population":"Slovakia","Value":"61.3"},{"Population":"Slovenia","Value":"64.8"},{"Population":"Solomon Islands","Value":"4.4"},{"Population":"Somalia","Value":"5.0"},{"Population":"South Africa","Value":"7.8"},{"Population":"South Sudan","Value":"4.0"},{"Population":"Spain","Value":"60.4"},{"Population":"Sri Lanka","Value":"3.7"},{"Population":"Sudan","Value":"2.9"},{"Population":"Suriname","Value":"16.1"},{"Population":"Swaziland","Value":"1.6"},{"Population":"Sweden","Value":"64.3"},{"Population":"Switzerland","Value":"58.8"},{"Population":"Syrian Arab Republic","Value":"10.5"},{"Population":"Tajikistan","Value":"3.9"},{"Population":"Thailand","Value":"17.7"},{"Population":"The former Yugoslav Republic of Macedonia","Value":"35.7"},{"Population":"Timor-Leste","Value":"7.8"},{"Population":"Togo","Value":"2.7"},{"Population":"Trinidad and Tobago","Value":"23.5"},{"Population":"Tunisia","Value":"8.9"},{"Population":"Turkey","Value":"13.2"},{"Population":"Turkmenistan","Value":"6.8"},{"Population":"Uganda","Value":"3.6"},{"Population":"Ukraine","Value":"35.0"},{"Population":"United Arab Emirates","Value":"3.3"},{"Population":"United Kingdom","Value":"55.3"},{"Population":"United Republic of Tanzania","Value":"3.2"},{"Population":"United States of America","Value":"41.8"},{"Population":"United States of America, Guam","Value":"19.2"},{"Population":"Uruguay","Value":"43.7"},{"Population":"Uzbekistan","Value":"3.5"},{"Population":"Vanuatu","Value":"5.1"},{"Population":"Venezuela (Bolivarian Republic of)","Value":"9.2"},{"Population":"Viet Nam","Value":"7.8"},{"Population":"West Bank and Gaza Strip","Value":"9.0"},{"Population":"Yemen","Value":"2.6"},{"Population":"Zambia","Value":"3.0"},{"Population":"Zimbabwe","Value":"5.7"}]; | ||
+ | var countries = [ | ||
+ | { 'name' : 'Afghanistan', 'alpha2' : 'AF', 'alpha3' : 'AFG', 'num3' : '004', 'subregion' : '034', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Åland Islands', 'alpha2' : 'AX', 'alpha3' : 'ALA', 'num3' : '248', 'subregion' : '154', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Albania', 'alpha2' : 'AL', 'alpha3' : 'ALB', 'num3' : '008', 'subregion' : '039', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Algeria', 'alpha2' : 'DZ', 'alpha3' : 'DZA', 'num3' : '012', 'subregion' : '015', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'American Samoa', 'alpha2' : 'AS', 'alpha3' : 'ASM', 'num3' : '016', 'subregion' : '061', 'region' : '', 'continent' : '009' }, | ||
+ | { 'name' : 'Andorra', 'alpha2' : 'AD', 'alpha3' : 'AND', 'num3' : '020', 'subregion' : '039', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Angola', 'alpha2' : 'AO', 'alpha3' : 'AGO', 'num3' : '024', 'subregion' : '017', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Anguilla', 'alpha2' : 'AI', 'alpha3' : 'AIA', 'num3' : '660', 'subregion' : '029', 'region' : '419', 'continent' : '019' }, | ||
+ | { 'name' : 'Antigua and Barbuda', 'alpha2' : 'AG', 'alpha3' : 'ATG', 'num3' : '028', 'subregion' : '029', 'region' : '419', 'continent' : '019' }, | ||
+ | { 'name' : 'Argentina', 'alpha2' : 'AR', 'alpha3' : 'ARG', 'num3' : '032', 'subregion' : '005', 'region' : '', 'continent' : '019' }, | ||
+ | { 'name' : 'Armenia', 'alpha2' : 'AM', 'alpha3' : 'ARM', 'num3' : '051', 'subregion' : '145', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Aruba', 'alpha2' : 'AW', 'alpha3' : 'ABW', 'num3' : '533', 'subregion' : '029', 'region' : '419', 'continent' : '019' }, | ||
+ | { 'name' : 'Australia', 'alpha2' : 'AU', 'alpha3' : 'AUS', 'num3' : '036', 'subregion' : '053', 'region' : '', 'continent' : '009' }, | ||
+ | { 'name' : 'Austria', 'alpha2' : 'AT', 'alpha3' : 'AUT', 'num3' : '040', 'subregion' : '155', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Azerbaijan', 'alpha2' : 'AZ', 'alpha3' : 'AZE', 'num3' : '031', 'subregion' : '145', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Bahamas', 'alpha2' : 'BS', 'alpha3' : 'BHS', 'num3' : '044', 'subregion' : '029', 'region' : '419', 'continent' : '019' }, | ||
+ | { 'name' : 'Bahrain', 'alpha2' : 'BH', 'alpha3' : 'BHR', 'num3' : '048', 'subregion' : '145', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Bangladesh', 'alpha2' : 'BD', 'alpha3' : 'BGD', 'num3' : '050', 'subregion' : '034', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Barbados', 'alpha2' : 'BB', 'alpha3' : 'BRB', 'num3' : '052', 'subregion' : '029', 'region' : '419', 'continent' : '019' }, | ||
+ | { 'name' : 'Belarus', 'alpha2' : 'BY', 'alpha3' : 'BLR', 'num3' : '112', 'subregion' : '151', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Belgium', 'alpha2' : 'BE', 'alpha3' : 'BEL', 'num3' : '056', 'subregion' : '155', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Belize', 'alpha2' : 'BZ', 'alpha3' : 'BLZ', 'num3' : '084', 'subregion' : '013', 'region' : '', 'continent' : '019' }, | ||
+ | { 'name' : 'Benin', 'alpha2' : 'BJ', 'alpha3' : 'BEN', 'num3' : '204', 'subregion' : '011', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Bermuda', 'alpha2' : 'BM', 'alpha3' : 'BMU', 'num3' : '060', 'subregion' : '', 'region' : '021', 'continent' : '019' }, | ||
+ | { 'name' : 'Bhutan', 'alpha2' : 'BT', 'alpha3' : 'BTN', 'num3' : '064', 'subregion' : '034', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Bolivia (Plurinational State of)', 'alpha2' : 'BO', 'alpha3' : 'BOL', 'num3' : '068', 'subregion' : '005', 'region' : '', 'continent' : '019' }, | ||
+ | { 'name' : 'Bonaire, Sint Eustatius and Saba', 'alpha2' : 'BQ', 'alpha3' : 'BES', 'num3' : '535', 'subregion' : '029', 'region' : '419', 'continent' : '019' }, | ||
+ | { 'name' : 'Bosnia and Herzegovina', 'alpha2' : 'BA', 'alpha3' : 'BIH', 'num3' : '070', 'subregion' : '039', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Botswana', 'alpha2' : 'BW', 'alpha3' : 'BWA', 'num3' : '072', 'subregion' : '018', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Brazil', 'alpha2' : 'BR', 'alpha3' : 'BRA', 'num3' : '076', 'subregion' : '005', 'region' : '', 'continent' : '019' }, | ||
+ | { 'name' : 'British Virgin Islands', 'alpha2' : 'VG', 'alpha3' : 'VGB', 'num3' : '092', 'subregion' : '029', 'region' : '419', 'continent' : '019' }, | ||
+ | { 'name' : 'Brunei Darussalam', 'alpha2' : 'BN', 'alpha3' : 'BRN', 'num3' : '096', 'subregion' : '035', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Bulgaria', 'alpha2' : 'BG', 'alpha3' : 'BGR', 'num3' : '100', 'subregion' : '151', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Burkina Faso', 'alpha2' : 'BF', 'alpha3' : 'BFA', 'num3' : '854', 'subregion' : '011', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Burundi', 'alpha2' : 'BI', 'alpha3' : 'BDI', 'num3' : '108', 'subregion' : '014', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Cabo Verde', 'alpha2' : 'CV', 'alpha3' : 'CPV', 'num3' : '132', 'subregion' : '011', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Cambodia', 'alpha2' : 'KH', 'alpha3' : 'KHM', 'num3' : '116', 'subregion' : '035', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Cameroon', 'alpha2' : 'CM', 'alpha3' : 'CMR', 'num3' : '120', 'subregion' : '017', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Canada', 'alpha2' : 'CA', 'alpha3' : 'CAN', 'num3' : '124', 'subregion' : '', 'region' : '021', 'continent' : '019' }, | ||
+ | { 'name' : 'Cayman Islands', 'alpha2' : 'KY', 'alpha3' : 'CYM', 'num3' : '136', 'subregion' : '029', 'region' : '419', 'continent' : '019' }, | ||
+ | { 'name' : 'Central African Republic', 'alpha2' : 'CF', 'alpha3' : 'CAF', 'num3' : '140', 'subregion' : '017', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Chad', 'alpha2' : 'TD', 'alpha3' : 'TCD', 'num3' : '148', 'subregion' : '017', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Channel Islands', 'alpha2' : '', 'alpha3' : '', 'num3' : '830', 'subregion' : '154', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Chile', 'alpha2' : 'CL', 'alpha3' : 'CHL', 'num3' : '152', 'subregion' : '005', 'region' : '', 'continent' : '019' }, | ||
+ | { 'name' : 'China', 'alpha2' : 'CN', 'alpha3' : 'CHN', 'num3' : '156', 'subregion' : '030', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'China, Hong Kong Special Administrative Region', 'alpha2' : 'HK', 'alpha3' : 'HKG', 'num3' : '344', 'subregion' : '030', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'China, Macao Special Administrative Region', 'alpha2' : 'MO', 'alpha3' : 'MAC', 'num3' : '446', 'subregion' : '030', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Colombia', 'alpha2' : 'CO', 'alpha3' : 'COL', 'num3' : '170', 'subregion' : '005', 'region' : '', 'continent' : '019' }, | ||
+ | { 'name' : 'Comoros', 'alpha2' : 'KM', 'alpha3' : 'COM', 'num3' : '174', 'subregion' : '014', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Congo', 'alpha2' : 'CG', 'alpha3' : 'COG', 'num3' : '178', 'subregion' : '017', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Cook Islands', 'alpha2' : 'CK', 'alpha3' : 'COK', 'num3' : '184', 'subregion' : '061', 'region' : '', 'continent' : '009' }, | ||
+ | { 'name' : 'Costa Rica', 'alpha2' : 'CR', 'alpha3' : 'CRI', 'num3' : '188', 'subregion' : '013', 'region' : '', 'continent' : '019' }, | ||
+ | { 'name' : "Cote d'Ivoire", 'alpha2' : 'CI', 'alpha3' : 'CIV', 'num3' : '384', 'subregion' : '011', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Croatia', 'alpha2' : 'HR', 'alpha3' : 'HRV', 'num3' : '191', 'subregion' : '039', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Cuba', 'alpha2' : 'CU', 'alpha3' : 'CUB', 'num3' : '192', 'subregion' : '029', 'region' : '419', 'continent' : '019' }, | ||
+ | { 'name' : 'Curaçao', 'alpha2' : 'CW', 'alpha3' : 'CUW', 'num3' : '531', 'subregion' : '029', 'region' : '419', 'continent' : '019' }, | ||
+ | { 'name' : 'Cyprus', 'alpha2' : 'CY', 'alpha3' : 'CYP', 'num3' : '196', 'subregion' : '145', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Czech Republic', 'alpha2' : 'CZ', 'alpha3' : 'CZE', 'num3' : '203', 'subregion' : '151', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : "Democratic People’s Republic of Korea", 'alpha2' : 'KP', 'alpha3' : 'PRK', 'num3' : '408', 'subregion' : '030', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Democratic Republic of the Congo', 'alpha2' : 'CD', 'alpha3' : 'COD', 'num3' : '180', 'subregion' : '017', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Denmark', 'alpha2' : 'DK', 'alpha3' : 'DNK', 'num3' : '208', 'subregion' : '154', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Djibouti', 'alpha2' : 'DJ', 'alpha3' : 'DJI', 'num3' : '262', 'subregion' : '014', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Dominica', 'alpha2' : 'DM', 'alpha3' : 'DMA', 'num3' : '212', 'subregion' : '029', 'region' : '419', 'continent' : '019' }, | ||
+ | { 'name' : 'Dominican Republic', 'alpha2' : 'DO', 'alpha3' : 'DOM', 'num3' : '214', 'subregion' : '029', 'region' : '419', 'continent' : '019' }, | ||
+ | { 'name' : 'Ecuador', 'alpha2' : 'EC', 'alpha3' : 'ECU', 'num3' : '218', 'subregion' : '005', 'region' : '', 'continent' : '019' }, | ||
+ | { 'name' : 'Egypt', 'alpha2' : 'EG', 'alpha3' : 'EGY', 'num3' : '818', 'subregion' : '015', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'El Salvador', 'alpha2' : 'SV', 'alpha3' : 'SLV', 'num3' : '222', 'subregion' : '013', 'region' : '', 'continent' : '019' }, | ||
+ | { 'name' : 'Equatorial Guinea', 'alpha2' : 'GQ', 'alpha3' : 'GNQ', 'num3' : '226', 'subregion' : '017', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Eritrea', 'alpha2' : 'ER', 'alpha3' : 'ERI', 'num3' : '232', 'subregion' : '014', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Estonia', 'alpha2' : 'EE', 'alpha3' : 'EST', 'num3' : '233', 'subregion' : '154', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Ethiopia', 'alpha2' : 'ET', 'alpha3' : 'ETH', 'num3' : '231', 'subregion' : '014', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Faeroe Islands', 'alpha2' : 'FO', 'alpha3' : 'FRO', 'num3' : '234', 'subregion' : '154', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Falkland Islands (Malvinas)', 'alpha2' : 'FK', 'alpha3' : 'FLK', 'num3' : '238', 'subregion' : '005', 'region' : '', 'continent' : '019' }, | ||
+ | { 'name' : 'Fiji', 'alpha2' : 'FJ', 'alpha3' : 'FJI', 'num3' : '242', 'subregion' : '054', 'region' : '', 'continent' : '009' }, | ||
+ | { 'name' : 'Finland', 'alpha2' : 'FI', 'alpha3' : 'FIN', 'num3' : '246', 'subregion' : '154', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'France', 'alpha2' : 'FR', 'alpha3' : 'FRA', 'num3' : '250', 'subregion' : '155', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'French Guyana', 'alpha2' : 'GF', 'alpha3' : 'GUF', 'num3' : '254', 'subregion' : '005', 'region' : '', 'continent' : '019' }, | ||
+ | { 'name' : 'French Polynesia', 'alpha2' : 'PF', 'alpha3' : 'PYF', 'num3' : '258', 'subregion' : '061', 'region' : '', 'continent' : '009' }, | ||
+ | { 'name' : 'Gabon', 'alpha2' : 'GA', 'alpha3' : 'GAB', 'num3' : '266', 'subregion' : '017', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Gambia', 'alpha2' : 'GM', 'alpha3' : 'GMB', 'num3' : '270', 'subregion' : '011', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Georgia', 'alpha2' : 'GE', 'alpha3' : 'GEO', 'num3' : '268', 'subregion' : '145', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Germany', 'alpha2' : 'DE', 'alpha3' : 'DEU', 'num3' : '276', 'subregion' : '155', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Ghana', 'alpha2' : 'GH', 'alpha3' : 'GHA', 'num3' : '288', 'subregion' : '011', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Gibraltar', 'alpha2' : 'GI', 'alpha3' : 'GIB', 'num3' : '292', 'subregion' : '039', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Greece', 'alpha2' : 'GR', 'alpha3' : 'GRC', 'num3' : '300', 'subregion' : '039', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Greenland', 'alpha2' : 'GL', 'alpha3' : 'GRL', 'num3' : '304', 'subregion' : '', 'region' : '021', 'continent' : '019' }, | ||
+ | { 'name' : 'Grenada', 'alpha2' : 'GD', 'alpha3' : 'GRD', 'num3' : '308', 'subregion' : '029', 'region' : '419', 'continent' : '019' }, | ||
+ | { 'name' : 'Guadeloupe', 'alpha2' : 'GP', 'alpha3' : 'GLP', 'num3' : '312', 'subregion' : '029', 'region' : '419', 'continent' : '019' }, | ||
+ | { 'name' : 'Guam', 'alpha2' : 'GU', 'alpha3' : 'GUM', 'num3' : '316', 'subregion' : '057', 'region' : '', 'continent' : '009' }, | ||
+ | { 'name' : 'Guatemala', 'alpha2' : 'GT', 'alpha3' : 'GTM', 'num3' : '320', 'subregion' : '013', 'region' : '', 'continent' : '019' }, | ||
+ | { 'name' : 'Guernsey', 'alpha2' : 'GG', 'alpha3' : 'GGY', 'num3' : '831', 'subregion' : '154', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Guinea', 'alpha2' : 'GN', 'alpha3' : 'GIN', 'num3' : '324', 'subregion' : '011', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Guinea-Bissau', 'alpha2' : 'GW', 'alpha3' : 'GNB', 'num3' : '624', 'subregion' : '011', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Guyana', 'alpha2' : 'GY', 'alpha3' : 'GUY', 'num3' : '328', 'subregion' : '005', 'region' : '', 'continent' : '019' }, | ||
+ | { 'name' : 'Haiti', 'alpha2' : 'HT', 'alpha3' : 'HTI', 'num3' : '332', 'subregion' : '029', 'region' : '419', 'continent' : '019' }, | ||
+ | { 'name' : 'Holy See', 'alpha2' : 'VA', 'alpha3' : 'VAT', 'num3' : '336', 'subregion' : '039', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Honduras', 'alpha2' : 'HN', 'alpha3' : 'HND', 'num3' : '340', 'subregion' : '013', 'region' : '', 'continent' : '019' }, | ||
+ | { 'name' : 'Hungary', 'alpha2' : 'HU', 'alpha3' : 'HUN', 'num3' : '348', 'subregion' : '151', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Iceland', 'alpha2' : 'IS', 'alpha3' : 'ISL', 'num3' : '352', 'subregion' : '154', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'India', 'alpha2' : 'IN', 'alpha3' : 'IND', 'num3' : '356', 'subregion' : '034', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Indonesia', 'alpha2' : 'ID', 'alpha3' : 'IDN', 'num3' : '360', 'subregion' : '035', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Iran (Islamic Republic of)', 'alpha2' : 'IR', 'alpha3' : 'IRN', 'num3' : '364', 'subregion' : '034', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Iraq', 'alpha2' : 'IQ', 'alpha3' : 'IRQ', 'num3' : '368', 'subregion' : '145', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Ireland', 'alpha2' : 'IE', 'alpha3' : 'IRL', 'num3' : '372', 'subregion' : '154', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Isle of Man', 'alpha2' : 'IM', 'alpha3' : 'IMN', 'num3' : '833', 'subregion' : '154', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Israel', 'alpha2' : 'IL', 'alpha3' : 'ISR', 'num3' : '376', 'subregion' : '145', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Italy', 'alpha2' : 'IT', 'alpha3' : 'ITA', 'num3' : '380', 'subregion' : '039', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Jamaica', 'alpha2' : 'JM', 'alpha3' : 'JAM', 'num3' : '388', 'subregion' : '029', 'region' : '419', 'continent' : '019' }, | ||
+ | { 'name' : 'Japan', 'alpha2' : 'JP', 'alpha3' : 'JPN', 'num3' : '392', 'subregion' : '030', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Jersey', 'alpha2' : 'JE', 'alpha3' : 'JEY', 'num3' : '832', 'subregion' : '154', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Jordan', 'alpha2' : 'JO', 'alpha3' : 'JOR', 'num3' : '400', 'subregion' : '145', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Kazakhstan', 'alpha2' : 'KZ', 'alpha3' : 'KAZ', 'num3' : '398', 'subregion' : '143', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Kenya', 'alpha2' : 'KE', 'alpha3' : 'KEN', 'num3' : '404', 'subregion' : '014', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Kiribati', 'alpha2' : 'KI', 'alpha3' : 'KIR', 'num3' : '296', 'subregion' : '057', 'region' : '', 'continent' : '009' }, | ||
+ | { 'name' : 'Kuwait', 'alpha2' : 'KW', 'alpha3' : 'KWT', 'num3' : '414', 'subregion' : '145', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Kyrgyzstan', 'alpha2' : 'KG', 'alpha3' : 'KGZ', 'num3' : '417', 'subregion' : '143', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : "Lao People's Democratic Republic", 'alpha2' : 'LA', 'alpha3' : 'LAO', 'num3' : '418', 'subregion' : '035', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Latvia', 'alpha2' : 'LV', 'alpha3' : 'LVA', 'num3' : '428', 'subregion' : '154', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Lebanon', 'alpha2' : 'LB', 'alpha3' : 'LBN', 'num3' : '422', 'subregion' : '145', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Lesotho', 'alpha2' : 'LS', 'alpha3' : 'LSO', 'num3' : '426', 'subregion' : '018', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Liberia', 'alpha2' : 'LR', 'alpha3' : 'LBR', 'num3' : '430', 'subregion' : '011', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Libya', 'alpha2' : 'LY', 'alpha3' : 'LBY', 'num3' : '434', 'subregion' : '015', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Liechtenstein', 'alpha2' : 'LI', 'alpha3' : 'LIE', 'num3' : '438', 'subregion' : '155', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Lithuania', 'alpha2' : 'LT', 'alpha3' : 'LTU', 'num3' : '440', 'subregion' : '154', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Luxembourg', 'alpha2' : 'LU', 'alpha3' : 'LUX', 'num3' : '442', 'subregion' : '155', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Madagascar', 'alpha2' : 'MG', 'alpha3' : 'MDG', 'num3' : '450', 'subregion' : '014', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Malawi', 'alpha2' : 'MW', 'alpha3' : 'MWI', 'num3' : '454', 'subregion' : '014', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Malaysia', 'alpha2' : 'MY', 'alpha3' : 'MYS', 'num3' : '458', 'subregion' : '035', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Maldives', 'alpha2' : 'MV', 'alpha3' : 'MDV', 'num3' : '462', 'subregion' : '034', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Mali', 'alpha2' : 'ML', 'alpha3' : 'MLI', 'num3' : '466', 'subregion' : '011', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Malta', 'alpha2' : 'MT', 'alpha3' : 'MLT', 'num3' : '470', 'subregion' : '039', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Marshall Islands', 'alpha2' : 'MH', 'alpha3' : 'MHL', 'num3' : '584', 'subregion' : '057', 'region' : '', 'continent' : '009' }, | ||
+ | { 'name' : 'Martinique', 'alpha2' : 'MQ', 'alpha3' : 'MTQ', 'num3' : '474', 'subregion' : '029', 'region' : '419', 'continent' : '019' }, | ||
+ | { 'name' : 'Mauritania', 'alpha2' : 'MR', 'alpha3' : 'MRT', 'num3' : '478', 'subregion' : '011', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Mauritius', 'alpha2' : 'MU', 'alpha3' : 'MUS', 'num3' : '480', 'subregion' : '014', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Mayotte', 'alpha2' : 'YT', 'alpha3' : 'MYT', 'num3' : '175', 'subregion' : '014', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Mexico', 'alpha2' : 'MX', 'alpha3' : 'MEX', 'num3' : '484', 'subregion' : '013', 'region' : '', 'continent' : '019' }, | ||
+ | { 'name' : 'Micronesia (Federated States of)', 'alpha2' : 'FM', 'alpha3' : 'FSM', 'num3' : '583', 'subregion' : '057', 'region' : '', 'continent' : '009' }, | ||
+ | { 'name' : 'Monaco', 'alpha2' : 'MC', 'alpha3' : 'MCO', 'num3' : '492', 'subregion' : '155', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Mongolia', 'alpha2' : 'MN', 'alpha3' : 'MNG', 'num3' : '496', 'subregion' : '030', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Montenegro', 'alpha2' : 'ME', 'alpha3' : 'MNE', 'num3' : '499', 'subregion' : '039', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Montserrat', 'alpha2' : 'MS', 'alpha3' : 'MSR', 'num3' : '500', 'subregion' : '029', 'region' : '419', 'continent' : '019' }, | ||
+ | { 'name' : 'Morocco', 'alpha2' : 'MA', 'alpha3' : 'MAR', 'num3' : '504', 'subregion' : '015', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Mozambique', 'alpha2' : 'MZ', 'alpha3' : 'MOZ', 'num3' : '508', 'subregion' : '014', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Myanmar', 'alpha2' : 'MM', 'alpha3' : 'MMR', 'num3' : '104', 'subregion' : '035', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Namibia', 'alpha2' : 'NA', 'alpha3' : 'NAM', 'num3' : '516', 'subregion' : '018', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Nauru', 'alpha2' : 'NR', 'alpha3' : 'NRU', 'num3' : '520', 'subregion' : '057', 'region' : '', 'continent' : '009' }, | ||
+ | { 'name' : 'Nepal', 'alpha2' : 'NP', 'alpha3' : 'NPL', 'num3' : '524', 'subregion' : '034', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Netherlands', 'alpha2' : 'NL', 'alpha3' : 'NLD', 'num3' : '528', 'subregion' : '155', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'New Caledonia', 'alpha2' : 'NC', 'alpha3' : 'NCL', 'num3' : '540', 'subregion' : '054', 'region' : '', 'continent' : '009' }, | ||
+ | { 'name' : 'New Zealand', 'alpha2' : 'NZ', 'alpha3' : 'NZL', 'num3' : '554', 'subregion' : '053', 'region' : '', 'continent' : '009' }, | ||
+ | { 'name' : 'Nicaragua', 'alpha2' : 'NI', 'alpha3' : 'NIC', 'num3' : '558', 'subregion' : '013', 'region' : '', 'continent' : '019' }, | ||
+ | { 'name' : 'Niger', 'alpha2' : 'NE', 'alpha3' : 'NER', 'num3' : '562', 'subregion' : '011', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Nigeria', 'alpha2' : 'NG', 'alpha3' : 'NGA', 'num3' : '566', 'subregion' : '011', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Niue', 'alpha2' : 'NU', 'alpha3' : 'NIU', 'num3' : '570', 'subregion' : '061', 'region' : '', 'continent' : '009' }, | ||
+ | { 'name' : 'Norfolk Island', 'alpha2' : 'NF', 'alpha3' : 'NFK', 'num3' : '574', 'subregion' : '053', 'region' : '', 'continent' : '009' }, | ||
+ | { 'name' : 'Northern Mariana Islands', 'alpha2' : 'MP', 'alpha3' : 'MNP', 'num3' : '580', 'subregion' : '057', 'region' : '', 'continent' : '009' }, | ||
+ | { 'name' : 'Norway', 'alpha2' : 'NO', 'alpha3' : 'NOR', 'num3' : '578', 'subregion' : '154', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Oman', 'alpha2' : 'OM', 'alpha3' : 'OMN', 'num3' : '512', 'subregion' : '145', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Pakistan', 'alpha2' : 'PK', 'alpha3' : 'PAK', 'num3' : '586', 'subregion' : '034', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Palau', 'alpha2' : 'PW', 'alpha3' : 'PLW', 'num3' : '585', 'subregion' : '057', 'region' : '', 'continent' : '009' }, | ||
+ | { 'name' : 'Panama', 'alpha2' : 'PA', 'alpha3' : 'PAN', 'num3' : '591', 'subregion' : '013', 'region' : '', 'continent' : '019' }, | ||
+ | { 'name' : 'Papua New Guinea', 'alpha2' : 'PG', 'alpha3' : 'PNG', 'num3' : '598', 'subregion' : '054', 'region' : '', 'continent' : '009' }, | ||
+ | { 'name' : 'Paraguay', 'alpha2' : 'PY', 'alpha3' : 'PRY', 'num3' : '600', 'subregion' : '005', 'region' : '', 'continent' : '019' }, | ||
+ | { 'name' : 'Peru', 'alpha2' : 'PE', 'alpha3' : 'PER', 'num3' : '604', 'subregion' : '005', 'region' : '', 'continent' : '019' }, | ||
+ | { 'name' : 'Philippines', 'alpha2' : 'PH', 'alpha3' : 'PHL', 'num3' : '608', 'subregion' : '035', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Pitcairn', 'alpha2' : 'PN', 'alpha3' : 'PCN', 'num3' : '612', 'subregion' : '061', 'region' : '', 'continent' : '009' }, | ||
+ | { 'name' : 'Poland', 'alpha2' : 'PL', 'alpha3' : 'POL', 'num3' : '616', 'subregion' : '151', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Portugal', 'alpha2' : 'PT', 'alpha3' : 'PRT', 'num3' : '620', 'subregion' : '039', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Puerto Rico', 'alpha2' : 'PR', 'alpha3' : 'PRI', 'num3' : '630', 'subregion' : '029', 'region' : '419', 'continent' : '019' }, | ||
+ | { 'name' : 'Qatar', 'alpha2' : 'QA', 'alpha3' : 'QAT', 'num3' : '634', 'subregion' : '145', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Republic of Korea', 'alpha2' : 'KR', 'alpha3' : 'KOR', 'num3' : '410', 'subregion' : '030', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Republic of Moldova', 'alpha2' : 'MD', 'alpha3' : 'MDA', 'num3' : '498', 'subregion' : '151', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Réunion', 'alpha2' : 'RE', 'alpha3' : 'REU', 'num3' : '638', 'subregion' : '014', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Romania', 'alpha2' : 'RO', 'alpha3' : 'ROU', 'num3' : '642', 'subregion' : '151', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Russian Federation', 'alpha2' : 'RU', 'alpha3' : 'RUS', 'num3' : '643', 'subregion' : '151', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Rwanda', 'alpha2' : 'RW', 'alpha3' : 'RWA', 'num3' : '646', 'subregion' : '014', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Saint Helena', 'alpha2' : 'SH', 'alpha3' : 'SHN', 'num3' : '654', 'subregion' : '011', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Saint Kitts and Nevis', 'alpha2' : 'KN', 'alpha3' : 'KNA', 'num3' : '659', 'subregion' : '029', 'region' : '419', 'continent' : '019' }, | ||
+ | { 'name' : 'Saint Lucia', 'alpha2' : 'LC', 'alpha3' : 'LCA', 'num3' : '662', 'subregion' : '029', 'region' : '419', 'continent' : '019' }, | ||
+ | { 'name' : 'Saint Martin (French part)', 'alpha2' : 'MF', 'alpha3' : 'MAF', 'num3' : '663', 'subregion' : '029', 'region' : '419', 'continent' : '019' }, | ||
+ | { 'name' : 'Saint Pierre and Miquelon', 'alpha2' : 'PM', 'alpha3' : 'SPM', 'num3' : '666', 'subregion' : '', 'region' : '021', 'continent' : '019' }, | ||
+ | { 'name' : 'Saint Vincent and the Grenadines', 'alpha2' : 'VC', 'alpha3' : 'VCT', 'num3' : '670', 'subregion' : '029', 'region' : '419', 'continent' : '019' }, | ||
+ | { 'name' : 'Saint-Barthélemy', 'alpha2' : 'BL', 'alpha3' : 'BLM', 'num3' : '652', 'subregion' : '029', 'region' : '419', 'continent' : '019' }, | ||
+ | { 'name' : 'Samoa', 'alpha2' : 'WS', 'alpha3' : 'WSM', 'num3' : '882', 'subregion' : '061', 'region' : '', 'continent' : '009' }, | ||
+ | { 'name' : 'San Marino', 'alpha2' : 'SM', 'alpha3' : 'SMR', 'num3' : '674', 'subregion' : '039', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Sao Tome and Principe', 'alpha2' : 'ST', 'alpha3' : 'STP', 'num3' : '678', 'subregion' : '017', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Sark', 'alpha2' : '', 'alpha3' : '', 'num3' : '680', 'subregion' : '154', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Saudi Arabia', 'alpha2' : 'SA', 'alpha3' : 'SAU', 'num3' : '682', 'subregion' : '145', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Senegal', 'alpha2' : 'SN', 'alpha3' : 'SEN', 'num3' : '686', 'subregion' : '011', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Serbia', 'alpha2' : 'RS', 'alpha3' : 'SRB', 'num3' : '688', 'subregion' : '039', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Seychelles', 'alpha2' : 'SC', 'alpha3' : 'SYC', 'num3' : '690', 'subregion' : '014', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Sierra Leone', 'alpha2' : 'SL', 'alpha3' : 'SLE', 'num3' : '694', 'subregion' : '011', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Singapore', 'alpha2' : 'SG', 'alpha3' : 'SGP', 'num3' : '702', 'subregion' : '035', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Sint Maarten (Dutch part)', 'alpha2' : 'SX', 'alpha3' : 'SXM', 'num3' : '534', 'subregion' : '029', 'region' : '419', 'continent' : '019' }, | ||
+ | { 'name' : 'Slovakia', 'alpha2' : 'SK', 'alpha3' : 'SVK', 'num3' : '703', 'subregion' : '151', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Slovenia', 'alpha2' : 'SI', 'alpha3' : 'SVN', 'num3' : '705', 'subregion' : '039', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Solomon Islands', 'alpha2' : 'SB', 'alpha3' : 'SLB', 'num3' : '090', 'subregion' : '054', 'region' : '', 'continent' : '009' }, | ||
+ | { 'name' : 'Somalia', 'alpha2' : 'SO', 'alpha3' : 'SOM', 'num3' : '706', 'subregion' : '014', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'South Africa', 'alpha2' : 'ZA', 'alpha3' : 'ZAF', 'num3' : '710', 'subregion' : '018', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'South Sudan', 'alpha2' : 'SS', 'alpha3' : 'SSD', 'num3' : '728', 'subregion' : '014', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Spain', 'alpha2' : 'ES', 'alpha3' : 'ESP', 'num3' : '724', 'subregion' : '039', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Sri Lanka', 'alpha2' : 'LK', 'alpha3' : 'LKA', 'num3' : '144', 'subregion' : '034', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'State of Palestine', 'alpha2' : 'PS', 'alpha3' : 'PSE', 'num3' : '275', 'subregion' : '145', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Sudan', 'alpha2' : 'SD', 'alpha3' : 'SDN', 'num3' : '729', 'subregion' : '015', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Suriname', 'alpha2' : 'SR', 'alpha3' : 'SUR', 'num3' : '740', 'subregion' : '005', 'region' : '', 'continent' : '019' }, | ||
+ | { 'name' : 'Svalbard and Jan Mayen Islands', 'alpha2' : 'SJ', 'alpha3' : 'SJM', 'num3' : '744', 'subregion' : '154', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Swaziland', 'alpha2' : 'SZ', 'alpha3' : 'SWZ', 'num3' : '748', 'subregion' : '018', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Sweden', 'alpha2' : 'SE', 'alpha3' : 'SWE', 'num3' : '752', 'subregion' : '154', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Switzerland', 'alpha2' : 'CH', 'alpha3' : 'CHE', 'num3' : '756', 'subregion' : '155', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Syrian Arab Republic', 'alpha2' : 'SY', 'alpha3' : 'SYR', 'num3' : '760', 'subregion' : '145', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Tajikistan', 'alpha2' : 'TJ', 'alpha3' : 'TJK', 'num3' : '762', 'subregion' : '143', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Thailand', 'alpha2' : 'TH', 'alpha3' : 'THA', 'num3' : '764', 'subregion' : '035', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'The former Yugoslav Republic of Macedonia', 'alpha2' : 'MK', 'alpha3' : 'MKD', 'num3' : '807', 'subregion' : '039', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'Timor-Leste', 'alpha2' : 'TL', 'alpha3' : 'TLS', 'num3' : '626', 'subregion' : '035', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Togo', 'alpha2' : 'TG', 'alpha3' : 'TGO', 'num3' : '768', 'subregion' : '011', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Tokelau', 'alpha2' : 'TK', 'alpha3' : 'TKL', 'num3' : '772', 'subregion' : '061', 'region' : '', 'continent' : '009' }, | ||
+ | { 'name' : 'Tonga', 'alpha2' : 'TO', 'alpha3' : 'TON', 'num3' : '776', 'subregion' : '061', 'region' : '', 'continent' : '009' }, | ||
+ | { 'name' : 'Trinidad and Tobago', 'alpha2' : 'TT', 'alpha3' : 'TTO', 'num3' : '780', 'subregion' : '029', 'region' : '419', 'continent' : '019' }, | ||
+ | { 'name' : 'Tunisia', 'alpha2' : 'TN', 'alpha3' : 'TUN', 'num3' : '788', 'subregion' : '015', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Turkey', 'alpha2' : 'TR', 'alpha3' : 'TUR', 'num3' : '792', 'subregion' : '145', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Turkmenistan', 'alpha2' : 'TM', 'alpha3' : 'TKM', 'num3' : '795', 'subregion' : '143', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Turks and Caicos Islands', 'alpha2' : 'TC', 'alpha3' : 'TCA', 'num3' : '796', 'subregion' : '029', 'region' : '419', 'continent' : '019' }, | ||
+ | { 'name' : 'Tuvalu', 'alpha2' : 'TV', 'alpha3' : 'TUV', 'num3' : '798', 'subregion' : '061', 'region' : '', 'continent' : '009' }, | ||
+ | { 'name' : 'Uganda', 'alpha2' : 'UG', 'alpha3' : 'UGA', 'num3' : '800', 'subregion' : '014', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Ukraine', 'alpha2' : 'UA', 'alpha3' : 'UKR', 'num3' : '804', 'subregion' : '151', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'United Arab Emirates', 'alpha2' : 'AE', 'alpha3' : 'ARE', 'num3' : '784', 'subregion' : '145', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'United Kingdom', 'alpha2' : 'GB', 'alpha3' : 'GBR', 'num3' : '826', 'subregion' : '154', 'region' : '', 'continent' : '150' }, | ||
+ | { 'name' : 'United Republic of Tanzania', 'alpha2' : 'TZ', 'alpha3' : 'TZA', 'num3' : '834', 'subregion' : '014', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'United States of America', 'alpha2' : 'US', 'alpha3' : 'USA', 'num3' : '840', 'subregion' : '', 'region' : '021', 'continent' : '019' }, | ||
+ | { 'name' : 'United States Virgin Islands', 'alpha2' : 'VI', 'alpha3' : 'VIR', 'num3' : '850', 'subregion' : '029', 'region' : '419', 'continent' : '019' }, | ||
+ | { 'name' : 'Uruguay', 'alpha2' : 'UY', 'alpha3' : 'URY', 'num3' : '858', 'subregion' : '005', 'region' : '', 'continent' : '019' }, | ||
+ | { 'name' : 'Uzbekistan', 'alpha2' : 'UZ', 'alpha3' : 'UZB', 'num3' : '860', 'subregion' : '143', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Vanuatu', 'alpha2' : 'VU', 'alpha3' : 'VUT', 'num3' : '548', 'subregion' : '054', 'region' : '', 'continent' : '009' }, | ||
+ | { 'name' : 'Venezuela (Bolivarian Republic of)', 'alpha2' : 'VE', 'alpha3' : 'VEN', 'num3' : '862', 'subregion' : '005', 'region' : '', 'continent' : '019' }, | ||
+ | { 'name' : 'Viet Nam', 'alpha2' : 'VN', 'alpha3' : 'VNM', 'num3' : '704', 'subregion' : '035', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Wallis and Futuna Islands', 'alpha2' : 'WF', 'alpha3' : 'WLF', 'num3' : '876', 'subregion' : '061', 'region' : '', 'continent' : '009' }, | ||
+ | { 'name' : 'Western Sahara', 'alpha2' : 'EH', 'alpha3' : 'ESH', 'num3' : '732', 'subregion' : '015', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Yemen', 'alpha2' : 'YE', 'alpha3' : 'YEM', 'num3' : '887', 'subregion' : '145', 'region' : '', 'continent' : '142' }, | ||
+ | { 'name' : 'Zambia', 'alpha2' : 'ZM', 'alpha3' : 'ZMB', 'num3' : '894', 'subregion' : '014', 'region' : '', 'continent' : '002' }, | ||
+ | { 'name' : 'Zimbabwe', 'alpha2' : 'ZW', 'alpha3' : 'ZWE', 'num3' : '716', 'subregion' : '014', 'region' : '', 'continent' : '002' }]; | ||
+ | // console.log(countries); | ||
+ | // console.log(countries[0]); | ||
+ | // console.log(countries[0].name); | ||
+ | // console.log(countries[0].alpha3); | ||
+ | |||
+ | var a = {}; | ||
+ | |||
+ | for(var i = 0; i<a.length; i++){ | ||
+ | a[cancer[i].Population] = cancer[i].Value; | ||
+ | } | ||
+ | |||
+ | var b = {}; | ||
+ | // console.warn(countries.length); | ||
+ | for(var i = 0; i<countries.length; i++){ | ||
+ | // console.warn(i); | ||
+ | // console.log(countries[i]); | ||
+ | // console.error(countries[i].name); | ||
+ | b[countries[i].name] = countries[i].alpha3; | ||
+ | } | ||
+ | // console.log(b); | ||
+ | // console.error(b["Albania"]); | ||
+ | // console.log(b.Albania); | ||
+ | |||
+ | var result = {}; | ||
+ | var result_key = {}; | ||
+ | |||
+ | for(var i = 0; i<cancer.length; i++){ | ||
+ | result[b[cancer[i].Population]] = heatmapColour(Number(cancer[i].Value)/70); | ||
+ | result_key[b[cancer[i].Population]] = {fillKey: b[cancer[i].Population]}; | ||
+ | } | ||
+ | result["defaultFill"] = '#e6e6e6'; | ||
+ | |||
+ | |||
+ | console.log(result); | ||
+ | console.log(result_key); | ||
+ | //basic map config with custom fills, mercator projection | ||
+ | var map = new Datamap({ | ||
+ | scope: 'world', | ||
+ | element: document.getElementById('poly-map'), | ||
+ | projection: 'mercator', | ||
+ | geographyConfig: { | ||
+ | dataUrl: null, //if not null, datamaps will fetch the map JSON (currently only supports topojson) | ||
+ | borderColor: '#000000', | ||
+ | }, | ||
+ | height: 800, //null, | ||
+ | fills: result, | ||
+ | // data: map_data | ||
+ | data: result_key | ||
+ | // USA: {fillKey: 'lt50' }, | ||
+ | // // "United States of America": {fillKey: 'lt50' }, | ||
+ | // RUS: {fillKey: 'lt50' }, | ||
+ | // CAN: {fillKey: 'lt50' }, | ||
+ | // BRA: {fillKey: 'gt50' }, | ||
+ | // ARG: {fillKey: 'gt50' }, | ||
+ | // COL: {fillKey: 'gt50' }, | ||
+ | // AUS: {fillKey: 'gt50' }, | ||
+ | // ZAF: {fillKey: 'gt50' }, | ||
+ | // MAD: {fillKey: 'gt50' } | ||
+ | }) | ||
+ | |||
</script> | </script> | ||
</html> | </html> |
Latest revision as of 03:09, 20 October 2016