var countriesPopulation = [
  { "id":"AF", "name":"Afghanistan", "population":32358260, "tooltipcontent":"", "color": (0) },
  { "id":"AL", "name":"Albania", "population":3215988, "tooltipcontent":"", "color":(1) },
  { "id":"DZ", "name":"Algeria", "population":35980193, "tooltipcontent":"", "color":(2) },
  { "id":"AO", "name":"Angola", "population":19618432, "tooltipcontent":"", "color":(2) },
  { "id":"AR", "name":"Argentina", "population":40764561, "tooltipcontent":"", "color":(3) },
  { "id":"AM", "name":"Armenia", "population":3100236, "tooltipcontent":"", "color":(1) },
  { "id":"AU", "name":"Australia", "population":22605732, "tooltipcontent":"", "color":"#8aabb0" },
  { "id":"AT", "name":"Austria", "population":8413429, "tooltipcontent":"", "color":(1) },
  { "id":"AZ", "name":"Azerbaijan", "population":9306023, "tooltipcontent":"", "color":(1) },
  { "id":"BH", "name":"Bahrain", "population":1323535, "tooltipcontent":"", "color": (0) },
  { "id":"BD", "name":"Bangladesh", "population":150493658, "tooltipcontent":"", "color": (0) },
  { "id":"BY", "name":"Belarus", "population":9559441, "tooltipcontent":"", "color":(1) },
  { "id":"BE", "name":"Belgium", "population":10754056, "tooltipcontent":"", "color":(1) },
  { "id":"BJ", "name":"Benin", "population":9099922, "tooltipcontent":"", "color":(2) },
  { "id":"BT", "name":"Bhutan", "population":738267, "tooltipcontent":"", "color": (0) },
  { "id":"BO", "name":"Bolivia", "population":10088108, "tooltipcontent":"", "color":(3) },
  { "id":"BA", "name":"Bosnia and Herzegovina", "population":3752228, "tooltipcontent":"", "color":(1) },
  { "id":"BW", "name":"Botswana", "population":2030738, "tooltipcontent":"", "color":(2) },
  { "id":"BR", "name":"Brazil", "population":196655014, "tooltipcontent":"", "color":(3) },
  { "id":"BN", "name":"Brunei", "population":405938, "tooltipcontent":"", "color": (0) },
  { "id":"BG", "name":"Bulgaria", "population":7446135, "tooltipcontent":"", "color":(1) },
  { "id":"BF", "name":"Burkina Faso", "population":16967845, "tooltipcontent":"", "color":(2) },
  { "id":"BI", "name":"Burundi", "population":8575172, "tooltipcontent":"", "color":(2) },
  { "id":"KH", "name":"Cambodia", "population":14305183, "tooltipcontent":"", "color": (0) },
  { "id":"CM", "name":"Cameroon", "population":20030362, "tooltipcontent":"", "color":(2) },
  { "id":"CA", "name":"Canada", "population":34349561, "tooltipcontent":"", "color":(4) },
  { "id":"CV", "name":"Cape Verde", "population":500585, "tooltipcontent":"", "color":(2) },
  { "id":"CF", "name":"Central African Rep.", "population":4486837, "tooltipcontent":"", "color":(2) },
  { "id":"TD", "name":"Chad", "population":11525496, "tooltipcontent":"", "color":(2) },
  { "id":"CL", "name":"Chile", "population":17269525, "tooltipcontent":"", "color":(3) },
  { "id":"CN", "name":"China", "population":1347565324, "tooltipcontent":"", "color": (0) },
  { "id":"CO", "name":"Colombia", "population":46927125, "tooltipcontent":"", "color":(3) },
  { "id":"KM", "name":"Comoros", "population":753943, "tooltipcontent":"", "color":(2) },
  { "id":"CD", "name":"Congo, Dem. Rep.", "population":67757577, "tooltipcontent":"", "color":(2) },
  { "id":"CG", "name":"Congo, Rep.", "population":4139748, "tooltipcontent":"", "color":(2) },
  { "id":"CR", "name":"Costa Rica", "population":4726575, "tooltipcontent":"", "color":(4) },
  { "id":"CI", "name":"Cote d'Ivoire", "population":20152894, "tooltipcontent":"", "color":(2) },
  { "id":"HR", "name":"Croatia", "population":4395560, "tooltipcontent":"", "color":(1) },
  { "id":"CU", "name":"Cuba", "population":11253665, "tooltipcontent":"", "color":(4) },
  { "id":"CY", "name":"Cyprus", "population":1116564, "tooltipcontent":"", "color":(1) },
  { "id":"CZ", "name":"Czech Rep.", "population":10534293, "tooltipcontent":"", "color":(1) },
  { "id":"DK", "name":"Denmark", "population":5572594, "tooltipcontent":"", "color":(1) },
  { "id":"DJ", "name":"Djibouti", "population":905564, "tooltipcontent":"", "color":(2) },
  { "id":"DO", "name":"Dominican Rep.", "population":10056181, "tooltipcontent":"", "color":(4) },
  { "id":"EC", "name":"Ecuador", "population":14666055, "tooltipcontent":"", "color":(3) },
  { "id":"EG", "name":"Egypt", "population":82536770, "tooltipcontent":"", "color":(2) },
  { "id":"SV", "name":"El Salvador", "population":6227491, "tooltipcontent":"", "color":(4) },
  { "id":"GQ", "name":"Equatorial Guinea", "population":720213, "tooltipcontent":"", "color":(2) },
  { "id":"ER", "name":"Eritrea", "population":5415280, "tooltipcontent":"", "color":(2) },
  { "id":"EE", "name":"Estonia", "population":1340537, "tooltipcontent":"", "color":(1) },
  { "id":"ET", "name":"Ethiopia", "population":84734262, "tooltipcontent":"", "color":(2) },
  { "id":"FJ", "name":"Fiji", "population":868406, "tooltipcontent":"", "color":"#8aabb0" },
  { "id":"FI", "name":"Finland", "population":5384770, "tooltipcontent":"", "color":(1) },
  { "id":"FR", "name":"France", "population":63125894, "tooltipcontent":"", "color":(1) },
  { "id":"GA", "name":"Gabon", "population":1534262, "tooltipcontent":"", "color":(2) },
  { "id":"GM", "name":"Gambia", "population":1776103, "tooltipcontent":"", "color":(2) },
  { "id":"GE", "name":"Georgia", "population":4329026, "tooltipcontent":"", "color":(1) },
  { "id":"DE", "name":"Germany", "population":82162512, "tooltipcontent":"", "color":(1) },
  { "id":"GH", "name":"Ghana", "population":24965816, "tooltipcontent":"", "color":(2) },
  { "id":"GR", "name":"Greece", "population":11390031, "tooltipcontent":"", "color":(1) },
  { "id":"GT", "name":"Guatemala", "population":14757316, "tooltipcontent":"", "color":(4) },
  { "id":"GN", "name":"Guinea", "population":10221808, "tooltipcontent":"", "color":(2) },
  { "id":"GW", "name":"Guinea-Bissau", "population":1547061, "tooltipcontent":"", "color":(2) },
  { "id":"GY", "name":"Guyana", "population":756040, "tooltipcontent":"", "color":(3) },
  { "id":"HT", "name":"Haiti", "population":10123787, "tooltipcontent":"", "color":(4) },
  { "id":"HN", "name":"Honduras", "population":7754687, "tooltipcontent":"", "color":(4) },
  { "id":"HK", "name":"Hong Kong, China", "population":7122187, "tooltipcontent":"", "color": (0) },
  { "id":"HU", "name":"Hungary", "population":9966116, "tooltipcontent":"", "color":(1) },
  { "id":"IS", "name":"Iceland", "population":324366, "tooltipcontent":"", "color":(1) },
  { "id":"IN", "name":"India", "population":1241491960, "tooltipcontent":"", "color": (0) },
  { "id":"ID", "name":"Indonesia", "population":242325638, "tooltipcontent":"", "color": (0) },
  { "id":"IR", "name":"Iran", "population":74798599, "tooltipcontent":"", "color": (0) },
  { "id":"IQ", "name":"Iraq", "population":32664942, "tooltipcontent":"", "color": (0) },
  { "id":"IE", "name":"Ireland", "population":4525802, "tooltipcontent":"", "color":(1) },
  { "id":"IL", "name":"Israel", "population":7562194, "tooltipcontent":"", "color": (0) },
  { "id":"IT", "name":"Italy", "population":60788694, "tooltipcontent":"", "color":(1) },
  { "id":"JM", "name":"Jamaica", "population":2751273, "tooltipcontent":"", "color":(4) },
  { "id":"JP", "name":"Japan", "population":126497241, "tooltipcontent":"", "color": (0) },
  { "id":"JO", "name":"Jordan", "population":6330169, "tooltipcontent":"", "color": (0) },
  { "id":"KZ", "name":"Kazakhstan", "population":16206750, "tooltipcontent":"", "color": (0) },
  { "id":"KE", "name":"Kenya", "population":41609728, "tooltipcontent":"", "color":(2) },
  { "id":"KP", "name":"Korea, Dem. Rep.", "population":24451285, "tooltipcontent":"", "color": (0) },
  { "id":"KR", "name":"Korea, Rep.", "population":48391343, "tooltipcontent":"", "color": (0) },
  { "id":"KW", "name":"Kuwait", "population":2818042, "tooltipcontent":"", "color": (0) },
  { "id":"KG", "name":"Kyrgyzstan", "population":5392580, "tooltipcontent":"", "color": (0) },
  { "id":"LA", "name":"Laos", "population":6288037, "tooltipcontent":"", "color": (0) },
  { "id":"LV", "name":"Latvia", "population":2243142, "tooltipcontent":"", "color":(1) },
  { "id":"LB", "name":"Lebanon", "population":4259405, "tooltipcontent":"", "color": (0) },
  { "id":"LS", "name":"Lesotho", "population":2193843, "tooltipcontent":"", "color":(2) },
  { "id":"LR", "name":"Liberia", "population":4128572, "tooltipcontent":"", "color":(2) },
  { "id":"LY", "name":"Libya", "population":6422772, "tooltipcontent":"", "color":(2) },
  { "id":"LT", "name":"Lithuania", "population":3307481, "tooltipcontent":"", "color":(1) },
  { "id":"LU", "name":"Luxembourg", "population":515941, "tooltipcontent":"", "color":(1) },
  { "id":"MK", "name":"Macedonia, FYR", "population":2063893, "tooltipcontent":"", "color":(1) },
  { "id":"MG", "name":"Madagascar", "population":21315135, "tooltipcontent":"", "color":(2) },
  { "id":"MW", "name":"Malawi", "population":15380888, "tooltipcontent":"", "color":(2) },
  { "id":"MY", "name":"Malaysia", "population":28859154, "tooltipcontent":"", "color": (0) },
  { "id":"ML", "name":"Mali", "population":15839538, "tooltipcontent":"", "color":(2) },
  { "id":"MR", "name":"Mauritania", "population":3541540, "tooltipcontent":"", "color":(2) },
  { "id":"MU", "name":"Mauritius", "population":1306593, "tooltipcontent":"", "color":(2) },
  { "id":"MX", "name":"Mexico", "population":114793341, "tooltipcontent":"", "color":(4) },
  { "id":"MD", "name":"Moldova", "population":3544864, "tooltipcontent":"", "color":(1) },
  { "id":"MN", "name":"Mongolia", "population":2800114, "tooltipcontent":"", "color": (0) },
  { "id":"ME", "name":"Montenegro", "population":632261, "tooltipcontent":"", "color":(1) },
  { "id":"MA", "name":"Morocco", "population":32272974, "tooltipcontent":"", "color":(2) },
  { "id":"MZ", "name":"Mozambique", "population":23929708, "tooltipcontent":"", "color":(2) },
  { "id":"MM", "name":"Myanmar", "population":48336763, "tooltipcontent":"", "color": (0) },
  { "id":"NA", "name":"Namibia", "population":2324004, "tooltipcontent":"", "color":(2) },
  { "id":"NP", "name":"Nepal", "population":30485798, "tooltipcontent":"", "color": (0) },
  { "id":"NL", "name":"Netherlands", "population":16664746, "tooltipcontent":"", "color":(1) },
  { "id":"NZ", "name":"New Zealand", "population":4414509, "tooltipcontent":"", "color":"#8aabb0" },
  { "id":"NI", "name":"Nicaragua", "population":5869859, "tooltipcontent":"", "color":(4) },
  { "id":"NE", "name":"Niger", "population":16068994, "tooltipcontent":"", "color":(2) },
  { "id":"NG", "name":"Nigeria", "population":162470737, "tooltipcontent":"", "color":(2) },
  { "id":"NO", "name":"Norway", "population":4924848, "tooltipcontent":"", "color":(1) },
  { "id":"OM", "name":"Oman", "population":2846145, "tooltipcontent":"", "color": (0) },
  { "id":"PK", "name":"Pakistan", "population":176745364, "tooltipcontent":"", "color": (0) },
  { "id":"PA", "name":"Panama", "population":3571185, "tooltipcontent":"", "color":(4) },
  { "id":"PG", "name":"Papua New Guinea", "population":7013829, "tooltipcontent":"", "color":"#8aabb0" },
  { "id":"PY", "name":"Paraguay", "population":6568290, "tooltipcontent":"", "color":(3) },
  { "id":"PE", "name":"Peru", "population":29399817, "tooltipcontent":"", "color":(3) },
  { "id":"PH", "name":"Philippines", "population":94852030, "tooltipcontent":"", "color": (0) },
  { "id":"PL", "name":"Poland", "population":38298949, "tooltipcontent":"", "color":(1) },
  { "id":"PT", "name":"Portugal", "population":10689663, "tooltipcontent":"", "color":(1) },
  { "id":"PR", "name":"Puerto Rico", "population":3745526, "tooltipcontent":"", "color":(4) },
  { "id":"QA", "name":"Qatar", "population":1870041, "tooltipcontent":"", "color": (0) },
  { "id":"RO", "name":"Romania", "population":21436495, "tooltipcontent":"", "color":(1) },
  { "id":"RU", "name":"Russia", "population":142835555, "tooltipcontent":"", "color":(1) },
  { "id":"RW", "name":"Rwanda", "population":10942950, "tooltipcontent":"", "color":(2) },
  { "id":"SA", "name":"Saudi Arabia", "population":28082541, "tooltipcontent":"", "color": (0) },
  { "id":"SN", "name":"Senegal", "population":12767556, "tooltipcontent":"", "color":(2) },
  { "id":"RS", "name":"Serbia", "population":9853969, "tooltipcontent":"", "color":(1) },
  { "id":"SL", "name":"Sierra Leone", "population":5997486, "tooltipcontent":"", "color":(2) },
  { "id":"SG", "name":"Singapore", "population":5187933, "tooltipcontent":"", "color": (0) },
  { "id":"SK", "name":"Slovak Republic", "population":5471502, "tooltipcontent":"", "color":(1) },
  { "id":"SI", "name":"Slovenia", "population":2035012, "tooltipcontent":"", "color":(1) },
  { "id":"SB", "name":"Solomon Islands", "population":552267, "tooltipcontent":"", "color":"#8aabb0" },
  { "id":"SO", "name":"Somalia", "population":9556873, "tooltipcontent":"", "color":(2) },
  { "id":"ZA", "name":"South Africa", "population":50459978, "tooltipcontent":"", "color":(2) },
  { "id":"ES", "name":"Spain", "population":46454895, "tooltipcontent":"", "color":(1) },
  { "id":"LK", "name":"Sri Lanka", "population":21045394, "tooltipcontent":"", "color": (0) },
  { "id":"SD", "name":"Sudan", "population":34735288, "tooltipcontent":"", "color":(2) },
  { "id":"SR", "name":"Suriname", "population":529419, "tooltipcontent":"", "color":(3) },
  { "id":"SZ", "name":"Swaziland", "population":1203330, "tooltipcontent":"", "color":(2) },
  { "id":"SE", "name":"Sweden", "population":9440747, "tooltipcontent":"", "color":(1) },
  { "id":"CH", "name":"Switzerland", "population":7701690, "tooltipcontent":"", "color":(1) },
  { "id":"SY", "name":"Syria", "population":20766037, "tooltipcontent":"", "color": (0) },
  { "id":"TW", "name":"Taiwan", "population":23072000, "tooltipcontent":"", "color": (0) },
  { "id":"TJ", "name":"Tajikistan", "population":6976958, "tooltipcontent":"", "color": (0) },
  { "id":"TZ", "name":"Tanzania", "population":46218486, "tooltipcontent":"", "color":(2) },
  { "id":"TH", "name":"Thailand", "population":69518555, "tooltipcontent":"", "color": (0) },
  { "id":"TG", "name":"Togo", "population":6154813, "tooltipcontent":"", "color":(2) },
  { "id":"TT", "name":"Trinidad and Tobago", "population":1346350, "tooltipcontent":"", "color":(4) },
  { "id":"TN", "name":"Tunisia", "population":10594057, "tooltipcontent":"", "color":(2) },
  { "id":"TR", "name":"Turkey", "population":73639596, "tooltipcontent":"", "color":(1) },
  { "id":"TM", "name":"Turkmenistan", "population":5105301, "tooltipcontent":"", "color": (0) },
  { "id":"UG", "name":"Uganda", "population":34509205, "tooltipcontent":"", "color":(2) },
  { "id":"UA", "name":"Ukraine", "population":45190180, "tooltipcontent":"", "color":(1) },
  { "id":"AE", "name":"United Arab Emirates", "population":7890924, "tooltipcontent":"", "color": (0) },
  { "id":"GB", "name":"United Kingdom", "population":62417431, "tooltipcontent":"", "color":(1) },
  { "id":"US", "name":"United States", "population":313085380, "tooltipcontent":"", "color":(4) },
  { "id":"UY", "name":"Uruguay", "population":3380008, "tooltipcontent":"", "color":(3) },
  { "id":"UZ", "name":"Uzbekistan", "population":27760267, "tooltipcontent":"", "color": (0) },
  { "id":"VE", "name":"Venezuela", "population":29436891, "tooltipcontent":"", "color":(3) },
  { "id":"PS", "name":"West Bank and Gaza", "population":4152369, "tooltipcontent":"", "color": (0) },
  { "id":"VN", "name":"Vietnam", "population":88791996, "tooltipcontent":"", "color": (0) },
  { "id":"YE", "name":"Yemen, Rep.", "population":24799880, "tooltipcontent":"", "color": (0) },
  { "id":"ZM", "name":"Zambia", "population":13474959, "tooltipcontent":"", "color":(2) },
  { "id":"ZW", "name":"Zimbabwe", "population":12754378, "tooltipcontent":"", "color":(2) }
];