Skip to content

Instantly share code, notes, and snippets.

@Thanaporn-sk
Created October 30, 2019 15:38
Show Gist options
  • Save Thanaporn-sk/370c67a430bf104ad893be7e98499fb6 to your computer and use it in GitHub Desktop.
Save Thanaporn-sk/370c67a430bf104ad893be7e98499fb6 to your computer and use it in GitHub Desktop.
Zoomable Treemap Bar Chart
license: mit

Block-a-Day #12. Update of Treemap Bar Chart to enable zooming into a specific country on click.

Data Sources: Census

What I Learned: In a bit of treemap implementation trivia, nodes without a parent value of zero (i.e. those in a different continent than the selected country) will have NaN for their position values, as a result of a divide by zero, while those with a parent value but no value of their own will have position values, although width and height of, obviously, zero. I was originally just catching the NaNs, but this resulted in nodes flying to two different positions, thus the checking of d.value to determine how to position the nodes.

What I'd Do With More Time: Might be interesting if the transition was to vertically expand and fade the non-selected countries, to reinforce the idea of zooming in.

Block-a-Day

Just what it sounds like. For fifteen days, I will make a D3.js v4 block every single day. Rules:

  1. Ideas over implementation. Do something novel, don't sweat the details.
  2. No more than two hours can be spent on coding (give or take).
  3. Every. Single. Day.

Previously

forked from cmgiven's block: Zoomable Treemap Bar Chart

forked from noblemillie's block: Zoomable Treemap Bar Chart

forked from noblemillie's block: Zoomable Treemap Bar Chart

{"children":[{"year":"1995","children":[{"type":"Imports","children":[{"continent":"North America","children":[{"country":"Greenland","value":7.6,"adj_value":11.81952},{"country":"Canada","value":144369.9,"adj_value":224524.0685},{"country":"St Pierre and Miquelon","value":3.4,"adj_value":5.28768},{"country":"Mexico","value":62100.4,"adj_value":96578.54208},{"country":"Guatemala","value":1526.8,"adj_value":2374.47936},{"country":"Belize","value":52.1,"adj_value":81.02592},{"country":"El Salvador","value":812.2,"adj_value":1263.13344},{"country":"Honduras","value":1441.2,"adj_value":2241.35424},{"country":"Nicaragua","value":238.8,"adj_value":371.38176},{"country":"Costa Rica","value":1843.2,"adj_value":2866.54464},{"country":"Panama","value":307.1,"adj_value":477.60192},{"country":"Bermuda","value":10.4,"adj_value":16.17408},{"country":"Bahamas","value":156.7,"adj_value":243.69984},{"country":"Cuba","value":0,"adj_value":0},{"country":"Jamaica","value":846.9,"adj_value":1317.09888},{"country":"Turks and Caicos Islands","value":5,"adj_value":7.776},{"country":"Cayman Islands","value":18.2,"adj_value":28.30464},{"country":"Haiti","value":129.9,"adj_value":202.02048},{"country":"Dominican Republic","value":3398.9,"adj_value":5285.96928},{"country":"Anguilla","value":0,"adj_value":0},{"country":"British Virgin Islands","value":11.2,"adj_value":17.41824},{"country":"St Kitts and Nevis","value":22.3,"adj_value":34.68096},{"country":"Antigua and Barbuda","value":2.8,"adj_value":4.35456},{"country":"Montserrat","value":2,"adj_value":3.1104},{"country":"Dominica","value":6.6,"adj_value":10.26432},{"country":"St Lucia","value":35.1,"adj_value":54.58752},{"country":"St Vincent and the Grenadines","value":7.9,"adj_value":12.28608},{"country":"Grenada","value":5.3,"adj_value":8.24256},{"country":"Barbados","value":37.7,"adj_value":58.63104},{"country":"Trinidad and Tobago","value":1089.2,"adj_value":1693.92384},{"country":"Netherlands Antilles","value":289.8,"adj_value":450.69696},{"country":"Aruba","value":420.7,"adj_value":654.27264},{"country":"Guadeloupe","value":1.2,"adj_value":1.86624},{"country":"Martinique","value":1.9,"adj_value":2.95488}]},{"continent":"South America","children":[{"country":"Colombia","value":3791,"adj_value":5895.7632},{"country":"Venezuela","value":9764,"adj_value":15184.9728},{"country":"Guyana","value":107.4,"adj_value":167.02848},{"country":"Suriname","value":100,"adj_value":155.52},{"country":"French Guiana","value":5.2,"adj_value":8.08704},{"country":"Ecuador","value":1939.7,"adj_value":3016.62144},{"country":"Peru","value":1034.4,"adj_value":1608.69888},{"country":"Bolivia","value":262.5,"adj_value":408.24},{"country":"Chile","value":1930.8,"adj_value":3002.78016},{"country":"Brazil","value":8832.9,"adj_value":13736.92608},{"country":"Paraguay","value":55,"adj_value":85.536},{"country":"Uruguay","value":167.2,"adj_value":260.02944},{"country":"Argentina","value":1760.8,"adj_value":2738.39616},{"country":"Falkland Islands(Islas Malvin","value":0.5,"adj_value":0.7776}]},{"continent":"Europe","children":[{"country":"Iceland","value":232.8,"adj_value":362.05056},{"country":"Sweden","value":6256.4,"adj_value":9729.95328},{"country":"Svalbard, Jan Mayen Island","value":0.2,"adj_value":0.31104},{"country":"Norway","value":3086.7,"adj_value":4800.43584},{"country":"Finland","value":2269.9,"adj_value":3530.14848},{"country":"Faroe Islands","value":8.4,"adj_value":13.06368},{"country":"Denmark","value":1944.9,"adj_value":3024.70848},{"country":"United Kingdom","value":26929.7,"adj_value":41881.06944},{"country":"Ireland","value":4078.7,"adj_value":6343.19424},{"country":"Netherlands","value":6404.9,"adj_value":9960.90048},{"country":"Belgium","value":6053.9,"adj_value":9415.02528},{"country":"Luxembourg","value":233.8,"adj_value":363.60576},{"country":"Andorra","value":0.2,"adj_value":0.31104},{"country":"Monaco","value":12.2,"adj_value":18.97344},{"country":"France","value":17209.4,"adj_value":26764.05888},{"country":"Germany","value":36843.9,"adj_value":57299.63328},{"country":"Austria","value":1963.2,"adj_value":3053.16864},{"country":"Czechoslovakia","value":0,"adj_value":0},{"country":"Czech Republic","value":363.3,"adj_value":565.00416},{"country":"Slovakia","value":129.5,"adj_value":201.3984},{"country":"Hungary","value":547,"adj_value":850.6944},{"country":"Liechtenstein","value":126.2,"adj_value":196.26624},{"country":"Switzerland","value":7593.9,"adj_value":11810.03328},{"country":"Estonia","value":62.1,"adj_value":96.57792},{"country":"Latvia","value":82,"adj_value":127.5264},{"country":"Lithuania","value":26.5,"adj_value":41.2128},{"country":"Poland","value":663.6,"adj_value":1032.03072},{"country":"USSR","value":0,"adj_value":0},{"country":"Russia","value":4030.1,"adj_value":6267.61152},{"country":"Belarus","value":45,"adj_value":69.984},{"country":"Ukraine","value":405.7,"adj_value":630.94464},{"country":"Armenia","value":16.3,"adj_value":25.34976},{"country":"Azerbaijan","value":0.7,"adj_value":1.08864},{"country":"Georgia","value":10.7,"adj_value":16.64064},{"country":"Kazakhstan","value":122.9,"adj_value":191.13408},{"country":"Kyrgyzstan","value":8.4,"adj_value":13.06368},{"country":"Moldova","value":24.8,"adj_value":38.56896},{"country":"Tajikistan","value":40.9,"adj_value":63.60768},{"country":"Turkmenistan","value":1.3,"adj_value":2.02176},{"country":"Uzbekistan","value":18.8,"adj_value":29.23776},{"country":"Spain","value":3879.7,"adj_value":6033.70944},{"country":"Portugal","value":1056.7,"adj_value":1643.37984},{"country":"Gibraltar","value":4.8,"adj_value":7.46496},{"country":"Malta","value":132.5,"adj_value":206.064},{"country":"San Marino","value":1,"adj_value":1.5552},{"country":"Vatican City","value":0.7,"adj_value":1.08864},{"country":"Italy","value":16348.4,"adj_value":25425.03168},{"country":"Yugoslavia (former)","value":0,"adj_value":0},{"country":"Croatia","value":93.8,"adj_value":145.87776},{"country":"Slovenia","value":289.5,"adj_value":450.2304},{"country":"Bosnia and Herzegovina","value":3.5,"adj_value":5.4432},{"country":"Macedonia","value":88.8,"adj_value":138.10176},{"country":"Serbia and Montenegro","value":0,"adj_value":0},{"country":"Albania","value":9.4,"adj_value":14.61888},{"country":"Greece","value":397.1,"adj_value":617.56992},{"country":"Romania","value":222.3,"adj_value":345.72096},{"country":"Bulgaria","value":188.5,"adj_value":293.1552}]},{"continent":"Asia","children":[{"country":"Turkey","value":1797.9,"adj_value":2796.09408},{"country":"Cyprus","value":13.1,"adj_value":20.37312},{"country":"Syria","value":61.1,"adj_value":95.02272},{"country":"Lebanon","value":35,"adj_value":54.432},{"country":"Iraq","value":0,"adj_value":0},{"country":"Iran","value":0.2,"adj_value":0.31104},{"country":"Israel","value":0,"adj_value":0},{"country":"Israel","value":5708.7,"adj_value":8878.17024},{"country":"Gaza Strip admin. by Israel","value":0,"adj_value":0},{"country":"West Bank admin. by Israel","value":0,"adj_value":0},{"country":"Jordan","value":28.9,"adj_value":44.94528},{"country":"Kuwait","value":1335.5,"adj_value":2076.9696},{"country":"Iraq-Saudi Arabia Neutral Zone","value":0,"adj_value":0},{"country":"Saudi Arabia","value":8376.6,"adj_value":13027.28832},{"country":"Qatar","value":90.9,"adj_value":141.36768},{"country":"United Arab Emirates","value":459.1,"adj_value":713.99232},{"country":"Republic of Yemen","value":41.5,"adj_value":64.5408},{"country":"Oman","value":294.9,"adj_value":458.62848},{"country":"Bahrain","value":134.3,"adj_value":208.86336},{"country":"Afghanistan","value":5.4,"adj_value":8.39808},{"country":"India","value":5726.3,"adj_value":8905.54176},{"country":"Pakistan","value":1197,"adj_value":1861.5744},{"country":"Nepal","value":96.1,"adj_value":149.45472},{"country":"Bangladesh","value":1257.2,"adj_value":1955.19744},{"country":"Sri Lanka","value":1259.7,"adj_value":1959.08544},{"country":"Burma","value":81,"adj_value":125.9712},{"country":"Thailand","value":11348.1,"adj_value":17648.56512},{"country":"Vietnam","value":199,"adj_value":309.4848},{"country":"Laos","value":10.2,"adj_value":15.86304},{"country":"Cambodia","value":5.1,"adj_value":7.93152},{"country":"Malaysia","value":17454.9,"adj_value":27145.86048},{"country":"Singapore","value":18560.4,"adj_value":28865.13408},{"country":"Indonesia","value":7435.3,"adj_value":11563.37856},{"country":"Brunei","value":38.4,"adj_value":59.71968},{"country":"Philippines","value":7006.5,"adj_value":10896.5088},{"country":"Macau","value":895.3,"adj_value":1392.37056},{"country":"Bhutan","value":0.1,"adj_value":0.15552},{"country":"Maldives","value":12,"adj_value":18.6624},{"country":"China","value":45543.2,"adj_value":70828.78464},{"country":"Mongolia","value":23.2,"adj_value":36.08064},{"country":"Korea, North","value":0,"adj_value":0},{"country":"Korea, South","value":24184,"adj_value":37610.9568},{"country":"Hong Kong","value":10291.3,"adj_value":16005.02976},{"country":"Taiwan","value":28971.9,"adj_value":45057.09888},{"country":"Japan","value":123479.3,"adj_value":192035.0074}]},{"continent":"Australia","children":[{"country":"Australia","value":3323,"adj_value":5167.9296},{"country":"Norfolk Island","value":78.6,"adj_value":122.23872},{"country":"Cocos (Keeling) Islands","value":0,"adj_value":0},{"country":"Christmas Island","value":0,"adj_value":0},{"country":"Heard and McDonald Islands","value":0.3,"adj_value":0.46656},{"country":"Papua New Guinea","value":50.2,"adj_value":78.07104},{"country":"New Zealand","value":1451.8,"adj_value":2257.83936},{"country":"Cook Islands","value":0.8,"adj_value":1.24416},{"country":"Tokelau","value":6.1,"adj_value":9.48672},{"country":"Niue","value":0.1,"adj_value":0.15552},{"country":"Samoa","value":0.3,"adj_value":0.46656},{"country":"Solomon Islands","value":4.3,"adj_value":6.68736},{"country":"Vanuatu","value":0,"adj_value":0},{"country":"Pitcairn Islands","value":0,"adj_value":0},{"country":"Kiribati","value":1.4,"adj_value":2.17728},{"country":"Tuvalu","value":0,"adj_value":0},{"country":"New Caledonia","value":40.2,"adj_value":62.51904},{"country":"Wallis and Futuna","value":0,"adj_value":0},{"country":"French Polynesia","value":14.4,"adj_value":22.39488},{"country":"Marshall Islands","value":11.1,"adj_value":17.26272},{"country":"Micronesia","value":13.2,"adj_value":20.52864},{"country":"Palau","value":5.8,"adj_value":9.02016},{"country":"Nauru","value":0,"adj_value":0},{"country":"Fiji","value":78.1,"adj_value":121.46112},{"country":"Tonga","value":6.2,"adj_value":9.64224}]},{"continent":"Africa","children":[{"country":"Morocco","value":239.4,"adj_value":372.31488},{"country":"Algeria","value":1749.5,"adj_value":2720.8224},{"country":"Tunisia","value":70.4,"adj_value":109.48608},{"country":"Libya","value":0,"adj_value":0},{"country":"Egypt","value":606.3,"adj_value":942.91776},{"country":"Sudan","value":22.6,"adj_value":35.14752},{"country":"Western Sahara","value":0,"adj_value":0},{"country":"Equatorial Guinea","value":31,"adj_value":48.2112},{"country":"Mauritania","value":5.4,"adj_value":8.39808},{"country":"Cameroon","value":57.3,"adj_value":89.11296},{"country":"Senegal","value":4.9,"adj_value":7.62048},{"country":"Mali","value":3.6,"adj_value":5.59872},{"country":"Guinea","value":98.8,"adj_value":153.65376},{"country":"Sierra Leone","value":28.4,"adj_value":44.16768},{"country":"Cote d'Ivoire","value":214.1,"adj_value":332.96832},{"country":"Ghana","value":196.1,"adj_value":304.97472},{"country":"Gambia","value":2.2,"adj_value":3.42144},{"country":"Niger","value":1.4,"adj_value":2.17728},{"country":"Togo","value":3.3,"adj_value":5.13216},{"country":"Nigeria","value":4930.5,"adj_value":7667.9136},{"country":"Central African Republic","value":0.4,"adj_value":0.62208},{"country":"Gabon","value":1463.9,"adj_value":2276.65728},{"country":"Chad","value":3.3,"adj_value":5.13216},{"country":"St Helena","value":0,"adj_value":0},{"country":"Burkina Faso","value":0.4,"adj_value":0.62208},{"country":"Benin","value":10,"adj_value":15.552},{"country":"Angola","value":2232.3,"adj_value":3471.67296},{"country":"Congo (Brazzaville)","value":206.8,"adj_value":321.61536},{"country":"Guinea-Bissau","value":0,"adj_value":0},{"country":"Cabo Verde","value":0.2,"adj_value":0.31104},{"country":"Sao Tome and Principe","value":0.1,"adj_value":0.15552},{"country":"Liberia","value":9.9,"adj_value":15.39648},{"country":"Congo (Kinshasa)","value":267,"adj_value":415.2384},{"country":"Burundi","value":20.5,"adj_value":31.8816},{"country":"Rwanda","value":1.8,"adj_value":2.79936},{"country":"Somalia","value":0,"adj_value":0},{"country":"Ethiopia","value":0,"adj_value":0},{"country":"Eritrea","value":0.4,"adj_value":0.62208},{"country":"Ethiopia","value":32.9,"adj_value":51.16608},{"country":"Djibouti","value":0,"adj_value":0},{"country":"Uganda","value":13.4,"adj_value":20.83968},{"country":"Kenya","value":101.5,"adj_value":157.8528},{"country":"Seychelles","value":2.5,"adj_value":3.888},{"country":"British Indian Ocean Terr.","value":1.9,"adj_value":2.95488},{"country":"Tanzania","value":22.4,"adj_value":34.83648},{"country":"Mauritius","value":229.5,"adj_value":356.9184},{"country":"Mozambique","value":27.5,"adj_value":42.768},{"country":"Madagascar","value":57.4,"adj_value":89.26848},{"country":"Comoros","value":2.2,"adj_value":3.42144},{"country":"Reunion","value":0.4,"adj_value":0.62208},{"country":"French Southern and Antarctic","value":0.4,"adj_value":0.62208},{"country":"South Africa","value":2208,"adj_value":3433.8816},{"country":"Namibia","value":11.5,"adj_value":17.8848},{"country":"Botswana","value":21.3,"adj_value":33.12576},{"country":"Zambia","value":32.8,"adj_value":51.01056},{"country":"Swaziland","value":32.4,"adj_value":50.38848},{"country":"Zimbabwe","value":97.5,"adj_value":151.632},{"country":"Malawi","value":41.1,"adj_value":63.91872},{"country":"Lesotho","value":62.3,"adj_value":96.88896}]}]},{"type":"Exports","children":[{"continent":"North America","children":[{"country":"Greenland","value":2.4,"adj_value":3.73248},{"country":"Canada","value":127226,"adj_value":197861.8752},{"country":"St Pierre and Miquelon","value":0.5,"adj_value":0.7776},{"country":"Mexico","value":46292.1,"adj_value":71993.47392},{"country":"Guatemala","value":1646.6,"adj_value":2560.79232},{"country":"Belize","value":99.7,"adj_value":155.05344},{"country":"El Salvador","value":1110.4,"adj_value":1726.89408},{"country":"Honduras","value":1278.9,"adj_value":1988.94528},{"country":"Nicaragua","value":249.8,"adj_value":388.48896},{"country":"Costa Rica","value":1736.6,"adj_value":2700.76032},{"country":"Panama","value":1389.6,"adj_value":2161.10592},{"country":"Bermuda","value":298.5,"adj_value":464.2272},{"country":"Bahamas","value":661.2,"adj_value":1028.29824},{"country":"Cuba","value":5.4,"adj_value":8.39808},{"country":"Jamaica","value":1420.2,"adj_value":2208.69504},{"country":"Turks and Caicos Islands","value":33.6,"adj_value":52.25472},{"country":"Cayman Islands","value":180.1,"adj_value":280.09152},{"country":"Haiti","value":550.1,"adj_value":855.51552},{"country":"Dominican Republic","value":3014.9,"adj_value":4688.77248},{"country":"Anguilla","value":14.6,"adj_value":22.70592},{"country":"British Virgin Islands","value":49.2,"adj_value":76.51584},{"country":"St Kitts and Nevis","value":43.6,"adj_value":67.80672},{"country":"Antigua and Barbuda","value":97,"adj_value":150.8544},{"country":"Montserrat","value":4.4,"adj_value":6.84288},{"country":"Dominica","value":26.6,"adj_value":41.36832},{"country":"St Lucia","value":80.8,"adj_value":125.66016},{"country":"St Vincent and the Grenadines","value":42.2,"adj_value":65.62944},{"country":"Grenada","value":26.9,"adj_value":41.83488},{"country":"Barbados","value":185.6,"adj_value":288.64512},{"country":"Trinidad and Tobago","value":689.2,"adj_value":1071.84384},{"country":"Netherlands Antilles","value":503.9,"adj_value":783.66528},{"country":"Aruba","value":247.6,"adj_value":385.06752},{"country":"Guadeloupe","value":69.1,"adj_value":107.46432},{"country":"Martinique","value":38.5,"adj_value":59.8752}]},{"continent":"South America","children":[{"country":"Colombia","value":4624.4,"adj_value":7191.86688},{"country":"Venezuela","value":4640.4,"adj_value":7216.75008},{"country":"Guyana","value":141.3,"adj_value":219.74976},{"country":"Suriname","value":189.7,"adj_value":295.02144},{"country":"French Guiana","value":441.8,"adj_value":687.08736},{"country":"Ecuador","value":1538.3,"adj_value":2392.36416},{"country":"Peru","value":1775.4,"adj_value":2761.10208},{"country":"Bolivia","value":213.5,"adj_value":332.0352},{"country":"Chile","value":3614.7,"adj_value":5621.58144},{"country":"Brazil","value":11439.4,"adj_value":17790.55488},{"country":"Paraguay","value":992.4,"adj_value":1543.38048},{"country":"Uruguay","value":395.8,"adj_value":615.54816},{"country":"Argentina","value":4189.2,"adj_value":6515.04384},{"country":"Falkland Islands(Islas Malvin","value":0.3,"adj_value":0.46656}]},{"continent":"Europe","children":[{"country":"Iceland","value":170.5,"adj_value":265.1616},{"country":"Sweden","value":3079.7,"adj_value":4789.54944},{"country":"Svalbard, Jan Mayen Island","value":1.1,"adj_value":1.71072},{"country":"Norway","value":1292.9,"adj_value":2010.71808},{"country":"Finland","value":1249.7,"adj_value":1943.53344},{"country":"Faroe Islands","value":0.4,"adj_value":0.62208},{"country":"Denmark","value":1517.7,"adj_value":2360.32704},{"country":"United Kingdom","value":28856.5,"adj_value":44877.6288},{"country":"Ireland","value":4108.7,"adj_value":6389.85024},{"country":"Netherlands","value":16557.6,"adj_value":25750.37952},{"country":"Belgium","value":12465.6,"adj_value":19386.50112},{"country":"Luxembourg","value":374.2,"adj_value":581.95584},{"country":"Andorra","value":16.5,"adj_value":25.6608},{"country":"Monaco","value":9.6,"adj_value":14.92992},{"country":"France","value":14245.2,"adj_value":22154.13504},{"country":"Germany","value":22394.3,"adj_value":34827.61536},{"country":"Austria","value":2017,"adj_value":3136.8384},{"country":"Czechoslovakia","value":0,"adj_value":0},{"country":"Czech Republic","value":362.8,"adj_value":564.22656},{"country":"Slovakia","value":61,"adj_value":94.8672},{"country":"Hungary","value":295.2,"adj_value":459.09504},{"country":"Liechtenstein","value":15.1,"adj_value":23.48352},{"country":"Switzerland","value":6227.4,"adj_value":9684.85248},{"country":"Estonia","value":139.1,"adj_value":216.32832},{"country":"Latvia","value":89.5,"adj_value":139.1904},{"country":"Lithuania","value":52.2,"adj_value":81.18144},{"country":"Poland","value":776.1,"adj_value":1206.99072},{"country":"USSR","value":0,"adj_value":0},{"country":"Russia","value":2823.4,"adj_value":4390.95168},{"country":"Belarus","value":47.9,"adj_value":74.49408},{"country":"Ukraine","value":223.4,"adj_value":347.43168},{"country":"Armenia","value":70.3,"adj_value":109.33056},{"country":"Azerbaijan","value":35.6,"adj_value":55.36512},{"country":"Georgia","value":95.2,"adj_value":148.05504},{"country":"Kazakhstan","value":80.9,"adj_value":125.81568},{"country":"Kyrgyzstan","value":24.6,"adj_value":38.25792},{"country":"Moldova","value":10.2,"adj_value":15.86304},{"country":"Tajikistan","value":17.6,"adj_value":27.37152},{"country":"Turkmenistan","value":34.3,"adj_value":53.34336},{"country":"Uzbekistan","value":63.4,"adj_value":98.59968},{"country":"Spain","value":5526,"adj_value":8594.0352},{"country":"Portugal","value":898.1,"adj_value":1396.72512},{"country":"Gibraltar","value":18.4,"adj_value":28.61568},{"country":"Malta","value":106.7,"adj_value":165.93984},{"country":"San Marino","value":5.7,"adj_value":8.86464},{"country":"Vatican City","value":0.3,"adj_value":0.46656},{"country":"Italy","value":8861.6,"adj_value":13781.56032},{"country":"Yugoslavia (former)","value":0,"adj_value":0},{"country":"Croatia","value":140,"adj_value":217.728},{"country":"Slovenia","value":109.6,"adj_value":170.44992},{"country":"Bosnia and Herzegovina","value":28.3,"adj_value":44.01216},{"country":"Macedonia","value":21.2,"adj_value":32.97024},{"country":"Serbia and Montenegro","value":2.1,"adj_value":3.26592},{"country":"Albania","value":13.5,"adj_value":20.9952},{"country":"Greece","value":1518.7,"adj_value":2361.88224},{"country":"Romania","value":253.2,"adj_value":393.77664},{"country":"Bulgaria","value":131.8,"adj_value":204.97536}]},{"continent":"Asia","children":[{"country":"Turkey","value":2768,"adj_value":4304.7936},{"country":"Cyprus","value":257.8,"adj_value":400.93056},{"country":"Syria","value":223.4,"adj_value":347.43168},{"country":"Lebanon","value":592.2,"adj_value":920.98944},{"country":"Iraq","value":0.2,"adj_value":0.31104},{"country":"Iran","value":277.4,"adj_value":431.41248},{"country":"Israel","value":0,"adj_value":0},{"country":"Israel","value":5621,"adj_value":8741.7792},{"country":"Gaza Strip admin. by Israel","value":0.1,"adj_value":0.15552},{"country":"West Bank admin. by Israel","value":0.3,"adj_value":0.46656},{"country":"Jordan","value":335.3,"adj_value":521.45856},{"country":"Kuwait","value":1437.4,"adj_value":2235.44448},{"country":"Iraq-Saudi Arabia Neutral Zone","value":0,"adj_value":0},{"country":"Saudi Arabia","value":6155,"adj_value":9572.256},{"country":"Qatar","value":226,"adj_value":351.4752},{"country":"United Arab Emirates","value":2006.3,"adj_value":3120.19776},{"country":"Republic of Yemen","value":185.3,"adj_value":288.17856},{"country":"Oman","value":222,"adj_value":345.2544},{"country":"Bahrain","value":255.1,"adj_value":396.73152},{"country":"Afghanistan","value":4,"adj_value":6.2208},{"country":"India","value":3295.8,"adj_value":5125.62816},{"country":"Pakistan","value":941.3,"adj_value":1463.90976},{"country":"Nepal","value":9.8,"adj_value":15.24096},{"country":"Bangladesh","value":325,"adj_value":505.44},{"country":"Sri Lanka","value":279.1,"adj_value":434.05632},{"country":"Burma","value":16.2,"adj_value":25.19424},{"country":"Thailand","value":6665,"adj_value":10365.408},{"country":"Vietnam","value":252.3,"adj_value":392.37696},{"country":"Laos","value":1.6,"adj_value":2.48832},{"country":"Cambodia","value":26.9,"adj_value":41.83488},{"country":"Malaysia","value":8816.1,"adj_value":13710.79872},{"country":"Singapore","value":15333,"adj_value":23845.8816},{"country":"Indonesia","value":3359.6,"adj_value":5224.84992},{"country":"Brunei","value":190.1,"adj_value":295.64352},{"country":"Philippines","value":5294.8,"adj_value":8234.47296},{"country":"Macau","value":29.9,"adj_value":46.50048},{"country":"Bhutan","value":0.5,"adj_value":0.7776},{"country":"Maldives","value":1.1,"adj_value":1.71072},{"country":"China","value":11753.7,"adj_value":18279.35424},{"country":"Mongolia","value":13.9,"adj_value":21.61728},{"country":"Korea, North","value":11.6,"adj_value":18.04032},{"country":"Korea, South","value":25379.9,"adj_value":39470.82048},{"country":"Hong Kong","value":14231.5,"adj_value":22132.8288},{"country":"Taiwan","value":19289.6,"adj_value":29999.18592},{"country":"Japan","value":64342.7,"adj_value":100065.767}]},{"continent":"Australia","children":[{"country":"Australia","value":10789.1,"adj_value":16779.20832},{"country":"Norfolk Island","value":1.2,"adj_value":1.86624},{"country":"Cocos (Keeling) Islands","value":0.5,"adj_value":0.7776},{"country":"Christmas Island","value":4.5,"adj_value":6.9984},{"country":"Heard and McDonald Islands","value":0,"adj_value":0},{"country":"Papua New Guinea","value":50.8,"adj_value":79.00416},{"country":"New Zealand","value":1691.3,"adj_value":2630.30976},{"country":"Cook Islands","value":0.9,"adj_value":1.39968},{"country":"Tokelau","value":0.1,"adj_value":0.15552},{"country":"Niue","value":31.5,"adj_value":48.9888},{"country":"Samoa","value":7.3,"adj_value":11.35296},{"country":"Solomon Islands","value":2.7,"adj_value":4.19904},{"country":"Vanuatu","value":1.1,"adj_value":1.71072},{"country":"Pitcairn Islands","value":2.2,"adj_value":3.42144},{"country":"Kiribati","value":2.3,"adj_value":3.57696},{"country":"Tuvalu","value":0.3,"adj_value":0.46656},{"country":"New Caledonia","value":22.3,"adj_value":34.68096},{"country":"Wallis and Futuna","value":0,"adj_value":0},{"country":"French Polynesia","value":82.3,"adj_value":127.99296},{"country":"Marshall Islands","value":31.8,"adj_value":49.45536},{"country":"Micronesia","value":23.3,"adj_value":36.23616},{"country":"Palau","value":8.3,"adj_value":12.90816},{"country":"Nauru","value":0.5,"adj_value":0.7776},{"country":"Fiji","value":31.8,"adj_value":49.45536},{"country":"Tonga","value":7.5,"adj_value":11.664}]},{"continent":"Africa","children":[{"country":"Morocco","value":517.4,"adj_value":804.66048},{"country":"Algeria","value":774.1,"adj_value":1203.88032},{"country":"Tunisia","value":214.9,"adj_value":334.21248},{"country":"Libya","value":0,"adj_value":0},{"country":"Egypt","value":2985.1,"adj_value":4642.42752},{"country":"Sudan","value":43.5,"adj_value":67.6512},{"country":"Western Sahara","value":0,"adj_value":0},{"country":"Equatorial Guinea","value":5.2,"adj_value":8.08704},{"country":"Mauritania","value":43.2,"adj_value":67.18464},{"country":"Cameroon","value":45.6,"adj_value":70.91712},{"country":"Senegal","value":67.9,"adj_value":105.59808},{"country":"Mali","value":23.1,"adj_value":35.92512},{"country":"Guinea","value":66.5,"adj_value":103.4208},{"country":"Sierra Leone","value":18.1,"adj_value":28.14912},{"country":"Cote d'Ivoire","value":173.3,"adj_value":269.51616},{"country":"Ghana","value":167.2,"adj_value":260.02944},{"country":"Gambia","value":6.1,"adj_value":9.48672},{"country":"Niger","value":39.6,"adj_value":61.58592},{"country":"Togo","value":18.5,"adj_value":28.7712},{"country":"Nigeria","value":602.9,"adj_value":937.63008},{"country":"Central African Republic","value":6.3,"adj_value":9.79776},{"country":"Gabon","value":54.5,"adj_value":84.7584},{"country":"Chad","value":10.8,"adj_value":16.79616},{"country":"St Helena","value":0.3,"adj_value":0.46656},{"country":"Burkina Faso","value":14.7,"adj_value":22.86144},{"country":"Benin","value":34,"adj_value":52.8768},{"country":"Angola","value":259.7,"adj_value":403.88544},{"country":"Congo (Brazzaville)","value":54.8,"adj_value":85.22496},{"country":"Guinea-Bissau","value":0.8,"adj_value":1.24416},{"country":"Cabo Verde","value":7.5,"adj_value":11.664},{"country":"Sao Tome and Principe","value":1.8,"adj_value":2.79936},{"country":"Liberia","value":41.7,"adj_value":64.85184},{"country":"Congo (Kinshasa)","value":77.1,"adj_value":119.90592},{"country":"Burundi","value":2.9,"adj_value":4.51008},{"country":"Rwanda","value":38.3,"adj_value":59.56416},{"country":"Somalia","value":8.1,"adj_value":12.59712},{"country":"Ethiopia","value":0,"adj_value":0},{"country":"Eritrea","value":16.5,"adj_value":25.6608},{"country":"Ethiopia","value":147.7,"adj_value":229.70304},{"country":"Djibouti","value":8.5,"adj_value":13.2192},{"country":"Uganda","value":22.1,"adj_value":34.36992},{"country":"Kenya","value":114,"adj_value":177.2928},{"country":"Seychelles","value":7.2,"adj_value":11.19744},{"country":"British Indian Ocean Terr.","value":1.8,"adj_value":2.79936},{"country":"Tanzania","value":66.2,"adj_value":102.95424},{"country":"Mauritius","value":24.6,"adj_value":38.25792},{"country":"Mozambique","value":49.3,"adj_value":76.67136},{"country":"Madagascar","value":9.8,"adj_value":15.24096},{"country":"Comoros","value":0.6,"adj_value":0.93312},{"country":"Reunion","value":3.7,"adj_value":5.75424},{"country":"French Southern and Antarctic","value":0,"adj_value":0},{"country":"South Africa","value":2750.5,"adj_value":4277.5776},{"country":"Namibia","value":26.5,"adj_value":41.2128},{"country":"Botswana","value":35.7,"adj_value":55.52064},{"country":"Zambia","value":48.9,"adj_value":76.04928},{"country":"Swaziland","value":3.2,"adj_value":4.97664},{"country":"Zimbabwe","value":122.1,"adj_value":189.88992},{"country":"Malawi","value":17.8,"adj_value":27.68256},{"country":"Lesotho","value":1.8,"adj_value":2.79936}]}]}]},{"year":"2005","children":[{"type":"Imports","children":[{"continent":"North America","children":[{"country":"Greenland","value":17.255599,"adj_value":20.94139495},{"country":"Canada","value":290384.2932,"adj_value":352410.3782},{"country":"St Pierre and Miquelon","value":1.094378,"adj_value":1.328137141},{"country":"Mexico","value":170108.6141,"adj_value":206443.8141},{"country":"Guatemala","value":3137.382263,"adj_value":3807.527114},{"country":"Belize","value":98.265102,"adj_value":119.2545278},{"country":"El Salvador","value":1988.765718,"adj_value":2413.566075},{"country":"Honduras","value":3749.243099,"adj_value":4550.081425},{"country":"Nicaragua","value":1180.787602,"adj_value":1433.003834},{"country":"Costa Rica","value":3415.279262,"adj_value":4144.782912},{"country":"Panama","value":327.060069,"adj_value":396.9200997},{"country":"Bermuda","value":87.276753,"adj_value":105.9190674},{"country":"Bahamas","value":699.936003,"adj_value":849.4423332},{"country":"Cuba","value":0.009079,"adj_value":0.011018274},{"country":"Jamaica","value":375.57236,"adj_value":455.7946161},{"country":"Turks and Caicos Islands","value":9.434412,"adj_value":11.4496024},{"country":"Cayman Islands","value":53.497875,"adj_value":64.9250211},{"country":"Haiti","value":447.217315,"adj_value":542.7429335},{"country":"Dominican Republic","value":4603.684143,"adj_value":5587.031076},{"country":"Anguilla","value":3.754737,"adj_value":4.556748823},{"country":"British Virgin Islands","value":33.579607,"adj_value":40.75221106},{"country":"St Kitts and Nevis","value":49.718541,"adj_value":60.33842136},{"country":"Antigua and Barbuda","value":4.414365,"adj_value":5.357273364},{"country":"Montserrat","value":0.953906,"adj_value":1.157660322},{"country":"Dominica","value":3.344243,"adj_value":4.058573305},{"country":"St Lucia","value":32.396909,"adj_value":39.31688876},{"country":"St Vincent and the Grenadines","value":15.650342,"adj_value":18.99325505},{"country":"Grenada","value":5.852881,"adj_value":7.103056382},{"country":"Barbados","value":31.903789,"adj_value":38.71843833},{"country":"Trinidad and Tobago","value":7890.88378,"adj_value":9576.376555},{"country":"Netherlands Antilles","value":922.413941,"adj_value":1119.441559},{"country":"Aruba","value":2919.735672,"adj_value":3543.391212},{"country":"Guadeloupe","value":2.128806,"adj_value":2.583518962},{"country":"Martinique","value":22.236488,"adj_value":26.98620184}]},{"continent":"South America","children":[{"country":"Colombia","value":8849.380048,"adj_value":10739.60763},{"country":"Venezuela","value":33978.13481,"adj_value":41235.8644},{"country":"Guyana","value":119.931261,"adj_value":145.5485783},{"country":"Suriname","value":165.346376,"adj_value":200.6643619},{"country":"French Guiana","value":0.121285,"adj_value":0.147191476},{"country":"Ecuador","value":5758.679346,"adj_value":6988.733254},{"country":"Peru","value":5119.15577,"adj_value":6212.607442},{"country":"Bolivia","value":293.216045,"adj_value":355.8469922},{"country":"Chile","value":6664.333836,"adj_value":8087.835543},{"country":"Brazil","value":24435.51938,"adj_value":29654.94632},{"country":"Paraguay","value":51.645596,"adj_value":62.67709531},{"country":"Uruguay","value":732.311644,"adj_value":888.7334112},{"country":"Argentina","value":4583.613305,"adj_value":5562.673107},{"country":"Falkland Islands(Islas Malvin","value":9.261546,"adj_value":11.23981223}]},{"continent":"Europe","children":[{"country":"Iceland","value":268.97508,"adj_value":326.4281571},{"country":"Sweden","value":13820.97724,"adj_value":16773.13798},{"country":"Svalbard, Jan Mayen Island","value":0.039576,"adj_value":0.048029434},{"country":"Norway","value":6776.30892,"adj_value":8223.728505},{"country":"Finland","value":4341.679942,"adj_value":5269.062778},{"country":"Faroe Islands","value":4.276273,"adj_value":5.189684913},{"country":"Denmark","value":5144.20165,"adj_value":6243.003122},{"country":"United Kingdom","value":51032.62111,"adj_value":61933.18897},{"country":"Ireland","value":28733.08026,"adj_value":34870.4662},{"country":"Netherlands","value":14862.04151,"adj_value":18036.57358},{"country":"Belgium","value":13022.90274,"adj_value":15804.59477},{"country":"Luxembourg","value":388.834493,"adj_value":471.8895407},{"country":"Andorra","value":0.673148,"adj_value":0.816932413},{"country":"Monaco","value":37.485881,"adj_value":45.49286518},{"country":"France","value":33842.05751,"adj_value":41070.721},{"country":"Germany","value":84750.87138,"adj_value":102853.6575},{"country":"Austria","value":6102.944725,"adj_value":7406.533718},{"country":"Czech Republic","value":2192.863031,"adj_value":2661.258574},{"country":"Slovakia","value":960.730063,"adj_value":1165.942004},{"country":"Hungary","value":2561.172978,"adj_value":3108.239526},{"country":"Liechtenstein","value":295.705721,"adj_value":358.868463},{"country":"Switzerland","value":12999.88108,"adj_value":15776.65568},{"country":"Estonia","value":511.379949,"adj_value":620.6107061},{"country":"Latvia","value":362.159252,"adj_value":439.5164682},{"country":"Lithuania","value":633.912046,"adj_value":769.315659},{"country":"Poland","value":1948.58625,"adj_value":2364.804273},{"country":"Russia","value":15306.67384,"adj_value":18576.17937},{"country":"Belarus","value":345.161433,"adj_value":418.8879151},{"country":"Ukraine","value":1098.029235,"adj_value":1332.56828},{"country":"Armenia","value":46.191425,"adj_value":56.05791338},{"country":"Azerbaijan","value":45.361225,"adj_value":55.05038266},{"country":"Georgia","value":194.384289,"adj_value":235.9047731},{"country":"Kazakhstan","value":1101.145431,"adj_value":1336.350095},{"country":"Kyrgyzstan","value":4.618689,"adj_value":5.60524097},{"country":"Moldova","value":50.224656,"adj_value":60.95264252},{"country":"Tajikistan","value":241.029155,"adj_value":292.5129825},{"country":"Turkmenistan","value":135.325351,"adj_value":164.230846},{"country":"Uzbekistan","value":95.627811,"adj_value":116.0539114},{"country":"Spain","value":8614.64214,"adj_value":10454.7297},{"country":"Portugal","value":2328.674933,"adj_value":2826.079899},{"country":"Gibraltar","value":4.637081,"adj_value":5.627561502},{"country":"Malta","value":282.653662,"adj_value":343.0284842},{"country":"San Marino","value":1.389972,"adj_value":1.686870019},{"country":"Vatican City","value":0.282286,"adj_value":0.34258229},{"country":"Italy","value":31009.26008,"adj_value":37632.83803},{"country":"Croatia","value":364.277603,"adj_value":442.087299},{"country":"Slovenia","value":413.019469,"adj_value":501.2404276},{"country":"Bosnia and Herzegovina","value":70.462111,"adj_value":85.51281791},{"country":"Macedonia","value":48.149502,"adj_value":58.43423563},{"country":"Serbia and Montenegro","value":54.632827,"adj_value":66.30239885},{"country":"Albania","value":37.18875,"adj_value":45.132267},{"country":"Greece","value":883.73016,"adj_value":1072.494922},{"country":"Romania","value":1207.584718,"adj_value":1465.524814},{"country":"Bulgaria","value":454.262612,"adj_value":551.2931059}]},{"continent":"Asia","children":[{"country":"Turkey","value":5182.052179,"adj_value":6288.938524},{"country":"Cyprus","value":30.536194,"adj_value":37.05872504},{"country":"Syria","value":323.599119,"adj_value":392.7198908},{"country":"Lebanon","value":86.370988,"adj_value":104.819831},{"country":"Iraq","value":9053.695686,"adj_value":10987.56508},{"country":"Iran","value":174.457417,"adj_value":211.7215213},{"country":"Israel","value":16830.46608,"adj_value":20425.45364},{"country":"Gaza Strip admin. by Israel","value":1.443661,"adj_value":1.75202699},{"country":"West Bank admin. by Israel","value":1.604198,"adj_value":1.946854693},{"country":"Jordan","value":1266.84986,"adj_value":1537.44899},{"country":"Kuwait","value":4334.781445,"adj_value":5260.690762},{"country":"Saudi Arabia","value":27192.64204,"adj_value":33000.99038},{"country":"Qatar","value":447.861094,"adj_value":543.5242237},{"country":"United Arab Emirates","value":1468.316627,"adj_value":1781.949059},{"country":"Republic of Yemen","value":278.635079,"adj_value":338.1515319},{"country":"Oman","value":555.043525,"adj_value":673.6008219},{"country":"Bahrain","value":431.61192,"adj_value":523.8042261},{"country":"Afghanistan","value":67.310191,"adj_value":81.6876478},{"country":"India","value":18804.16965,"adj_value":22820.74029},{"country":"Pakistan","value":3253.181975,"adj_value":3948.061645},{"country":"Nepal","value":111.212077,"adj_value":134.9669766},{"country":"Bangladesh","value":2693.035035,"adj_value":3268.267318},{"country":"Sri Lanka","value":2082.938898,"adj_value":2527.854647},{"country":"Burma","value":0.0615,"adj_value":0.0746364},{"country":"Thailand","value":19889.75578,"adj_value":24138.20761},{"country":"Vietnam","value":6631.158734,"adj_value":8047.57424},{"country":"Laos","value":4.166156,"adj_value":5.056046922},{"country":"Cambodia","value":1766.956953,"adj_value":2144.378958},{"country":"Malaysia","value":33685.15957,"adj_value":40880.30965},{"country":"Singapore","value":15110.08962,"adj_value":18337.60477},{"country":"Indonesia","value":12014.34419,"adj_value":14580.6081},{"country":"East Timor","value":0.084963,"adj_value":0.103111097},{"country":"Brunei","value":562.742346,"adj_value":682.9441111},{"country":"Philippines","value":9250.433389,"adj_value":11226.32596},{"country":"Macau","value":1249.02212,"adj_value":1515.813245},{"country":"Bhutan","value":0.615516,"adj_value":0.746990218},{"country":"Maldives","value":5.496456,"adj_value":6.670499002},{"country":"China","value":243470.1048,"adj_value":295475.3192},{"country":"Mongolia","value":143.645404,"adj_value":174.3280623},{"country":"Korea, North","value":0.003252,"adj_value":0.003946627},{"country":"Korea, South","value":43781.44106,"adj_value":53133.15687},{"country":"Hong Kong","value":8891.705575,"adj_value":10790.97389},{"country":"Taiwan","value":34825.82882,"adj_value":42264.62586},{"country":"Japan","value":138003.6962,"adj_value":167481.2857}]},{"continent":"Australia","children":[{"country":"Australia","value":7342.17895,"adj_value":8910.468374},{"country":"Norfolk Island","value":0.17315,"adj_value":0.21013484},{"country":"Cocos (Keeling) Islands","value":0.484315,"adj_value":0.587764684},{"country":"Christmas Island","value":0.417613,"adj_value":0.506815137},{"country":"Heard and McDonald Islands","value":0.016396,"adj_value":0.019898186},{"country":"Papua New Guinea","value":58.451246,"adj_value":70.93643215},{"country":"New Zealand","value":3155.239797,"adj_value":3829.199018},{"country":"Cook Islands","value":1.744825,"adj_value":2.11751962},{"country":"Tokelau","value":10.800762,"adj_value":13.10780476},{"country":"Niue","value":0.138878,"adj_value":0.168542341},{"country":"Samoa","value":7.937575,"adj_value":9.63304102},{"country":"Solomon Islands","value":1.351564,"adj_value":1.64025807},{"country":"Vanuatu","value":2.489141,"adj_value":3.020821518},{"country":"Pitcairn Islands","value":1.040512,"adj_value":1.262765363},{"country":"Kiribati","value":1.104581,"adj_value":1.340519502},{"country":"Tuvalu","value":0.056868,"adj_value":0.069015005},{"country":"New Caledonia","value":27.174251,"adj_value":32.97867101},{"country":"Wallis and Futuna","value":0.022469,"adj_value":0.027268378},{"country":"French Polynesia","value":60.124235,"adj_value":72.9667716},{"country":"Marshall Islands","value":17.205126,"adj_value":20.88014091},{"country":"Micronesia","value":1.557731,"adj_value":1.890462342},{"country":"Palau","value":0.484544,"adj_value":0.588042598},{"country":"Nauru","value":0.148786,"adj_value":0.18056669},{"country":"Fiji","value":169.460711,"adj_value":205.6575189},{"country":"Tonga","value":5.350431,"adj_value":6.493283062}]},{"continent":"Africa","children":[{"country":"Morocco","value":445.793996,"adj_value":541.0155935},{"country":"Algeria","value":10446.43785,"adj_value":12677.79698},{"country":"Tunisia","value":263.768113,"adj_value":320.1089819},{"country":"Libya","value":1590.341099,"adj_value":1930.037958},{"country":"Egypt","value":2091.236887,"adj_value":2537.925086},{"country":"Sudan","value":13.574271,"adj_value":16.47373529},{"country":"Western Sahara","value":0,"adj_value":0},{"country":"Equatorial Guinea","value":1561.137497,"adj_value":1894.596466},{"country":"Mauritania","value":0.825319,"adj_value":1.001607138},{"country":"Cameroon","value":158.161864,"adj_value":191.9452382},{"country":"Senegal","value":3.662962,"adj_value":4.445370683},{"country":"Mali","value":3.649953,"adj_value":4.429582961},{"country":"Guinea","value":74.733573,"adj_value":90.69666419},{"country":"Sierra Leone","value":9.312822,"adj_value":11.30204078},{"country":"Cote d'Ivoire","value":1197.97516,"adj_value":1453.862654},{"country":"Ghana","value":158.409617,"adj_value":192.2459112},{"country":"Gambia","value":0.427153,"adj_value":0.518392881},{"country":"Niger","value":65.51339,"adj_value":79.5070501},{"country":"Togo","value":6.439273,"adj_value":7.814701713},{"country":"Nigeria","value":24239.35673,"adj_value":29416.88333},{"country":"Central African Republic","value":5.696947,"adj_value":6.913814879},{"country":"Gabon","value":2815.602273,"adj_value":3417.014919},{"country":"Chad","value":1498.086294,"adj_value":1818.077526},{"country":"St Helena","value":3.269267,"adj_value":3.967582431},{"country":"Burkina Faso","value":2.084203,"adj_value":2.529388761},{"country":"Benin","value":0.513184,"adj_value":0.622800102},{"country":"Angola","value":8484.361601,"adj_value":10296.62124},{"country":"Congo (Brazzaville)","value":1622.90154,"adj_value":1969.553309},{"country":"Guinea-Bissau","value":0.120677,"adj_value":0.146453607},{"country":"Cabo Verde","value":2.62425,"adj_value":3.1847898},{"country":"Sao Tome and Principe","value":0.216017,"adj_value":0.262158231},{"country":"Liberia","value":90.827263,"adj_value":110.2279664},{"country":"Congo (Kinshasa)","value":263.558216,"adj_value":319.8542509},{"country":"Burundi","value":4.423229,"adj_value":5.368030714},{"country":"Rwanda","value":6.301468,"adj_value":7.647461565},{"country":"Somalia","value":0.307638,"adj_value":0.373349477},{"country":"Eritrea","value":1.269401,"adj_value":1.540545054},{"country":"Ethiopia","value":61.802253,"adj_value":75.00321424},{"country":"Djibouti","value":1.101206,"adj_value":1.336423602},{"country":"Uganda","value":25.769069,"adj_value":31.27334214},{"country":"Kenya","value":348.019269,"adj_value":422.3561849},{"country":"Seychelles","value":5.883749,"adj_value":7.140517786},{"country":"British Indian Ocean Terr.","value":0.432984,"adj_value":0.525469382},{"country":"Tanzania","value":33.695475,"adj_value":40.89282846},{"country":"Mauritius","value":221.85071,"adj_value":269.2380217},{"country":"Mozambique","value":11.905754,"adj_value":14.44882305},{"country":"Madagascar","value":323.631165,"adj_value":392.7587818},{"country":"Comoros","value":1.447044,"adj_value":1.756132598},{"country":"Reunion","value":5.835528,"adj_value":7.081996781},{"country":"French Southern and Antarctic","value":0.05164,"adj_value":0.062670304},{"country":"South Africa","value":5885.639948,"adj_value":7142.812641},{"country":"Namibia","value":129.590672,"adj_value":157.2712395},{"country":"Botswana","value":178.164424,"adj_value":216.220345},{"country":"Zambia","value":31.70289,"adj_value":38.4746273},{"country":"Swaziland","value":198.886296,"adj_value":241.3684088},{"country":"Zimbabwe","value":94.328983,"adj_value":114.4776538},{"country":"Malawi","value":115.50192,"adj_value":140.1731301},{"country":"Lesotho","value":403.608048,"adj_value":489.8187271}]}]},{"type":"Exports","children":[{"continent":"North America","children":[{"country":"Greenland","value":5.085009,"adj_value":6.171166922},{"country":"Canada","value":211898.6894,"adj_value":257160.2494},{"country":"St Pierre and Miquelon","value":0.980031,"adj_value":1.189365622},{"country":"Mexico","value":120247.5801,"adj_value":145932.4633},{"country":"Guatemala","value":2835.38039,"adj_value":3441.017641},{"country":"Belize","value":217.562773,"adj_value":264.0341813},{"country":"El Salvador","value":1854.286657,"adj_value":2250.362287},{"country":"Honduras","value":3253.813808,"adj_value":3948.828437},{"country":"Nicaragua","value":625.460463,"adj_value":759.0588179},{"country":"Costa Rica","value":3598.560177,"adj_value":4367.212631},{"country":"Panama","value":2162.020485,"adj_value":2623.828061},{"country":"Bermuda","value":490.497944,"adj_value":595.2683048},{"country":"Bahamas","value":1786.740047,"adj_value":2168.387721},{"country":"Cuba","value":369.034678,"adj_value":447.8604852},{"country":"Jamaica","value":1700.769277,"adj_value":2064.053595},{"country":"Turks and Caicos Islands","value":237.752693,"adj_value":288.5366682},{"country":"Cayman Islands","value":680.670387,"adj_value":826.0615817},{"country":"Haiti","value":709.620597,"adj_value":861.1955565},{"country":"Dominican Republic","value":4718.733392,"adj_value":5726.654845},{"country":"Anguilla","value":32.186758,"adj_value":39.06184951},{"country":"British Virgin Islands","value":124.856685,"adj_value":151.5260729},{"country":"St Kitts and Nevis","value":94.069439,"adj_value":114.1626712},{"country":"Antigua and Barbuda","value":190.447421,"adj_value":231.1269901},{"country":"Montserrat","value":4.848606,"adj_value":5.884268242},{"country":"Dominica","value":61.540001,"adj_value":74.68494521},{"country":"St Lucia","value":135.389135,"adj_value":164.3082542},{"country":"St Vincent and the Grenadines","value":45.411401,"adj_value":55.11127625},{"country":"Grenada","value":82.440305,"adj_value":100.0495541},{"country":"Barbados","value":394.92009,"adj_value":479.2750212},{"country":"Trinidad and Tobago","value":1416.748479,"adj_value":1719.365954},{"country":"Netherlands Antilles","value":1137.633614,"adj_value":1380.632154},{"country":"Aruba","value":558.924451,"adj_value":678.3107137},{"country":"Guadeloupe","value":54.512655,"adj_value":66.15655811},{"country":"Martinique","value":34.95999,"adj_value":42.42744386}]},{"continent":"South America","children":[{"country":"Colombia","value":5462.357164,"adj_value":6629.116654},{"country":"Venezuela","value":6420.897723,"adj_value":7792.401477},{"country":"Guyana","value":176.704601,"adj_value":214.4487038},{"country":"Suriname","value":245.701079,"adj_value":298.1828295},{"country":"French Guiana","value":26.993942,"adj_value":32.75984801},{"country":"Ecuador","value":1963.825872,"adj_value":2383.299078},{"country":"Peru","value":2309.446378,"adj_value":2802.744124},{"country":"Bolivia","value":219.479092,"adj_value":266.3598261},{"country":"Chile","value":5133.523351,"adj_value":6230.043939},{"country":"Brazil","value":15371.71785,"adj_value":18655.11678},{"country":"Paraguay","value":895.819607,"adj_value":1087.166675},{"country":"Uruguay","value":356.676188,"adj_value":432.8622218},{"country":"Argentina","value":4121.861182,"adj_value":5002.29073},{"country":"Falkland Islands(Islas Malvin","value":9.049418,"adj_value":10.98237368}]},{"continent":"Europe","children":[{"country":"Iceland","value":512.019513,"adj_value":621.386881},{"country":"Sweden","value":3715.36862,"adj_value":4508.971357},{"country":"Svalbard, Jan Mayen Island","value":5.677609,"adj_value":6.890346282},{"country":"Norway","value":1941.882004,"adj_value":2356.668},{"country":"Finland","value":2254.052992,"adj_value":2735.518711},{"country":"Faroe Islands","value":2.528152,"adj_value":3.068165267},{"country":"Denmark","value":1918.423705,"adj_value":2328.199008},{"country":"United Kingdom","value":38568.08305,"adj_value":46806.22558},{"country":"Ireland","value":8446.771993,"adj_value":10251.00249},{"country":"Netherlands","value":26467.74458,"adj_value":32121.25482},{"country":"Belgium","value":18690.60657,"adj_value":22682.92013},{"country":"Luxembourg","value":711.38307,"adj_value":863.3344938},{"country":"Andorra","value":10.549473,"adj_value":12.80284043},{"country":"Monaco","value":16.776668,"adj_value":20.36016428},{"country":"France","value":22258.62805,"adj_value":27013.071},{"country":"Germany","value":34183.65627,"adj_value":41485.28525},{"country":"Austria","value":2544.481273,"adj_value":3087.982473},{"country":"Czech Republic","value":1053.557481,"adj_value":1278.597359},{"country":"Slovakia","value":149.800634,"adj_value":181.7980494},{"country":"Hungary","value":1023.258213,"adj_value":1241.826167},{"country":"Liechtenstein","value":19.7165,"adj_value":23.9279444},{"country":"Switzerland","value":10717.52806,"adj_value":13006.79206},{"country":"Estonia","value":145.425805,"adj_value":176.4887569},{"country":"Latvia","value":177.537085,"adj_value":215.4590064},{"country":"Lithuania","value":390.027824,"adj_value":473.3377672},{"country":"Poland","value":1267.748385,"adj_value":1538.53944},{"country":"Russia","value":3962.270261,"adj_value":4808.611189},{"country":"Belarus","value":34.942759,"adj_value":42.40653232},{"country":"Ukraine","value":532.954308,"adj_value":646.7933482},{"country":"Armenia","value":65.483218,"adj_value":79.47043336},{"country":"Azerbaijan","value":132.462798,"adj_value":160.7568517},{"country":"Georgia","value":213.886826,"adj_value":259.573052},{"country":"Kazakhstan","value":538.286932,"adj_value":653.2650207},{"country":"Kyrgyzstan","value":31.140901,"adj_value":37.79259745},{"country":"Moldova","value":40.069837,"adj_value":48.62875418},{"country":"Tajikistan","value":28.7867,"adj_value":34.93553912},{"country":"Turkmenistan","value":215.170092,"adj_value":261.1304237},{"country":"Uzbekistan","value":73.826609,"adj_value":89.59597268},{"country":"Spain","value":6839.116578,"adj_value":8299.951879},{"country":"Portugal","value":1131.865366,"adj_value":1373.631808},{"country":"Gibraltar","value":163.257568,"adj_value":198.1293845},{"country":"Malta","value":193.709217,"adj_value":235.0855058},{"country":"San Marino","value":4.676009,"adj_value":5.674804522},{"country":"Vatican City","value":24.181227,"adj_value":29.34633709},{"country":"Italy","value":11524.32529,"adj_value":13985.92117},{"country":"Croatia","value":158.621993,"adj_value":192.5036507},{"country":"Slovenia","value":233.830317,"adj_value":283.7764727},{"country":"Bosnia and Herzegovina","value":17.573793,"adj_value":21.32755518},{"country":"Macedonia","value":31.556267,"adj_value":38.29668563},{"country":"Serbia and Montenegro","value":132.49633,"adj_value":160.7975461},{"country":"Albania","value":18.513925,"adj_value":22.46849938},{"country":"Greece","value":1192.248494,"adj_value":1446.912772},{"country":"Romania","value":608.858767,"adj_value":738.9109996},{"country":"Bulgaria","value":267.93442,"adj_value":325.1652121}]},{"continent":"Asia","children":[{"country":"Turkey","value":4238.966194,"adj_value":5144.409373},{"country":"Cyprus","value":84.179247,"adj_value":102.1599342},{"country":"Syria","value":155.049379,"adj_value":188.1679264},{"country":"Lebanon","value":465.688546,"adj_value":565.1596194},{"country":"Iraq","value":1373.986265,"adj_value":1667.469731},{"country":"Iran","value":95.773068,"adj_value":116.2301953},{"country":"Israel","value":9737.340849,"adj_value":11817.23685},{"country":"Gaza Strip admin. by Israel","value":0.23112,"adj_value":0.280487232},{"country":"West Bank admin. by Israel","value":3.720993,"adj_value":4.515797105},{"country":"Jordan","value":644.195347,"adj_value":781.7954731},{"country":"Kuwait","value":1974.875551,"adj_value":2396.708969},{"country":"Saudi Arabia","value":6805.402418,"adj_value":8259.036374},{"country":"Qatar","value":986.642413,"adj_value":1197.389232},{"country":"United Arab Emirates","value":8119.527357,"adj_value":9853.8584},{"country":"Republic of Yemen","value":219.04852,"adj_value":265.8372839},{"country":"Oman","value":570.72512,"adj_value":692.6320056},{"country":"Bahrain","value":350.78451,"adj_value":425.7120813},{"country":"Afghanistan","value":262.153213,"adj_value":318.1491393},{"country":"India","value":7918.602428,"adj_value":9610.015907},{"country":"Pakistan","value":1251.63194,"adj_value":1518.980522},{"country":"Nepal","value":24.704668,"adj_value":29.98158508},{"country":"Bangladesh","value":319.769758,"adj_value":388.0725783},{"country":"Sri Lanka","value":197.631294,"adj_value":239.8453384},{"country":"Burma","value":5.464172,"adj_value":6.631319139},{"country":"Thailand","value":7256.616259,"adj_value":8806.629492},{"country":"Vietnam","value":1193.152202,"adj_value":1448.009512},{"country":"Laos","value":9.807849,"adj_value":11.90280555},{"country":"Cambodia","value":69.652929,"adj_value":84.53079463},{"country":"Malaysia","value":10460.83317,"adj_value":12695.26713},{"country":"Singapore","value":20466.07346,"adj_value":24837.62675},{"country":"Indonesia","value":3053.913961,"adj_value":3706.229983},{"country":"East Timor","value":8.685474,"adj_value":10.54069125},{"country":"Brunei","value":49.614155,"adj_value":60.21173851},{"country":"Philippines","value":6895.406023,"adj_value":8368.26475},{"country":"Macau","value":101.575899,"adj_value":123.272511},{"country":"Bhutan","value":3.05218,"adj_value":3.704125648},{"country":"Maldives","value":9.25555,"adj_value":11.23253548},{"country":"China","value":41192.01012,"adj_value":49990.62349},{"country":"Mongolia","value":21.879286,"adj_value":26.55270149},{"country":"Korea, North","value":5.757048,"adj_value":6.986753453},{"country":"Korea, South","value":27571.60598,"adj_value":33460.90101},{"country":"Hong Kong","value":16351.02861,"adj_value":19843.60832},{"country":"Taiwan","value":21614.49693,"adj_value":26231.35347},{"country":"Japan","value":54680.57985,"adj_value":66360.3517}]},{"continent":"Australia","children":[{"country":"Australia","value":15588.51968,"adj_value":18918.22748},{"country":"Norfolk Island","value":0.391532,"adj_value":0.475163235},{"country":"Cocos (Keeling) Islands","value":1.048051,"adj_value":1.271914694},{"country":"Christmas Island","value":2.00592,"adj_value":2.434384512},{"country":"Heard and McDonald Islands","value":0.160607,"adj_value":0.194912655},{"country":"Papua New Guinea","value":55.347872,"adj_value":67.17017746},{"country":"New Zealand","value":2592.076963,"adj_value":3145.744602},{"country":"Cook Islands","value":1.372809,"adj_value":1.666041002},{"country":"Tokelau","value":79.822527,"adj_value":96.87261877},{"country":"Niue","value":0.607643,"adj_value":0.737435545},{"country":"Samoa","value":14.538961,"adj_value":17.64448307},{"country":"Solomon Islands","value":2.297431,"adj_value":2.788162262},{"country":"Vanuatu","value":9.138578,"adj_value":11.09057826},{"country":"Pitcairn Islands","value":0.45629,"adj_value":0.553753544},{"country":"Kiribati","value":2.411608,"adj_value":2.926727469},{"country":"Tuvalu","value":0.04246,"adj_value":0.051529456},{"country":"New Caledonia","value":38.403106,"adj_value":46.60600944},{"country":"Wallis and Futuna","value":0.408737,"adj_value":0.496043223},{"country":"French Polynesia","value":111.838384,"adj_value":135.7270628},{"country":"Marshall Islands","value":75.48435,"adj_value":91.60780716},{"country":"Micronesia","value":25.349268,"adj_value":30.76387164},{"country":"Palau","value":12.22524,"adj_value":14.83655126},{"country":"Nauru","value":1.62475,"adj_value":1.9717966},{"country":"Fiji","value":28.177593,"adj_value":34.19632686},{"country":"Tonga","value":9.685131,"adj_value":11.75387498}]},{"continent":"Africa","children":[{"country":"Morocco","value":480.792527,"adj_value":583.4898108},{"country":"Algeria","value":1106.190448,"adj_value":1342.472728},{"country":"Tunisia","value":261.16652,"adj_value":316.9516887},{"country":"Libya","value":83.841985,"adj_value":101.750633},{"country":"Egypt","value":3159.259288,"adj_value":3834.077072},{"country":"Sudan","value":108.105454,"adj_value":131.196779},{"country":"Western Sahara","value":0.028656,"adj_value":0.034776922},{"country":"Equatorial Guinea","value":281.472431,"adj_value":341.5949423},{"country":"Mauritania","value":86.135221,"adj_value":104.5337042},{"country":"Cameroon","value":117.313887,"adj_value":142.3721333},{"country":"Senegal","value":141.499953,"adj_value":171.724343},{"country":"Mali","value":32.421928,"adj_value":39.34725182},{"country":"Guinea","value":93.59706,"adj_value":113.589392},{"country":"Sierra Leone","value":37.829353,"adj_value":45.9097028},{"country":"Cote d'Ivoire","value":124.242832,"adj_value":150.7811009},{"country":"Ghana","value":337.389713,"adj_value":409.4561557},{"country":"Gambia","value":30.604418,"adj_value":37.14152168},{"country":"Niger","value":78.511944,"adj_value":95.28209524},{"country":"Togo","value":27.928388,"adj_value":33.89389168},{"country":"Nigeria","value":1619.788459,"adj_value":1965.775274},{"country":"Central African Republic","value":14.781003,"adj_value":17.93822524},{"country":"Gabon","value":99.105857,"adj_value":120.2748681},{"country":"Chad","value":53.752155,"adj_value":65.23361531},{"country":"St Helena","value":2.732629,"adj_value":3.316318554},{"country":"Burkina Faso","value":25.11081,"adj_value":30.47447902},{"country":"Benin","value":72.278749,"adj_value":87.71748979},{"country":"Angola","value":929.046776,"adj_value":1127.491167},{"country":"Congo (Brazzaville)","value":104.056096,"adj_value":126.2824781},{"country":"Guinea-Bissau","value":2.100355,"adj_value":2.548990828},{"country":"Cabo Verde","value":9.871825,"adj_value":11.98044682},{"country":"Sao Tome and Principe","value":10.153283,"adj_value":12.32202425},{"country":"Liberia","value":69.32032,"adj_value":84.12714035},{"country":"Congo (Kinshasa)","value":64.968131,"adj_value":78.84532378},{"country":"Burundi","value":8.121178,"adj_value":9.855861621},{"country":"Rwanda","value":10.534162,"adj_value":12.784259},{"country":"Somalia","value":8.831504,"adj_value":10.71791325},{"country":"Eritrea","value":31.058711,"adj_value":37.69285167},{"country":"Ethiopia","value":455.635812,"adj_value":552.9596214},{"country":"Djibouti","value":47.571125,"adj_value":57.7323173},{"country":"Uganda","value":62.573652,"adj_value":75.93938407},{"country":"Kenya","value":573.365497,"adj_value":695.8363672},{"country":"Seychelles","value":17.912292,"adj_value":21.73835757},{"country":"British Indian Ocean Terr.","value":0.806112,"adj_value":0.978297523},{"country":"Tanzania","value":96.44391,"adj_value":117.0443292},{"country":"Mauritius","value":30.860179,"adj_value":37.45191323},{"country":"Mozambique","value":62.825299,"adj_value":76.24478287},{"country":"Madagascar","value":28.205237,"adj_value":34.22987562},{"country":"Comoros","value":0.295219,"adj_value":0.358277778},{"country":"Reunion","value":3.78591,"adj_value":4.594580376},{"country":"French Southern and Antarctic","value":0.273678,"adj_value":0.332135621},{"country":"South Africa","value":3906.946741,"adj_value":4741.470565},{"country":"Namibia","value":112.249178,"adj_value":136.2256024},{"country":"Botswana","value":67.272144,"adj_value":81.64147396},{"country":"Zambia","value":29.113109,"adj_value":35.33166908},{"country":"Swaziland","value":11.856893,"adj_value":14.38952534},{"country":"Zimbabwe","value":45.540976,"adj_value":55.26852847},{"country":"Malawi","value":28.049237,"adj_value":34.04055402},{"country":"Lesotho","value":4.015033,"adj_value":4.872644049}]}]}]},{"year":"2015","children":[{"type":"Imports","children":[{"continent":"North America","children":[{"country":"Greenland","value":3.800273,"adj_value":3.800273},{"country":"Canada","value":296155.599,"adj_value":296155.599},{"country":"St Pierre and Miquelon","value":0.18562,"adj_value":0.18562},{"country":"Mexico","value":296407.9011,"adj_value":296407.9011},{"country":"Guatemala","value":4120.351959,"adj_value":4120.351959},{"country":"Belize","value":75.287339,"adj_value":75.287339},{"country":"El Salvador","value":2531.699424,"adj_value":2531.699424},{"country":"Honduras","value":4755.934545,"adj_value":4755.934545},{"country":"Nicaragua","value":3188.301535,"adj_value":3188.301535},{"country":"Costa Rica","value":4488.341429,"adj_value":4488.341429},{"country":"Panama","value":408.293396,"adj_value":408.293396},{"country":"Bermuda","value":108.704684,"adj_value":108.704684},{"country":"Bahamas","value":452.744256,"adj_value":452.744256},{"country":"Cuba","value":0,"adj_value":0},{"country":"Jamaica","value":305.978402,"adj_value":305.978402},{"country":"Turks and Caicos Islands","value":14.710225,"adj_value":14.710225},{"country":"Cayman Islands","value":97.496341,"adj_value":97.496341},{"country":"Haiti","value":950.091535,"adj_value":950.091535},{"country":"Dominican Republic","value":4665.266745,"adj_value":4665.266745},{"country":"Anguilla","value":5.583883,"adj_value":5.583883},{"country":"British Virgin Islands","value":16.491398,"adj_value":16.491398},{"country":"St Kitts and Nevis","value":56.753359,"adj_value":56.753359},{"country":"Antigua and Barbuda","value":6.856395,"adj_value":6.856395},{"country":"Montserrat","value":2.271534,"adj_value":2.271534},{"country":"Dominica","value":1.683203,"adj_value":1.683203},{"country":"St Lucia","value":29.00446,"adj_value":29.00446},{"country":"St Vincent and the Grenadines","value":1.768076,"adj_value":1.768076},{"country":"Grenada","value":9.215032,"adj_value":9.215032},{"country":"Barbados","value":68.174291,"adj_value":68.174291},{"country":"Trinidad and Tobago","value":4314.344265,"adj_value":4314.344265},{"country":"Sint Maarten","value":51.873445,"adj_value":51.873445},{"country":"Curacao","value":335.229109,"adj_value":335.229109},{"country":"Aruba","value":54.90185,"adj_value":54.90185},{"country":"Guadeloupe","value":4.123528,"adj_value":4.123528},{"country":"Martinique","value":37.46278,"adj_value":37.46278}]},{"continent":"South America","children":[{"country":"Colombia","value":14074.81661,"adj_value":14074.81661},{"country":"Venezuela","value":15564.23275,"adj_value":15564.23275},{"country":"Guyana","value":431.099884,"adj_value":431.099884},{"country":"Suriname","value":146.224404,"adj_value":146.224404},{"country":"French Guiana","value":0.042924,"adj_value":0.042924},{"country":"Ecuador","value":7467.258698,"adj_value":7467.258698},{"country":"Peru","value":5053.337195,"adj_value":5053.337195},{"country":"Bolivia","value":1006.481438,"adj_value":1006.481438},{"country":"Chile","value":8772.414027,"adj_value":8772.414027},{"country":"Brazil","value":27468.23032,"adj_value":27468.23032},{"country":"Paraguay","value":162.023098,"adj_value":162.023098},{"country":"Uruguay","value":604.746068,"adj_value":604.746068},{"country":"Argentina","value":3950.849545,"adj_value":3950.849545},{"country":"Falkland Islands(Islas Malvin","value":14.273948,"adj_value":14.273948}]},{"continent":"Europe","children":[{"country":"Iceland","value":316.534176,"adj_value":316.534176},{"country":"Sweden","value":9878.966413,"adj_value":9878.966413},{"country":"Svalbard, Jan Mayen Island","value":0.028231,"adj_value":0.028231},{"country":"Norway","value":4760.200206,"adj_value":4760.200206},{"country":"Finland","value":4506.071121,"adj_value":4506.071121},{"country":"Faroe Islands","value":97.897991,"adj_value":97.897991},{"country":"Denmark","value":7760.022813,"adj_value":7760.022813},{"country":"United Kingdom","value":57962.25131,"adj_value":57962.25131},{"country":"Ireland","value":39336.18067,"adj_value":39336.18067},{"country":"Netherlands","value":16835.61486,"adj_value":16835.61486},{"country":"Belgium","value":19482.27263,"adj_value":19482.27263},{"country":"Luxembourg","value":639.038795,"adj_value":639.038795},{"country":"Andorra","value":4.863157,"adj_value":4.863157},{"country":"Monaco","value":58.818337,"adj_value":58.818337},{"country":"France","value":47815.32286,"adj_value":47815.32286},{"country":"Germany","value":124820.4692,"adj_value":124820.4692},{"country":"Austria","value":11311.97506,"adj_value":11311.97506},{"country":"Czech Republic","value":4497.634904,"adj_value":4497.634904},{"country":"Slovakia","value":2299.822999,"adj_value":2299.822999},{"country":"Hungary","value":5721.266311,"adj_value":5721.266311},{"country":"Liechtenstein","value":310.294941,"adj_value":310.294941},{"country":"Switzerland","value":31396.66041,"adj_value":31396.66041},{"country":"Estonia","value":503.50072,"adj_value":503.50072},{"country":"Latvia","value":302.969587,"adj_value":302.969587},{"country":"Lithuania","value":1059.366349,"adj_value":1059.366349},{"country":"Poland","value":5637.927607,"adj_value":5637.927607},{"country":"Russia","value":16366.16158,"adj_value":16366.16158},{"country":"Belarus","value":158.249733,"adj_value":158.249733},{"country":"Ukraine","value":850.788858,"adj_value":850.788858},{"country":"Armenia","value":62.46349,"adj_value":62.46349},{"country":"Azerbaijan","value":507.148173,"adj_value":507.148173},{"country":"Georgia","value":181.150349,"adj_value":181.150349},{"country":"Kazakhstan","value":816.099815,"adj_value":816.099815},{"country":"Kyrgyzstan","value":15.803561,"adj_value":15.803561},{"country":"Moldova","value":43.920552,"adj_value":43.920552},{"country":"Tajikistan","value":31.123801,"adj_value":31.123801},{"country":"Turkmenistan","value":55.976778,"adj_value":55.976778},{"country":"Uzbekistan","value":9.715446,"adj_value":9.715446},{"country":"Spain","value":14129.84151,"adj_value":14129.84151},{"country":"Portugal","value":3271.009123,"adj_value":3271.009123},{"country":"Gibraltar","value":1.82442,"adj_value":1.82442},{"country":"Malta","value":241.219869,"adj_value":241.219869},{"country":"San Marino","value":8.517198,"adj_value":8.517198},{"country":"Vatican City","value":1.218395,"adj_value":1.218395},{"country":"Italy","value":44159.01154,"adj_value":44159.01154},{"country":"Croatia","value":576.891578,"adj_value":576.891578},{"country":"Slovenia","value":678.110689,"adj_value":678.110689},{"country":"Bosnia and Herzegovina","value":78.282267,"adj_value":78.282267},{"country":"Macedonia","value":203.357353,"adj_value":203.357353},{"country":"Serbia","value":272.617662,"adj_value":272.617662},{"country":"Kosovo","value":2.38298,"adj_value":2.38298},{"country":"Montenegro","value":2.108687,"adj_value":2.108687},{"country":"Albania","value":160.081219,"adj_value":160.081219},{"country":"Greece","value":1356.447796,"adj_value":1356.447796},{"country":"Romania","value":2148.841567,"adj_value":2148.841567},{"country":"Bulgaria","value":597.694693,"adj_value":597.694693}]},{"continent":"Asia","children":[{"country":"Turkey","value":7880.91386,"adj_value":7880.91386},{"country":"Cyprus","value":31.98822,"adj_value":31.98822},{"country":"Syria","value":6.544106,"adj_value":6.544106},{"country":"Lebanon","value":93.219618,"adj_value":93.219618},{"country":"Iraq","value":4353.472677,"adj_value":4353.472677},{"country":"Iran","value":10.766314,"adj_value":10.766314},{"country":"Israel","value":24477.02161,"adj_value":24477.02161},{"country":"Gaza Strip admin. by Israel","value":0.012534,"adj_value":0.012534},{"country":"West Bank admin. by Israel","value":5.435229,"adj_value":5.435229},{"country":"Jordan","value":1491.618691,"adj_value":1491.618691},{"country":"Kuwait","value":4684.750276,"adj_value":4684.750276},{"country":"Saudi Arabia","value":22080.78482,"adj_value":22080.78482},{"country":"Qatar","value":1354.237789,"adj_value":1354.237789},{"country":"United Arab Emirates","value":2468.033306,"adj_value":2468.033306},{"country":"Republic of Yemen","value":48.270876,"adj_value":48.270876},{"country":"Oman","value":906.993161,"adj_value":906.993161},{"country":"Bahrain","value":902.425581,"adj_value":902.425581},{"country":"Afghanistan","value":23.454045,"adj_value":23.454045},{"country":"India","value":44791.64405,"adj_value":44791.64405},{"country":"Pakistan","value":3701.018609,"adj_value":3701.018609},{"country":"Nepal","value":86.959805,"adj_value":86.959805},{"country":"Bangladesh","value":5991.251839,"adj_value":5991.251839},{"country":"Sri Lanka","value":2889.92219,"adj_value":2889.92219},{"country":"Burma","value":143.796881,"adj_value":143.796881},{"country":"Thailand","value":28631.93281,"adj_value":28631.93281},{"country":"Vietnam","value":38019.69623,"adj_value":38019.69623},{"country":"Laos","value":45.189001,"adj_value":45.189001},{"country":"Cambodia","value":3025.433126,"adj_value":3025.433126},{"country":"Malaysia","value":33970.67872,"adj_value":33970.67872},{"country":"Singapore","value":18267.48494,"adj_value":18267.48494},{"country":"Indonesia","value":19601.54814,"adj_value":19601.54814},{"country":"East Timor","value":3.302038,"adj_value":3.302038},{"country":"Brunei","value":19.402766,"adj_value":19.402766},{"country":"Philippines","value":10233.69067,"adj_value":10233.69067},{"country":"Macau","value":121.919528,"adj_value":121.919528},{"country":"Bhutan","value":3.398158,"adj_value":3.398158},{"country":"Maldives","value":21.737873,"adj_value":21.737873},{"country":"China","value":483244.7019,"adj_value":483244.7019},{"country":"Mongolia","value":17.222375,"adj_value":17.222375},{"country":"Korea, North","value":0,"adj_value":0},{"country":"Korea, South","value":71758.69672,"adj_value":71758.69672},{"country":"Hong Kong","value":6795.630644,"adj_value":6795.630644},{"country":"Taiwan","value":40907.5936,"adj_value":40907.5936},{"country":"Japan","value":131364.1476,"adj_value":131364.1476}]},{"continent":"Australia","children":[{"country":"Australia","value":10894.02186,"adj_value":10894.02186},{"country":"Norfolk Island","value":1.217241,"adj_value":1.217241},{"country":"Cocos (Keeling) Islands","value":3.809085,"adj_value":3.809085},{"country":"Christmas Island","value":2.12084,"adj_value":2.12084},{"country":"Heard and McDonald Islands","value":0.006734,"adj_value":0.006734},{"country":"Papua New Guinea","value":90.809528,"adj_value":90.809528},{"country":"New Zealand","value":4292.770709,"adj_value":4292.770709},{"country":"Cook Islands","value":0.84788,"adj_value":0.84788},{"country":"Tokelau","value":1.848379,"adj_value":1.848379},{"country":"Niue","value":0.531806,"adj_value":0.531806},{"country":"Samoa","value":4.220542,"adj_value":4.220542},{"country":"Solomon Islands","value":3.521953,"adj_value":3.521953},{"country":"Vanuatu","value":3.67132,"adj_value":3.67132},{"country":"Pitcairn Islands","value":0.012162,"adj_value":0.012162},{"country":"Kiribati","value":2.728752,"adj_value":2.728752},{"country":"Tuvalu","value":0.228118,"adj_value":0.228118},{"country":"New Caledonia","value":47.038156,"adj_value":47.038156},{"country":"Wallis and Futuna","value":0.093303,"adj_value":0.093303},{"country":"French Polynesia","value":43.030557,"adj_value":43.030557},{"country":"Marshall Islands","value":29.067047,"adj_value":29.067047},{"country":"Micronesia","value":0.717108,"adj_value":0.717108},{"country":"Palau","value":0.544832,"adj_value":0.544832},{"country":"Nauru","value":0.52087,"adj_value":0.52087},{"country":"Fiji","value":202.639037,"adj_value":202.639037},{"country":"Tonga","value":2.442895,"adj_value":2.442895}]},{"continent":"Africa","children":[{"country":"Morocco","value":1011.85636,"adj_value":1011.85636},{"country":"Algeria","value":3371.552526,"adj_value":3371.552526},{"country":"Tunisia","value":546.271256,"adj_value":546.271256},{"country":"Libya","value":155.103895,"adj_value":155.103895},{"country":"Egypt","value":1405.853699,"adj_value":1405.853699},{"country":"Sudan","value":8.973253,"adj_value":8.973253},{"country":"South Sudan","value":0.192583,"adj_value":0.192583},{"country":"Western Sahara","value":0.044063,"adj_value":0.044063},{"country":"Equatorial Guinea","value":163.14305,"adj_value":163.14305},{"country":"Mauritania","value":1.173847,"adj_value":1.173847},{"country":"Cameroon","value":132.053379,"adj_value":132.053379},{"country":"Senegal","value":71.965108,"adj_value":71.965108},{"country":"Mali","value":4.504283,"adj_value":4.504283},{"country":"Guinea","value":79.616516,"adj_value":79.616516},{"country":"Sierra Leone","value":39.58921,"adj_value":39.58921},{"country":"Cote d'Ivoire","value":1027.88557,"adj_value":1027.88557},{"country":"Ghana","value":309.36766,"adj_value":309.36766},{"country":"Gambia","value":0.896754,"adj_value":0.896754},{"country":"Niger","value":4.184625,"adj_value":4.184625},{"country":"Togo","value":14.211452,"adj_value":14.211452},{"country":"Nigeria","value":1915.80016,"adj_value":1915.80016},{"country":"Central African Republic","value":3.12467,"adj_value":3.12467},{"country":"Gabon","value":337.024529,"adj_value":337.024529},{"country":"Chad","value":1303.322183,"adj_value":1303.322183},{"country":"St Helena","value":15.340188,"adj_value":15.340188},{"country":"Burkina Faso","value":3.592979,"adj_value":3.592979},{"country":"Benin","value":4.94488,"adj_value":4.94488},{"country":"Angola","value":2806.494883,"adj_value":2806.494883},{"country":"Congo (Brazzaville)","value":304.303884,"adj_value":304.303884},{"country":"Guinea-Bissau","value":0.05184,"adj_value":0.05184},{"country":"Cabo Verde","value":2.21905,"adj_value":2.21905},{"country":"Sao Tome and Principe","value":0.773369,"adj_value":0.773369},{"country":"Liberia","value":44.940717,"adj_value":44.940717},{"country":"Congo (Kinshasa)","value":153.738045,"adj_value":153.738045},{"country":"Burundi","value":8.427001,"adj_value":8.427001},{"country":"Rwanda","value":45.643909,"adj_value":45.643909},{"country":"Somalia","value":0.896112,"adj_value":0.896112},{"country":"Eritrea","value":0.106871,"adj_value":0.106871},{"country":"Ethiopia","value":310.269077,"adj_value":310.269077},{"country":"Djibouti","value":35.463684,"adj_value":35.463684},{"country":"Uganda","value":64.123855,"adj_value":64.123855},{"country":"Kenya","value":573.095415,"adj_value":573.095415},{"country":"Seychelles","value":5.83899,"adj_value":5.83899},{"country":"British Indian Ocean Terr.","value":15.818366,"adj_value":15.818366},{"country":"Tanzania","value":104.93518,"adj_value":104.93518},{"country":"Mauritius","value":395.664813,"adj_value":395.664813},{"country":"Mozambique","value":96.026702,"adj_value":96.026702},{"country":"Madagascar","value":319.783011,"adj_value":319.783011},{"country":"Mayotte","value":0.095927,"adj_value":0.095927},{"country":"Comoros","value":1.211821,"adj_value":1.211821},{"country":"Reunion","value":16.967288,"adj_value":16.967288},{"country":"French Southern and Antarctic","value":0.013953,"adj_value":0.013953},{"country":"South Africa","value":7314.612701,"adj_value":7314.612701},{"country":"Namibia","value":85.353831,"adj_value":85.353831},{"country":"Botswana","value":211.913954,"adj_value":211.913954},{"country":"Zambia","value":47.114386,"adj_value":47.114386},{"country":"Swaziland","value":21.49843,"adj_value":21.49843},{"country":"Zimbabwe","value":67.166669,"adj_value":67.166669},{"country":"Malawi","value":61.395881,"adj_value":61.395881},{"country":"Lesotho","value":331.955607,"adj_value":331.955607}]}]},{"type":"Exports","children":[{"continent":"North America","children":[{"country":"Greenland","value":8.076839,"adj_value":8.076839},{"country":"Canada","value":280609.0056,"adj_value":280609.0056},{"country":"St Pierre and Miquelon","value":0.227459,"adj_value":0.227459},{"country":"Mexico","value":235745.1375,"adj_value":235745.1375},{"country":"Guatemala","value":5806.713895,"adj_value":5806.713895},{"country":"Belize","value":285.240264,"adj_value":285.240264},{"country":"El Salvador","value":3240.284878,"adj_value":3240.284878},{"country":"Honduras","value":5214.668234,"adj_value":5214.668234},{"country":"Nicaragua","value":1267.532561,"adj_value":1267.532561},{"country":"Costa Rica","value":6079.415736,"adj_value":6079.415736},{"country":"Panama","value":7663.548283,"adj_value":7663.548283},{"country":"Bermuda","value":600.945255,"adj_value":600.945255},{"country":"Bahamas","value":2386.461864,"adj_value":2386.461864},{"country":"Cuba","value":180.215206,"adj_value":180.215206},{"country":"Jamaica","value":1716.030814,"adj_value":1716.030814},{"country":"Turks and Caicos Islands","value":279.728597,"adj_value":279.728597},{"country":"Cayman Islands","value":684.947958,"adj_value":684.947958},{"country":"Haiti","value":1140.574185,"adj_value":1140.574185},{"country":"Dominican Republic","value":7113.829302,"adj_value":7113.829302},{"country":"Anguilla","value":47.602633,"adj_value":47.602633},{"country":"British Virgin Islands","value":259.758571,"adj_value":259.758571},{"country":"St Kitts and Nevis","value":149.707108,"adj_value":149.707108},{"country":"Antigua and Barbuda","value":677.657633,"adj_value":677.657633},{"country":"Montserrat","value":6.640011,"adj_value":6.640011},{"country":"Dominica","value":67.312046,"adj_value":67.312046},{"country":"St Lucia","value":510.811024,"adj_value":510.811024},{"country":"St Vincent and the Grenadines","value":84.722498,"adj_value":84.722498},{"country":"Grenada","value":90.420149,"adj_value":90.420149},{"country":"Barbados","value":595.966307,"adj_value":595.966307},{"country":"Trinidad and Tobago","value":2511.195111,"adj_value":2511.195111},{"country":"Sint Maarten","value":741.201231,"adj_value":741.201231},{"country":"Curacao","value":522.079698,"adj_value":522.079698},{"country":"Aruba","value":1167.632524,"adj_value":1167.632524},{"country":"Guadeloupe","value":100.959536,"adj_value":100.959536},{"country":"Martinique","value":119.577165,"adj_value":119.577165}]},{"continent":"South America","children":[{"country":"Colombia","value":16286.7799,"adj_value":16286.7799},{"country":"Venezuela","value":8345.880233,"adj_value":8345.880233},{"country":"Guyana","value":368.129666,"adj_value":368.129666},{"country":"Suriname","value":443.643313,"adj_value":443.643313},{"country":"French Guiana","value":1073.642767,"adj_value":1073.642767},{"country":"Ecuador","value":5794.812688,"adj_value":5794.812688},{"country":"Peru","value":8725.607473,"adj_value":8725.607473},{"country":"Bolivia","value":931.431709,"adj_value":931.431709},{"country":"Chile","value":15445.13797,"adj_value":15445.13797},{"country":"Brazil","value":31650.62387,"adj_value":31650.62387},{"country":"Paraguay","value":1514.300292,"adj_value":1514.300292},{"country":"Uruguay","value":1295.148749,"adj_value":1295.148749},{"country":"Argentina","value":9341.210651,"adj_value":9341.210651},{"country":"Falkland Islands(Islas Malvin","value":2.917708,"adj_value":2.917708}]},{"continent":"Europe","children":[{"country":"Iceland","value":415.45785,"adj_value":415.45785},{"country":"Sweden","value":3940.8105,"adj_value":3940.8105},{"country":"Svalbard, Jan Mayen Island","value":0.380164,"adj_value":0.380164},{"country":"Norway","value":3570.63315,"adj_value":3570.63315},{"country":"Finland","value":1558.146898,"adj_value":1558.146898},{"country":"Faroe Islands","value":2.336863,"adj_value":2.336863},{"country":"Denmark","value":2202.093582,"adj_value":2202.093582},{"country":"United Kingdom","value":56114.61886,"adj_value":56114.61886},{"country":"Ireland","value":8930.773509,"adj_value":8930.773509},{"country":"Netherlands","value":40196.15629,"adj_value":40196.15629},{"country":"Belgium","value":34159.97966,"adj_value":34159.97966},{"country":"Luxembourg","value":1394.17473,"adj_value":1394.17473},{"country":"Andorra","value":3.336817,"adj_value":3.336817},{"country":"Monaco","value":71.128048,"adj_value":71.128048},{"country":"France","value":30103.5212,"adj_value":30103.5212},{"country":"Germany","value":49970.80411,"adj_value":49970.80411},{"country":"Austria","value":4024.435888,"adj_value":4024.435888},{"country":"Czech Republic","value":1976.037865,"adj_value":1976.037865},{"country":"Slovakia","value":379.469169,"adj_value":379.469169},{"country":"Hungary","value":1715.278037,"adj_value":1715.278037},{"country":"Liechtenstein","value":35.930552,"adj_value":35.930552},{"country":"Switzerland","value":22185.27991,"adj_value":22185.27991},{"country":"Estonia","value":288.143789,"adj_value":288.143789},{"country":"Latvia","value":294.787977,"adj_value":294.787977},{"country":"Lithuania","value":527.67763,"adj_value":527.67763},{"country":"Poland","value":3715.441301,"adj_value":3715.441301},{"country":"Russia","value":7087.111574,"adj_value":7087.111574},{"country":"Belarus","value":59.235752,"adj_value":59.235752},{"country":"Ukraine","value":862.088348,"adj_value":862.088348},{"country":"Armenia","value":50.24617,"adj_value":50.24617},{"country":"Azerbaijan","value":477.316108,"adj_value":477.316108},{"country":"Georgia","value":340.502111,"adj_value":340.502111},{"country":"Kazakhstan","value":510.479071,"adj_value":510.479071},{"country":"Kyrgyzstan","value":32.003481,"adj_value":32.003481},{"country":"Moldova","value":16.163682,"adj_value":16.163682},{"country":"Tajikistan","value":18.985373,"adj_value":18.985373},{"country":"Turkmenistan","value":80.839805,"adj_value":80.839805},{"country":"Uzbekistan","value":137.962928,"adj_value":137.962928},{"country":"Spain","value":10310.27052,"adj_value":10310.27052},{"country":"Portugal","value":942.466275,"adj_value":942.466275},{"country":"Gibraltar","value":1972.99261,"adj_value":1972.99261},{"country":"Malta","value":490.660579,"adj_value":490.660579},{"country":"San Marino","value":5.011879,"adj_value":5.011879},{"country":"Vatican City","value":2.226547,"adj_value":2.226547},{"country":"Italy","value":16204.22609,"adj_value":16204.22609},{"country":"Croatia","value":331.976272,"adj_value":331.976272},{"country":"Slovenia","value":346.040192,"adj_value":346.040192},{"country":"Bosnia and Herzegovina","value":27.586061,"adj_value":27.586061},{"country":"Macedonia","value":30.678977,"adj_value":30.678977},{"country":"Serbia","value":126.25142,"adj_value":126.25142},{"country":"Kosovo","value":19.743318,"adj_value":19.743318},{"country":"Montenegro","value":11.133957,"adj_value":11.133957},{"country":"Albania","value":30.952665,"adj_value":30.952665},{"country":"Greece","value":725.699147,"adj_value":725.699147},{"country":"Romania","value":753.718827,"adj_value":753.718827},{"country":"Bulgaria","value":289.09201,"adj_value":289.09201}]},{"continent":"Asia","children":[{"country":"Turkey","value":9502.498123,"adj_value":9502.498123},{"country":"Cyprus","value":101.831614,"adj_value":101.831614},{"country":"Syria","value":3.072304,"adj_value":3.072304},{"country":"Lebanon","value":1272.487166,"adj_value":1272.487166},{"country":"Iraq","value":1971.478767,"adj_value":1971.478767},{"country":"Iran","value":281.512074,"adj_value":281.512074},{"country":"Israel","value":13538.69482,"adj_value":13538.69482},{"country":"Gaza Strip admin. by Israel","value":0.183934,"adj_value":0.183934},{"country":"West Bank admin. by Israel","value":0.903282,"adj_value":0.903282},{"country":"Jordan","value":1358.977191,"adj_value":1358.977191},{"country":"Kuwait","value":2739.289578,"adj_value":2739.289578},{"country":"Saudi Arabia","value":19738.98459,"adj_value":19738.98459},{"country":"Qatar","value":4222.426394,"adj_value":4222.426394},{"country":"United Arab Emirates","value":23003.59562,"adj_value":23003.59562},{"country":"Republic of Yemen","value":158.039977,"adj_value":158.039977},{"country":"Oman","value":2355.271013,"adj_value":2355.271013},{"country":"Bahrain","value":1270.662445,"adj_value":1270.662445},{"country":"Afghanistan","value":478.851271,"adj_value":478.851271},{"country":"India","value":21451.87992,"adj_value":21451.87992},{"country":"Pakistan","value":1837.506933,"adj_value":1837.506933},{"country":"Nepal","value":36.405446,"adj_value":36.405446},{"country":"Bangladesh","value":942.540067,"adj_value":942.540067},{"country":"Sri Lanka","value":361.920786,"adj_value":361.920786},{"country":"Burma","value":227.140755,"adj_value":227.140755},{"country":"Thailand","value":11230.56974,"adj_value":11230.56974},{"country":"Vietnam","value":7087.524038,"adj_value":7087.524038},{"country":"Laos","value":24.584007,"adj_value":24.584007},{"country":"Cambodia","value":391.045876,"adj_value":391.045876},{"country":"Malaysia","value":12277.22614,"adj_value":12277.22614},{"country":"Singapore","value":28472.07098,"adj_value":28472.07098},{"country":"Indonesia","value":7120.940688,"adj_value":7120.940688},{"country":"East Timor","value":2.690584,"adj_value":2.690584},{"country":"Brunei","value":133.449998,"adj_value":133.449998},{"country":"Philippines","value":7907.893167,"adj_value":7907.893167},{"country":"Macau","value":542.354584,"adj_value":542.354584},{"country":"Bhutan","value":2.64104,"adj_value":2.64104},{"country":"Maldives","value":35.143208,"adj_value":35.143208},{"country":"China","value":116071.7696,"adj_value":116071.7696},{"country":"Mongolia","value":69.161103,"adj_value":69.161103},{"country":"Korea, North","value":4.751721,"adj_value":4.751721},{"country":"Korea, South","value":43445.54748,"adj_value":43445.54748},{"country":"Hong Kong","value":37167.02295,"adj_value":37167.02295},{"country":"Taiwan","value":25860.08634,"adj_value":25860.08634},{"country":"Japan","value":62442.64646,"adj_value":62442.64646}]},{"continent":"Australia","children":[{"country":"Australia","value":25035.79015,"adj_value":25035.79015},{"country":"Norfolk Island","value":0.350312,"adj_value":0.350312},{"country":"Cocos (Keeling) Islands","value":0.55762,"adj_value":0.55762},{"country":"Christmas Island","value":1.551179,"adj_value":1.551179},{"country":"Heard and McDonald Islands","value":0.913419,"adj_value":0.913419},{"country":"Papua New Guinea","value":207.793894,"adj_value":207.793894},{"country":"New Zealand","value":3631.061903,"adj_value":3631.061903},{"country":"Cook Islands","value":4.249826,"adj_value":4.249826},{"country":"Tokelau","value":0.341222,"adj_value":0.341222},{"country":"Niue","value":0.071371,"adj_value":0.071371},{"country":"Samoa","value":22.71966,"adj_value":22.71966},{"country":"Solomon Islands","value":5.861309,"adj_value":5.861309},{"country":"Vanuatu","value":5.867876,"adj_value":5.867876},{"country":"Pitcairn Islands","value":0.017405,"adj_value":0.017405},{"country":"Kiribati","value":7.320835,"adj_value":7.320835},{"country":"Tuvalu","value":0.625636,"adj_value":0.625636},{"country":"New Caledonia","value":88.651277,"adj_value":88.651277},{"country":"Wallis and Futuna","value":0.376841,"adj_value":0.376841},{"country":"French Polynesia","value":120.047865,"adj_value":120.047865},{"country":"Marshall Islands","value":53.912135,"adj_value":53.912135},{"country":"Micronesia","value":40.032614,"adj_value":40.032614},{"country":"Palau","value":25.693198,"adj_value":25.693198},{"country":"Nauru","value":1.73365,"adj_value":1.73365},{"country":"Fiji","value":56.904585,"adj_value":56.904585},{"country":"Tonga","value":13.817538,"adj_value":13.817538}]},{"continent":"Africa","children":[{"country":"Morocco","value":1625.204959,"adj_value":1625.204959},{"country":"Algeria","value":1875.734479,"adj_value":1875.734479},{"country":"Tunisia","value":602.412017,"adj_value":602.412017},{"country":"Libya","value":242.951645,"adj_value":242.951645},{"country":"Egypt","value":4752.983685,"adj_value":4752.983685},{"country":"Sudan","value":59.514997,"adj_value":59.514997},{"country":"South Sudan","value":19.613532,"adj_value":19.613532},{"country":"Western Sahara","value":0.032113,"adj_value":0.032113},{"country":"Equatorial Guinea","value":161.964373,"adj_value":161.964373},{"country":"Mauritania","value":126.280667,"adj_value":126.280667},{"country":"Cameroon","value":224.961698,"adj_value":224.961698},{"country":"Senegal","value":196.428411,"adj_value":196.428411},{"country":"Mali","value":72.426079,"adj_value":72.426079},{"country":"Guinea","value":135.350114,"adj_value":135.350114},{"country":"Sierra Leone","value":77.325724,"adj_value":77.325724},{"country":"Cote d'Ivoire","value":266.335569,"adj_value":266.335569},{"country":"Ghana","value":949.913963,"adj_value":949.913963},{"country":"Gambia","value":37.899622,"adj_value":37.899622},{"country":"Niger","value":71.493157,"adj_value":71.493157},{"country":"Togo","value":311.819809,"adj_value":311.819809},{"country":"Nigeria","value":3437.952784,"adj_value":3437.952784},{"country":"Central African Republic","value":34.309874,"adj_value":34.309874},{"country":"Gabon","value":203.872443,"adj_value":203.872443},{"country":"Chad","value":56.591528,"adj_value":56.591528},{"country":"St Helena","value":3.720487,"adj_value":3.720487},{"country":"Burkina Faso","value":53.875343,"adj_value":53.875343},{"country":"Benin","value":631.462518,"adj_value":631.462518},{"country":"Angola","value":1166.161667,"adj_value":1166.161667},{"country":"Congo (Brazzaville)","value":249.220232,"adj_value":249.220232},{"country":"Guinea-Bissau","value":2.13532,"adj_value":2.13532},{"country":"Cabo Verde","value":7.32166,"adj_value":7.32166},{"country":"Sao Tome and Principe","value":0.853963,"adj_value":0.853963},{"country":"Liberia","value":135.807551,"adj_value":135.807551},{"country":"Congo (Kinshasa)","value":136.189374,"adj_value":136.189374},{"country":"Burundi","value":5.650192,"adj_value":5.650192},{"country":"Rwanda","value":14.28771,"adj_value":14.28771},{"country":"Somalia","value":45.026584,"adj_value":45.026584},{"country":"Eritrea","value":3.497538,"adj_value":3.497538},{"country":"Ethiopia","value":1555.249376,"adj_value":1555.249376},{"country":"Djibouti","value":144.711021,"adj_value":144.711021},{"country":"Uganda","value":88.315069,"adj_value":88.315069},{"country":"Kenya","value":943.436657,"adj_value":943.436657},{"country":"Seychelles","value":18.542809,"adj_value":18.542809},{"country":"British Indian Ocean Terr.","value":0.581016,"adj_value":0.581016},{"country":"Tanzania","value":172.803054,"adj_value":172.803054},{"country":"Mauritius","value":58.435311,"adj_value":58.435311},{"country":"Mozambique","value":264.203995,"adj_value":264.203995},{"country":"Madagascar","value":54.553731,"adj_value":54.553731},{"country":"Mayotte","value":5.697333,"adj_value":5.697333},{"country":"Comoros","value":1.507078,"adj_value":1.507078},{"country":"Reunion","value":6.905271,"adj_value":6.905271},{"country":"French Southern and Antarctic","value":8.026602,"adj_value":8.026602},{"country":"South Africa","value":5458.29362,"adj_value":5458.29362},{"country":"Namibia","value":127.603603,"adj_value":127.603603},{"country":"Botswana","value":39.04197,"adj_value":39.04197},{"country":"Zambia","value":84.170835,"adj_value":84.170835},{"country":"Swaziland","value":28.521751,"adj_value":28.521751},{"country":"Zimbabwe","value":37.834783,"adj_value":37.834783},{"country":"Malawi","value":37.201602,"adj_value":37.201602},{"country":"Lesotho","value":0.881897,"adj_value":0.881897}]}]}]},{"year":"1985","children":[{"type":"Imports","children":[{"continent":"North America","children":[{"country":"Canada","value":69006.4,"adj_value":152007.2979},{"country":"Mexico","value":19131.7,"adj_value":42143.30876},{"country":"Guatemala","value":409,"adj_value":900.9452},{"country":"El Salvador","value":395.6,"adj_value":871.42768},{"country":"Honduras","value":375.4,"adj_value":826.93112},{"country":"Costa Rica","value":501.3,"adj_value":1104.26364},{"country":"Panama","value":410.6,"adj_value":904.46968},{"country":"Bahamas","value":626.3,"adj_value":1379.61364},{"country":"Jamaica","value":272.7,"adj_value":600.70356},{"country":"Haiti","value":389.6,"adj_value":858.21088},{"country":"Dominican Republic","value":982.3,"adj_value":2163.81044},{"country":"Trinidad and Tobago","value":1258.4,"adj_value":2772.00352},{"country":"Netherlands Antilles","value":808,"adj_value":1779.8624}]},{"continent":"South America","children":[{"country":"Colombia","value":1330.7,"adj_value":2931.26596},{"country":"Venezuela","value":6537.1,"adj_value":14399.92388},{"country":"Ecuador","value":1836.5,"adj_value":4045.4422},{"country":"Peru","value":1086.6,"adj_value":2393.56248},{"country":"Chile","value":745.2,"adj_value":1641.52656},{"country":"Brazil","value":7526.2,"adj_value":16578.71336},{"country":"Paraguay","value":23.6,"adj_value":51.98608},{"country":"Uruguay","value":556.6,"adj_value":1226.07848},{"country":"Argentina","value":1069.3,"adj_value":2355.45404}]},{"continent":"Europe","children":[{"country":"Iceland","value":247.8,"adj_value":545.85384},{"country":"Sweden","value":4123.7,"adj_value":9083.68636},{"country":"Norway","value":1164.3,"adj_value":2564.72004},{"country":"Finland","value":895.2,"adj_value":1971.94656},{"country":"Denmark","value":1664.4,"adj_value":3666.34032},{"country":"United Kingdom","value":14937.2,"adj_value":32903.66416},{"country":"Ireland","value":901.1,"adj_value":1984.94308},{"country":"Netherlands","value":4081.3,"adj_value":8990.28764},{"country":"Belgium","value":3355.2,"adj_value":7390.83456},{"country":"France","value":9482,"adj_value":20886.9496},{"country":"Germany","value":20239.2,"adj_value":44582.90976},{"country":"Austria","value":833.7,"adj_value":1836.47436},{"country":"Hungary","value":218.3,"adj_value":480.87124},{"country":"Switzerland","value":3476.1,"adj_value":7657.15308},{"country":"Poland","value":220.2,"adj_value":485.05656},{"country":"USSR","value":408.5,"adj_value":899.8438},{"country":"Spain","value":2515.2,"adj_value":5540.48256},{"country":"Portugal","value":546,"adj_value":1202.7288},{"country":"Italy","value":9673.8,"adj_value":21309.44664},{"country":"Yugoslavia (former)","value":542.2,"adj_value":1194.35816},{"country":"Greece","value":394.7,"adj_value":869.44516}]},{"continent":"Asia","children":[{"country":"Turkey","value":601.9,"adj_value":1325.86532},{"country":"Iran","value":725.1,"adj_value":1597.25028},{"country":"Israel","value":2122.5,"adj_value":4675.443},{"country":"Kuwait","value":184,"adj_value":405.3152},{"country":"Saudi Arabia","value":1907.1,"adj_value":4200.95988},{"country":"United Arab Emirates","value":671,"adj_value":1478.0788},{"country":"Bahrain","value":83.3,"adj_value":183.49324},{"country":"India","value":2294.7,"adj_value":5054.76516},{"country":"Pakistan","value":273.9,"adj_value":603.34692},{"country":"Bangladesh","value":196,"adj_value":431.7488},{"country":"Sri Lanka","value":281.9,"adj_value":620.96932},{"country":"Thailand","value":1428.3,"adj_value":3146.25924},{"country":"Malaysia","value":2299.9,"adj_value":5066.21972},{"country":"Singapore","value":4259.9,"adj_value":9383.70772},{"country":"Indonesia","value":4568.9,"adj_value":10064.37292},{"country":"Philippines","value":2145,"adj_value":4725.006},{"country":"Macau","value":341.9,"adj_value":753.13732},{"country":"China","value":3861.7,"adj_value":8506.55276},{"country":"Korea, South","value":10013.3,"adj_value":22057.29724},{"country":"Hong Kong","value":8396.4,"adj_value":18495.58992},{"country":"Taiwan","value":16396.3,"adj_value":36117.76964},{"country":"Japan","value":68782.9,"adj_value":151514.9721}]},{"continent":"Australia","children":[{"country":"Australia","value":2836.3,"adj_value":6247.80164},{"country":"New Zealand","value":857,"adj_value":1887.7996}]},{"continent":"Africa","children":[{"country":"Algeria","value":2333,"adj_value":5139.1324},{"country":"Egypt","value":79.1,"adj_value":174.24148},{"country":"Cote d'Ivoire","value":524.8,"adj_value":1156.02944},{"country":"Nigeria","value":3001.9,"adj_value":6612.58532},{"country":"Gabon","value":501.9,"adj_value":1105.58532},{"country":"Angola","value":1053.6,"adj_value":2320.87008},{"country":"Congo (Brazzaville)","value":609.3,"adj_value":1342.16604},{"country":"Congo (Kinshasa)","value":400.7,"adj_value":882.66196},{"country":"South Africa","value":2070.9,"adj_value":4561.77852}]}]},{"type":"Exports","children":[{"continent":"North America","children":[{"country":"Canada","value":47251,"adj_value":104084.5028},{"country":"Mexico","value":13634.7,"adj_value":30034.51716},{"country":"Guatemala","value":404.6,"adj_value":891.25288},{"country":"El Salvador","value":445.5,"adj_value":981.3474},{"country":"Honduras","value":307.9,"adj_value":678.24212},{"country":"Costa Rica","value":421.7,"adj_value":928.92076},{"country":"Panama","value":674.8,"adj_value":1486.44944},{"country":"Bahamas","value":786.3,"adj_value":1732.06164},{"country":"Jamaica","value":404.3,"adj_value":890.59204},{"country":"Haiti","value":395.9,"adj_value":872.08852},{"country":"Dominican Republic","value":742,"adj_value":1634.4776},{"country":"Trinidad and Tobago","value":503.7,"adj_value":1109.55036},{"country":"Netherlands Antilles","value":427.5,"adj_value":941.697}]},{"continent":"South America","children":[{"country":"Colombia","value":1467.7,"adj_value":3233.04956},{"country":"Venezuela","value":3399.4,"adj_value":7488.19832},{"country":"Ecuador","value":591.1,"adj_value":1302.07508},{"country":"Peru","value":495.9,"adj_value":1092.36852},{"country":"Chile","value":682.2,"adj_value":1502.75016},{"country":"Brazil","value":3139.6,"adj_value":6915.91088},{"country":"Paraguay","value":98.9,"adj_value":217.85692},{"country":"Uruguay","value":64.3,"adj_value":141.64004},{"country":"Argentina","value":721.3,"adj_value":1588.87964}]},{"continent":"Europe","children":[{"country":"Iceland","value":38,"adj_value":83.7064},{"country":"Sweden","value":1924.9,"adj_value":4240.16972},{"country":"Norway","value":665.9,"adj_value":1466.84452},{"country":"Finland","value":437.7,"adj_value":964.16556},{"country":"Denmark","value":705.7,"adj_value":1554.51596},{"country":"United Kingdom","value":11272.8,"adj_value":24831.72384},{"country":"Ireland","value":1341.8,"adj_value":2955.71704},{"country":"Netherlands","value":7269,"adj_value":16012.1532},{"country":"Belgium","value":4917.7,"adj_value":10832.70956},{"country":"France","value":6095.6,"adj_value":13427.38768},{"country":"Germany","value":9050.2,"adj_value":19935.78056},{"country":"Austria","value":441.2,"adj_value":971.87536},{"country":"Hungary","value":94.5,"adj_value":208.1646},{"country":"Switzerland","value":2287.7,"adj_value":5039.34556},{"country":"Poland","value":237.9,"adj_value":524.04612},{"country":"USSR","value":2422.8,"adj_value":5336.94384},{"country":"Spain","value":2524.1,"adj_value":5560.08748},{"country":"Portugal","value":694.5,"adj_value":1529.8446},{"country":"Italy","value":4625.2,"adj_value":10188.39056},{"country":"Yugoslavia (former)","value":594.7,"adj_value":1310.00516},{"country":"Greece","value":497.8,"adj_value":1096.55384}]},{"continent":"Asia","children":[{"country":"Turkey","value":1294.6,"adj_value":2851.74488},{"country":"Iran","value":73.9,"adj_value":162.78692},{"country":"Israel","value":2579.6,"adj_value":5682.34288},{"country":"Kuwait","value":550.6,"adj_value":1212.86168},{"country":"Saudi Arabia","value":4474.3,"adj_value":9855.98804},{"country":"United Arab Emirates","value":596.5,"adj_value":1313.9702},{"country":"Bahrain","value":107,"adj_value":235.6996},{"country":"India","value":1641.9,"adj_value":3616.77732},{"country":"Pakistan","value":1041.7,"adj_value":2294.65676},{"country":"Bangladesh","value":218.9,"adj_value":482.19292},{"country":"Sri Lanka","value":72.8,"adj_value":160.36384},{"country":"Thailand","value":849.1,"adj_value":1870.39748},{"country":"Malaysia","value":1539.2,"adj_value":3390.54976},{"country":"Singapore","value":3475.6,"adj_value":7656.05168},{"country":"Indonesia","value":795,"adj_value":1751.226},{"country":"Philippines","value":1379.3,"adj_value":3038.32204},{"country":"Macau","value":1.1,"adj_value":2.42308},{"country":"China","value":3855.7,"adj_value":8493.33596},{"country":"Korea, South","value":5956.3,"adj_value":13120.53764},{"country":"Hong Kong","value":2785.9,"adj_value":6136.78052},{"country":"Taiwan","value":4700,"adj_value":10353.16},{"country":"Japan","value":22630.9,"adj_value":49851.34652}]},{"continent":"Australia","children":[{"country":"Australia","value":5440.4,"adj_value":11984.11312},{"country":"New Zealand","value":727.5,"adj_value":1602.537}]},{"continent":"Africa","children":[{"country":"Algeria","value":430.1,"adj_value":947.42428},{"country":"Egypt","value":2322.6,"adj_value":5116.22328},{"country":"Cote d'Ivoire","value":69.7,"adj_value":153.53516},{"country":"Nigeria","value":675.7,"adj_value":1488.43196},{"country":"Gabon","value":91.2,"adj_value":200.89536},{"country":"Angola","value":136.9,"adj_value":301.56332},{"country":"Congo (Brazzaville)","value":19.4,"adj_value":42.73432},{"country":"Congo (Kinshasa)","value":101.5,"adj_value":223.5842},{"country":"South Africa","value":1205,"adj_value":2654.374}]}]}]}]}
<!DOCTYPE html>
<meta charset="utf-8">
<style>
label {
font-family: sans-serif;
font-size: 14px;
position: absolute;
left: 92px; top: 26px;
}
.axis .domain { display: none; }
.axis line { stroke: #ccc; }
.axis.x0 text { font-weight: 700; }
.hover-active rect { opacity: .75; }
.hover-active rect.hover { opacity: 1; }
</style>
<body>
<label><input type="checkbox" id="inflation-adjusted" checked /> Adjust for inflation</label>
<script src="//d3js.org/d3.v4.min.js"></script>
<script>
var margin = { top: 15, right: 15, bottom: 40, left: 60 }
var width = 960 - margin.left - margin.right
var height = 500 - margin.top - margin.bottom
var orderedContinents = ['Asia', 'North America', 'Europe', 'South America', 'Africa', 'Australia']
var color = d3.scaleOrdinal()
.domain(orderedContinents)
.range(['#66c2a5', '#fc8d62', '#8da0cb', '#e78ac3', '#a6d854', '#ffd92f'])
var dollarFormat = d3.format('$,')
var tickFormat = function (n) {
return n === 0 ? '$0'
: n < 1000000 ? dollarFormat(n / 1000) + ' billion'
: dollarFormat(n / 1000000) + ' trillion'
}
var options = {
key: 'adj_value',
country: null
}
d3.json('data.json', initialize)
function initialize(error, data) {
if (error) { throw error }
var root = d3.hierarchy(data).sum(function (d) { return d[options.key] })
var yearData = root.children
yearData.sort(function (a, b) { return a.data.year - b.data.year })
var svg = d3.select('body')
.append('svg')
.attr('width', width + margin.left + margin.right)
.attr('height', height + margin.top + margin.bottom)
.append('g')
.attr('transform', 'translate(' + margin.left + ',' + margin.top + ')')
var x0 = d3.scaleBand()
.domain(yearData.map(function (d) { return d.data.year }).sort())
.range([0, width])
.padding(0.15)
var x1 = d3.scaleBand()
.domain(['Imports', 'Exports'])
.rangeRound([0, x0.bandwidth()])
.paddingInner(0.1)
var y = d3.scaleLinear()
.domain([0, d3.max(yearData, function (d) {
return d3.max(d.children, function (e) { return e.value })
})]).nice()
.range([0, height])
var x0Axis = d3.axisBottom()
.scale(x0)
.tickSize(0)
var x1Axis = d3.axisBottom()
.scale(x1)
var yAxis = d3.axisLeft()
.tickSize(-width)
.tickFormat(tickFormat)
.scale(y.copy().range([height, 0]))
svg.append('g')
.attr('class', 'x0 axis')
.attr('transform', 'translate(0,' + (height + 22) + ')')
.call(x0Axis)
var gy = svg.append('g')
.attr('class', 'y axis')
.call(yAxis)
var years = svg.selectAll('.year')
.data(yearData, function (d) { return d.data.year })
.enter().append('g')
.attr('class', 'year')
.attr('transform', function (d) {
return 'translate(' + x0(d.data.year) + ',0)'
})
years.append('g')
.attr('class', 'x1 axis')
.attr('transform', 'translate(0,' + height + ')')
.call(x1Axis)
d3.select('#inflation-adjusted').on('change', function () {
options.key = this.checked ? 'adj_value' : 'value'
update()
})
update()
function sum(d) {
return !options.country || options.country === d.country ? d[options.key] : 0
}
function update() {
root.sum(sum)
var t = d3.transition()
var typeData = d3.merge(yearData.map(function (d) { return d.children }))
y.domain([0, d3.max(typeData.map(function (d) { return d.value }))]).nice()
// We use a copied Y scale to invert the range for display purposes
yAxis.scale(y.copy().range([height, 0]))
gy.transition(t).call(yAxis)
var types = years.selectAll('.type')
.data(function (d) { return d.children },
function (d) { return d.data.type })
.each(function (d) {
// UPDATE
// The copied branches are orphaned from the larger hierarchy, and must be
// updated separately (see note at L152).
d.treemapRoot.sum(sum)
d.treemapRoot.children.forEach(function (d) {
d.sort(function (a, b) { return b.value - a.value })
})
})
types = types.enter().append('g')
.attr('class', 'type')
.attr('transform', function (d) {
return 'translate(' + x1(d.data.type) + ',' + height + ')'
})
.each(function (d) {
// ENTER
// Note that we can use .each on selections as a way to perform operations
// at a given depth of the hierarchy tree.
d.children.sort(function (a, b) {
return orderedContinents.indexOf(b.data.continent) -
orderedContinents.indexOf(a.data.continent)
})
d.children.forEach(function (d) {
d.sort(function (a, b) { return b.value - a.value })
})
d.treemap = d3.treemap().tile(d3.treemapResquarify)
// The treemap layout must be given a root node, so we make a copy of our
// child node, which creates a new tree from the branch.
d.treemapRoot = d.copy()
})
.merge(types)
.each(function (d) {
// UPDATE + ENTER
d.treemap.size([x1.bandwidth(), y(d.value)])(d.treemapRoot)
})
// d3.hierarchy gives us a convenient way to access the parent datum. This line
// adds an index property to each node that we'll use for the transition delay.
root.each(function (d) { d.index = d.parent ? d.parent.children.indexOf(d) : 0 })
types.transition(t)
.delay(function (d, i) { return d.parent.index * 150 + i * 50 })
.attr('transform', function (d) {
return 'translate(' + x1(d.data.type) + ',' + (height - y(d.value)) + ')'
})
var continents = types.selectAll('.continent')
// Note that we're using our copied branch.
.data(function (d) { return d.treemapRoot.children },
function (d) { return d.data.continent })
continents = continents.enter().append('g')
.attr('class', 'continent')
.merge(continents)
var countries = continents.selectAll('.country')
.data(function (d) { return d.children },
function (d) { return d.data.country })
var enterCountries = countries.enter().append('rect')
.attr('class', 'country')
.attr('x', function (d) { return d.value ? d.x0 : x1.bandwidth() / 2 })
.attr('width', function (d) { return d.value ? d.x1 - d.x0 : 0 })
.attr('y', 0)
.attr('height', 0)
.style('fill', function (d) { return color(d.parent.data.continent) })
countries = countries.merge(enterCountries)
enterCountries
.on('mouseover', function (d) {
svg.classed('hover-active', true)
countries.classed('hover', function (e) {
return e.data.country === d.data.country
})
})
.on('mouseout', function () {
svg.classed('hover-active', false)
countries.classed('hover', false)
})
.on('click', function (d) {
options.country = options.country === d.data.country ? null : d.data.country
update()
})
.append('title')
.text(function (d) { return d.data.country })
countries.filter(function (d) { return d.data.country === options.country })
.each(function (d) { d3.select(this.parentNode).raise() })
.raise()
countries
.transition(t)
.attr('x', function (d) { return d.value ? d.x0 : x1.bandwidth() / 2 })
.attr('width', function (d) { return d.value ? d.x1 - d.x0 : 0 })
.attr('y', function (d) { return d.value ? d.y0 : d.parent.parent.y1 / 2 })
.attr('height', function (d) { return d.value ? d.y1 - d.y0 : 0 })
}
}
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment