Instantly share code, notes, and snippets.

@PatMartin /.block
Last active Aug 7, 2017

Embed
What would you like to do?
Bump Chart
license: mit

Bump Chart

Bump charts are really a specialized case of the line chart which are used to view the change in rank over time.

This chart depicts a handful of countries from the World Database and their change in ranking relative to the GDP per capita.

GDP per capita is a measure of average income per person in a country. GDP stands for Gross domestic product. This measures National income / National Output and National expenditure. GDP per capita divides the GDP by the population. Real GDP per capita takes into account inflation.

The bump chart is useful for indicating rank relations between different entities, in this case a country's or region's GDP per capita.

Bump charts depict relationships via rankings without displaying the magnitudes between them.

They are useful for indicating things which are ranked such as universities or sports teams.

This variant is based upon James Curley's excellent prototype.

Features

  • Highlight on hover.
  • Animation
  • Configurable lines, colors, circles, etc...

References

<!DOCTYPE html>
<meta charset="utf-8">
<style>
html, body, #BumpChartParent {
height: 100%;
min-height: 100%;
width: 100%;
min-width: 100%;
}
</style>
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.css">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.4/jquery-ui.theme.min.css">
<link rel="stylesheet" href="https://dexjs.net/js/dex-jquery.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.css"/>
<link rel="stylesheet" href="https://dexjs.net/js/dex-bootstrap.css">
<link rel="stylesheet" href="https://dexjs.net/js/dex.css">
<body>
<div id="BumpChartParent"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<script src="https://dexjs.net/js/dex-jquery.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://dexjs.net/js/dex-bootstrap.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
<script src="https://dexjs.net/js/dex-libs.js"></script>
<script src="https://dexjs.net/js/dex.js"></script>
<script>
var bumpchart = dex.charts.d3.BumpChart({
'parent': '#BumpChartParent',
'color': dex.color.getColormap('crayola120'),
'line.stroke.width': 1,
'circle.r': 3,
'circle.stroke.width': 2,
'label.font.size': 8,
'margin.top': 15,
'margin.left': 40,
'margin.right': 170,
'csv': getData(),
'xAxisLabel.text': 'GDP Ranking Per Capita / Year'
}
).render();
function getData() {
var csv = new dex.csv({
'header': ["Country", "Year", "GDP Per Capita"],
'data': [
["European Union", "1980", "17489.4301"],
["European Union", "1981", "17474.039"],
["European Union", "1982", "17602.3763"],
["European Union", "1983", "17892.2831"],
["European Union", "1984", "18290.3454"],
["European Union", "1985", "18709.7317"],
["European Union", "1986", "19157.0893"],
["European Union", "1987", "19679.3897"],
["European Union", "1988", "20490.3271"],
["European Union", "1989", "21175.7173"],
["European Union", "1990", "21723.2835"],
["European Union", "1991", "21994.678"],
["European Union", "1992", "22168.0738"],
["European Union", "1993", "22074.0192"],
["European Union", "1994", "22656.8046"],
["European Union", "1995", "23300.1244"],
["European Union", "1996", "23736.8304"],
["European Union", "1997", "24360.0292"],
["European Union", "1998", "25066.1239"],
["European Union", "1999", "25770.0534"],
["European Union", "2000", "26728.4514"],
["European Union", "2001", "27259.7397"],
["European Union", "2002", "27552.2299"],
["European Union", "2003", "27814.9301"],
["European Union", "2004", "28403.0028"],
["European Union", "2005", "28883.0852"],
["European Union", "2006", "29736.7926"],
["European Union", "2007", "30540.2984"],
["European Union", "2008", "30562.715"],
["European Union", "2009", "29134.8187"],
["European Union", "2010", "29681.322"],
["European Union", "2011", "30147.7916"],
["European Union", "2012", "30041.2667"],
["European Union", "2013", "30029.0919"],
["European Union", "2014", "30342.8039"],
["World", "1980", "5096.0124"],
["World", "1981", "5111.4094"],
["World", "1982", "5043.6794"],
["World", "1983", "5088.3844"],
["World", "1984", "5230.926"],
["World", "1985", "5337.3237"],
["World", "1986", "5411.2703"],
["World", "1987", "5508.5982"],
["World", "1988", "5667.1888"],
["World", "1989", "5782.2916"],
["World", "1990", "5853.9914"],
["World", "1991", "5839.9856"],
["World", "1992", "5861.1514"],
["World", "1993", "5866.5545"],
["World", "1994", "5959.4488"],
["World", "1995", "6049.1335"],
["World", "1996", "6159.4607"],
["World", "1997", "6297.3325"],
["World", "1998", "6369.2926"],
["World", "1999", "6494.7848"],
["World", "2000", "6682.7634"],
["World", "2001", "6717.7977"],
["World", "2002", "6771.2216"],
["World", "2003", "6871.2359"],
["World", "2004", "7067.2543"],
["World", "2005", "7230.5629"],
["World", "2006", "7433.8185"],
["World", "2007", "7633.0134"],
["World", "2008", "7649.6226"],
["World", "2009", "7401.238"],
["World", "2010", "7611.1073"],
["World", "2011", "7734.9021"],
["World", "2012", "7818.1663"],
["World", "2013", "7907.7979"],
["World", "2014", "8008.6323"],
["Canada", "1980", "24248.5519"],
["Canada", "1981", "24788.5664"],
["Canada", "1982", "23751.8116"],
["Canada", "1983", "24118.221"],
["Canada", "1984", "25218.3523"],
["Canada", "1985", "26154.1587"],
["Canada", "1986", "26461.8198"],
["Canada", "1987", "27172.6891"],
["Canada", "1988", "28094.9612"],
["Canada", "1989", "28253.8985"],
["Canada", "1990", "27870.9367"],
["Canada", "1991", "26911.3721"],
["Canada", "1992", "26810.1956"],
["Canada", "1993", "27209.8356"],
["Canada", "1994", "28176.8196"],
["Canada", "1995", "28709.6909"],
["Canada", "1996", "28879.1428"],
["Canada", "1997", "29790.9086"],
["Canada", "1998", "30756.3256"],
["Canada", "1999", "32027.2154"],
["Canada", "2000", "33372.0295"],
["Canada", "2001", "33594.6117"],
["Canada", "2002", "34227.4418"],
["Canada", "2003", "34540.6041"],
["Canada", "2004", "35269.5707"],
["Canada", "2005", "36028.2325"],
["Canada", "2006", "36679.3689"],
["Canada", "2007", "37054.8783"],
["Canada", "2008", "37086.8982"],
["Canada", "2009", "35670.5799"],
["Canada", "2010", "36465.7117"],
["Canada", "2011", "37176.1568"],
["Canada", "2012", "37442.3294"],
["Canada", "2013", "37753.6328"],
["Canada", "2014", "38258.7476"],
["China", "1980", "220.6781"],
["China", "1981", "229.1384"],
["China", "1982", "246.1467"],
["China", "1983", "268.7013"],
["China", "1984", "305.5277"],
["China", "1985", "342.2447"],
["China", "1986", "367.2888"],
["China", "1987", "403.8069"],
["China", "1988", "442.2613"],
["China", "1989", "453.8882"],
["China", "1990", "464.872"],
["China", "1991", "501.0716"],
["China", "1992", "565.6323"],
["China", "1993", "637.1018"],
["China", "1994", "712.3256"],
["China", "1995", "782.0937"],
["China", "1996", "850.7504"],
["China", "1997", "919.7862"],
["China", "1998", "982.5481"],
["China", "1999", "1048.2844"],
["China", "2000", "1127.7261"],
["China", "2001", "1212.4698"],
["China", "2002", "1313.862"],
["China", "2003", "1436.535"],
["China", "2004", "1571.9113"],
["China", "2005", "1740.0967"],
["China", "2006", "1949.9656"],
["China", "2007", "2215.163"],
["China", "2008", "2415.9258"],
["China", "2009", "2625.9082"],
["China", "2010", "2891.0906"],
["China", "2011", "3150.166"],
["China", "2012", "3377.8153"],
["China", "2013", "3619.4465"],
["China", "2014", "3862.9165"],
["Denmark", "1980", "30204.9914"],
["Denmark", "1981", "29945.6071"],
["Denmark", "1982", "31080.6117"],
["Denmark", "1983", "31926.7405"],
["Denmark", "1984", "33274.0968"],
["Denmark", "1985", "34599.1662"],
["Denmark", "1986", "36263.0361"],
["Denmark", "1987", "36322.1397"],
["Denmark", "1988", "36252.7003"],
["Denmark", "1989", "36438.527"],
["Denmark", "1990", "36964.1564"],
["Denmark", "1991", "37347.7981"],
["Denmark", "1992", "37959.8589"],
["Denmark", "1993", "37799.699"],
["Denmark", "1994", "39753.804"],
["Denmark", "1995", "40759.4325"],
["Denmark", "1996", "41704.8222"],
["Denmark", "1997", "42886.182"],
["Denmark", "1998", "43678.5448"],
["Denmark", "1999", "44817.6543"],
["Denmark", "2000", "46341.7738"],
["Denmark", "2001", "46556.1218"],
["Denmark", "2002", "46624.0162"],
["Denmark", "2003", "46678.7486"],
["Denmark", "2004", "47786.9214"],
["Denmark", "2005", "48816.8359"],
["Denmark", "2006", "50504.0334"],
["Denmark", "2007", "50695.0828"],
["Denmark", "2008", "50036.2622"],
["Denmark", "2009", "47237.0164"],
["Denmark", "2010", "47791.9181"],
["Denmark", "2011", "48143.9138"],
["Denmark", "2012", "47648.8352"],
["Denmark", "2013", "47219.8907"],
["Denmark", "2014", "47525.3451"],
["Germany", "1980", "23206.6199"],
["Germany", "1981", "23293.933"],
["Germany", "1982", "23224.0378"],
["Germany", "1983", "23651.1358"],
["Germany", "1984", "24403.0024"],
["Germany", "1985", "25026.9587"],
["Germany", "1986", "25587.6965"],
["Germany", "1987", "25906.647"],
["Germany", "1988", "26762.3083"],
["Germany", "1989", "27590.9175"],
["Germany", "1990", "28791.5747"],
["Germany", "1991", "30042.6319"],
["Germany", "1992", "30388.6543"],
["Germany", "1993", "29900.8753"],
["Germany", "1994", "30529.5733"],
["Germany", "1995", "30968.9147"],
["Germany", "1996", "31131.9589"],
["Germany", "1997", "31661.2927"],
["Germany", "1998", "32283.1763"],
["Germany", "1999", "32903.4127"],
["Germany", "2000", "33832.1762"],
["Germany", "2001", "34347.9605"],
["Germany", "2002", "34290.2604"],
["Germany", "2003", "34027.9875"],
["Germany", "2004", "34433.5795"],
["Germany", "2005", "34696.6209"],
["Germany", "2006", "36021.0592"],
["Germany", "2007", "37245.3092"],
["Germany", "2008", "37720.0748"],
["Germany", "2009", "35690.9569"],
["Germany", "2010", "37204.0766"],
["Germany", "2011", "38555.966"],
["Germany", "2012", "39372.51"],
["Germany", "2013", "39382.1593"],
["Germany", "2014", "39891.5377"],
["Iceland", "1980", "35251.7613"],
["Iceland", "1981", "36338.4089"],
["Iceland", "1982", "36628.4774"],
["Iceland", "1983", "35369.1228"],
["Iceland", "1984", "36439.903"],
["Iceland", "1985", "37344.4992"],
["Iceland", "1986", "39396.5273"],
["Iceland", "1987", "42297.3606"],
["Iceland", "1988", "41602.6909"],
["Iceland", "1989", "41196.8564"],
["Iceland", "1990", "41355.7385"],
["Iceland", "1991", "40787.7561"],
["Iceland", "1992", "38919.4601"],
["Iceland", "1993", "39031.7435"],
["Iceland", "1994", "40091.3072"],
["Iceland", "1995", "39920.9006"],
["Iceland", "1996", "41605.8974"],
["Iceland", "1997", "43293.9546"],
["Iceland", "1998", "45625.5195"],
["Iceland", "1999", "46953.774"],
["Iceland", "2000", "48503.0324"],
["Iceland", "2001", "49663.4426"],
["Iceland", "2002", "49445.2736"],
["Iceland", "2003", "50450.3963"],
["Iceland", "2004", "54120.3502"],
["Iceland", "2005", "56445.5361"],
["Iceland", "2006", "57455.1741"],
["Iceland", "2007", "61337.6486"],
["Iceland", "2008", "61097.9091"],
["Iceland", "2009", "58039.418"],
["Iceland", "2010", "56037.1569"],
["Iceland", "2011", "56976.9306"],
["Iceland", "2012", "57344.9824"],
["Iceland", "2013", "59018.2324"],
["Iceland", "2014", "59394.5977"],
["India", "1980", "292.5427"],
["India", "1981", "303.0157"],
["India", "1982", "306.3597"],
["India", "1983", "321.182"],
["India", "1984", "325.914"],
["India", "1985", "335.3974"],
["India", "1986", "343.7171"],
["India", "1987", "349.6399"],
["India", "1988", "375.1712"],
["India", "1989", "389.1907"],
["India", "1990", "402.2979"],
["India", "1991", "398.3536"],
["India", "1992", "411.8734"],
["India", "1993", "423.0335"],
["India", "1994", "442.5253"],
["India", "1995", "466.9924"],
["India", "1996", "492.8034"],
["India", "1997", "503.2405"],
["India", "1998", "524.5917"],
["India", "1999", "560.7487"],
["India", "2000", "572.0591"],
["India", "2001", "589.3574"],
["India", "2002", "601.5065"],
["India", "2003", "638.1453"],
["India", "2004", "677.6694"],
["India", "2005", "729.0007"],
["India", "2006", "784.3604"],
["India", "2007", "848.3913"],
["India", "2008", "868.6017"],
["India", "2009", "928.9775"],
["India", "2010", "1010.3092"],
["India", "2011", "1063.1599"],
["India", "2012", "1102.9103"],
["India", "2013", "1164.3428"],
["India", "2014", "1233.9493"],
["Indonesia", "1980", "548.404"],
["Indonesia", "1981", "579.3852"],
["Indonesia", "1982", "572.4085"],
["Indonesia", "1983", "606.8794"],
["Indonesia", "1984", "636.2698"],
["Indonesia", "1985", "644.6045"],
["Indonesia", "1986", "669.3026"],
["Indonesia", "1987", "691.1221"],
["Indonesia", "1988", "721.3044"],
["Indonesia", "1989", "772.5634"],
["Indonesia", "1990", "827.2374"],
["Indonesia", "1991", "885.5803"],
["Indonesia", "1992", "933.6072"],
["Indonesia", "1993", "985.0105"],
["Indonesia", "1994", "1042.5312"],
["Indonesia", "1995", "1112.7501"],
["Indonesia", "1996", "1180.0088"],
["Indonesia", "1997", "1217.6396"],
["Indonesia", "1998", "1042.896"],
["Indonesia", "1999", "1036.5839"],
["Indonesia", "2000", "1072.6936"],
["Indonesia", "2001", "1096.7014"],
["Indonesia", "2002", "1130.6478"],
["Indonesia", "2003", "1168.8941"],
["Indonesia", "2004", "1211.4189"],
["Indonesia", "2005", "1263.4814"],
["Indonesia", "2006", "1315.4884"],
["Indonesia", "2007", "1380.6918"],
["Indonesia", "2008", "1444.6677"],
["Indonesia", "2009", "1491.8619"],
["Indonesia", "2010", "1564.0661"],
["Indonesia", "2011", "1638.8927"],
["Indonesia", "2012", "1715.0926"],
["Indonesia", "2013", "1787.501"],
["Indonesia", "2014", "1853.8075"],
["Iran, Islamic Rep.", "1980", "2547.3128"],
["Iran, Islamic Rep.", "1981", "2310.143"],
["Iran, Islamic Rep.", "1982", "2733.0556"],
["Iran, Islamic Rep.", "1983", "2914.3608"],
["Iran, Islamic Rep.", "1984", "2597.948"],
["Iran, Islamic Rep.", "1985", "2542.2807"],
["Iran, Islamic Rep.", "1986", "2204.271"],
["Iran, Islamic Rep.", "1987", "2116.7402"],
["Iran, Islamic Rep.", "1988", "1917.3871"],
["Iran, Islamic Rep.", "1989", "1971.7864"],
["Iran, Islamic Rep.", "1990", "2182.6676"],
["Iran, Islamic Rep.", "1991", "2412.1705"],
["Iran, Islamic Rep.", "1992", "2455.6289"],
["Iran, Islamic Rep.", "1993", "2391.4589"],
["Iran, Islamic Rep.", "1994", "2323.6061"],
["Iran, Islamic Rep.", "1995", "2347.1552"],
["Iran, Islamic Rep.", "1996", "2455.9837"],
["Iran, Islamic Rep.", "1997", "2444.5127"],
["Iran, Islamic Rep.", "1998", "2448.6816"],
["Iran, Islamic Rep.", "1999", "2452.8297"],
["Iran, Islamic Rep.", "2000", "2554.0364"],
["Iran, Islamic Rep.", "2001", "2577.4531"],
["Iran, Islamic Rep.", "2002", "2749.3075"],
["Iran, Islamic Rep.", "2003", "2950.8499"],
["Iran, Islamic Rep.", "2004", "3043.2931"],
["Iran, Islamic Rep.", "2005", "3135.1874"],
["Iran, Islamic Rep.", "2006", "3276.5958"],
["Iran, Islamic Rep.", "2007", "3535.5305"],
["Iran, Islamic Rep.", "2008", "3528.3478"],
["Iran, Islamic Rep.", "2009", "3568.6747"],
["Iran, Islamic Rep.", "2010", "3758.2021"],
["Iran, Islamic Rep.", "2011", "3850.8432"],
["Iran, Islamic Rep.", "2012", "3550.4215"],
["Iran, Islamic Rep.", "2013", "3437.6185"],
["Iran, Islamic Rep.", "2014", "3541.4283"],
["Iraq", "1980", "1604.2979"],
["Iraq", "1981", "1548.0571"],
["Iraq", "1982", "1557.8099"],
["Iraq", "1983", "1318.7831"],
["Iraq", "1984", "1266.7373"],
["Iraq", "1985", "1254.4908"],
["Iraq", "1986", "1283.0205"],
["Iraq", "1987", "1371.7805"],
["Iraq", "1988", "1341.5502"],
["Iraq", "1989", "1269.9457"],
["Iraq", "1990", "1954.861"],
["Iraq", "1991", "684.2549"],
["Iraq", "1992", "881.9392"],
["Iraq", "1993", "1115.6446"],
["Iraq", "1994", "1124.0818"],
["Iraq", "1995", "1113.2293"],
["Iraq", "1996", "1198.1281"],
["Iraq", "1997", "1407.7684"],
["Iraq", "1998", "1840.1998"],
["Iraq", "1999", "2098.7315"],
["Iraq", "2000", "2066.3062"],
["Iraq", "2001", "2054.3327"],
["Iraq", "2002", "1860.0574"],
["Iraq", "2003", "1211.0266"],
["Iraq", "2004", "1817.9432"],
["Iraq", "2005", "1848.9682"],
["Iraq", "2006", "1985.404"],
["Iraq", "2007", "1962.7216"],
["Iraq", "2008", "2070.3312"],
["Iraq", "2009", "2082.6417"],
["Iraq", "2010", "2151.5522"],
["Iraq", "2011", "2245.3935"],
["Iraq", "2012", "2482.5585"],
["Iraq", "2013", "2567.3653"],
["Iraq", "2014", "2438.5616"],
["Ireland", "1980", "16571.5847"],
["Ireland", "1981", "16923.2832"],
["Ireland", "1982", "17146.8434"],
["Ireland", "1983", "16984.1186"],
["Ireland", "1984", "17614.1751"],
["Ireland", "1985", "18128.6383"],
["Ireland", "1986", "18042.7877"],
["Ireland", "1987", "18882.1816"],
["Ireland", "1988", "19952.495"],
["Ireland", "1989", "21196.3415"],
["Ireland", "1990", "22971.5366"],
["Ireland", "1991", "23280.5724"],
["Ireland", "1992", "23895.321"],
["Ireland", "1993", "24416.3801"],
["Ireland", "1994", "25720.1589"],
["Ireland", "1995", "28053.9471"],
["Ireland", "1996", "30412.6681"],
["Ireland", "1997", "33474.8168"],
["Ireland", "1998", "36080.1738"],
["Ireland", "1999", "39515.1631"],
["Ireland", "2000", "42980.2899"],
["Ireland", "2001", "44769.0507"],
["Ireland", "2002", "46634.3294"],
["Ireland", "2003", "47643.6643"],
["Ireland", "2004", "48841.2463"],
["Ireland", "2005", "50815.6417"],
["Ireland", "2006", "52584.9931"],
["Ireland", "2007", "53918.1461"],
["Ireland", "2008", "51687.6397"],
["Ireland", "2009", "48280.4357"],
["Ireland", "2010", "48209.4853"],
["Ireland", "2011", "49277.3851"],
["Ireland", "2012", "49243.1505"],
["Ireland", "2013", "49825.6451"],
["Ireland", "2014", "52252.3469"],
["Italy", "1980", "20991.4351"],
["Italy", "1981", "21143.2519"],
["Italy", "1982", "21214.9751"],
["Italy", "1983", "21455.2328"],
["Italy", "1984", "22142.3974"],
["Italy", "1985", "22755.3834"],
["Italy", "1986", "23404.9056"],
["Italy", "1987", "24149.5163"],
["Italy", "1988", "25150.2824"],
["Italy", "1989", "25982.9736"],
["Italy", "1990", "26476.7643"],
["Italy", "1991", "26865.4897"],
["Italy", "1992", "27071.2277"],
["Italy", "1993", "26823.9586"],
["Italy", "1994", "27395.3668"],
["Italy", "1995", "28185.7785"],
["Italy", "1996", "28540.4626"],
["Italy", "1997", "29049.0565"],
["Italy", "1998", "29510.3422"],
["Italy", "1999", "29965.9919"],
["Italy", "2000", "31063.6989"],
["Italy", "2001", "31596.6456"],
["Italy", "2002", "31628.7477"],
["Italy", "2003", "31536.5345"],
["Italy", "2004", "31829.182"],
["Italy", "2005", "31973.9339"],
["Italy", "2006", "32517.5788"],
["Italy", "2007", "32830.7346"],
["Italy", "2008", "32271.572"],
["Italy", "2009", "30363.9864"],
["Italy", "2010", "30788.5386"],
["Italy", "2011", "30915.9972"],
["Italy", "2012", "29963.9292"],
["Italy", "2013", "29101.0188"],
["Italy", "2014", "28451.1158"],
["Jordan", "1980", "2109.6193"],
["Jordan", "1981", "2124.9023"],
["Jordan", "1982", "2192.3729"],
["Jordan", "1983", "2148.4767"],
["Jordan", "1984", "2246.8353"],
["Jordan", "1985", "2242.9976"],
["Jordan", "1986", "2312.8496"],
["Jordan", "1987", "2294.5284"],
["Jordan", "1988", "2174.1117"],
["Jordan", "1989", "1815.1496"],
["Jordan", "1990", "1766.9125"],
["Jordan", "1991", "1608.8212"],
["Jordan", "1992", "1813.0755"],
["Jordan", "1993", "1813.0442"],
["Jordan", "1994", "1830.7593"],
["Jordan", "1995", "1881.8109"],
["Jordan", "1996", "1863.3132"],
["Jordan", "1997", "1873.0566"],
["Jordan", "1998", "1878.4522"],
["Jordan", "1999", "1894.3327"],
["Jordan", "2000", "1926.4867"],
["Jordan", "2001", "1978.5445"],
["Jordan", "2002", "2042.8772"],
["Jordan", "2003", "2076.0165"],
["Jordan", "2004", "2200.0987"],
["Jordan", "2005", "2326.4952"],
["Jordan", "2006", "2458.0036"],
["Jordan", "2007", "2600.2507"],
["Jordan", "2008", "2728.0731"],
["Jordan", "2009", "2814.7235"],
["Jordan", "2010", "2818.0864"],
["Jordan", "2011", "2827.1258"],
["Jordan", "2012", "2839.1498"],
["Jordan", "2013", "2855.3011"],
["Jordan", "2014", "2878.2156"],
["Japan", "1980", "20962.9179"],
["Japan", "1981", "21677.7544"],
["Japan", "1982", "22258.1836"],
["Japan", "1983", "22783.6449"],
["Japan", "1984", "23650.1671"],
["Japan", "1985", "24994.7385"],
["Japan", "1986", "25546.2304"],
["Japan", "1987", "26465.0408"],
["Japan", "1988", "28235.6945"],
["Japan", "1989", "29630.4403"],
["Japan", "1990", "31174.9624"],
["Japan", "1991", "32111.5096"],
["Japan", "1992", "32294.2466"],
["Japan", "1993", "32269.7437"],
["Japan", "1994", "32437.719"],
["Japan", "1995", "32941.7623"],
["Japan", "1996", "33716.0867"],
["Japan", "1997", "34172.5498"],
["Japan", "1998", "33397.1498"],
["Japan", "1999", "33269.7752"],
["Japan", "2000", "33963.9778"],
["Japan", "2001", "34002.6777"],
["Japan", "2002", "34021.9296"],
["Japan", "2003", "34521.2891"],
["Japan", "2004", "35324.3506"],
["Japan", "2005", "35781.1701"],
["Japan", "2006", "36363.8586"],
["Japan", "2007", "37118.3453"],
["Japan", "2008", "36713.9241"],
["Japan", "2009", "34689.0882"],
["Japan", "2010", "36296.3154"],
["Japan", "2011", "36203.4339"],
["Japan", "2012", "36912.1985"],
["Japan", "2013", "37573.3737"],
["Japan", "2014", "37595.1709"],
["Jamaica", "1980", "3087.6878"],
["Jamaica", "1981", "3126.2421"],
["Jamaica", "1982", "3136.1077"],
["Jamaica", "1983", "3137.9294"],
["Jamaica", "1984", "3036.5466"],
["Jamaica", "1985", "2907.3749"],
["Jamaica", "1986", "2930.7859"],
["Jamaica", "1987", "3140.9613"],
["Jamaica", "1988", "3257.7543"],
["Jamaica", "1989", "3464.2452"],
["Jamaica", "1990", "3586.9556"],
["Jamaica", "1991", "3735.4284"],
["Jamaica", "1992", "3781.753"],
["Jamaica", "1993", "4107.4059"],
["Jamaica", "1994", "4132.1019"],
["Jamaica", "1995", "4195.1014"],
["Jamaica", "1996", "4140.3736"],
["Jamaica", "1997", "4054.1525"],
["Jamaica", "1998", "3924.3352"],
["Jamaica", "1999", "3938.4785"],
["Jamaica", "2000", "3949.917"],
["Jamaica", "2001", "3978.2025"],
["Jamaica", "2002", "4042.6135"],
["Jamaica", "2003", "4175.7526"],
["Jamaica", "2004", "4215.8493"],
["Jamaica", "2005", "4238.3158"],
["Jamaica", "2006", "4345.6704"],
["Jamaica", "2007", "4392.2716"],
["Jamaica", "2008", "4345.1187"],
["Jamaica", "2009", "4138.1991"],
["Jamaica", "2010", "4062.2851"],
["Jamaica", "2011", "4118.4903"],
["Jamaica", "2012", "4081.5905"],
["Jamaica", "2013", "4093.4792"],
["Jamaica", "2014", "4111.7599"],
["Israel", "1980", "11385.669"],
["Israel", "1981", "11735.7407"],
["Israel", "1982", "11725.7186"],
["Israel", "1983", "11918.5893"],
["Israel", "1984", "11870.1559"],
["Israel", "1985", "12064.7528"],
["Israel", "1986", "12448.7296"],
["Israel", "1987", "13129.716"],
["Israel", "1988", "13175.3382"],
["Israel", "1989", "13066.2935"],
["Israel", "1990", "13534.0627"],
["Israel", "1991", "13724.9208"],
["Israel", "1992", "14004.9369"],
["Israel", "1993", "14395.3996"],
["Israel", "1994", "14999.8074"],
["Israel", "1995", "17792.9414"],
["Israel", "1996", "18400.7309"],
["Israel", "1997", "18679.317"],
["Israel", "1998", "19033.2435"],
["Israel", "1999", "19248.0985"],
["Israel", "2000", "20422.4465"],
["Israel", "2001", "19994.8817"],
["Israel", "2002", "19582.8221"],
["Israel", "2003", "19458.8146"],
["Israel", "2004", "20095.5763"],
["Israel", "2005", "20611.1793"],
["Israel", "2006", "21424.8825"],
["Israel", "2007", "22339.0082"],
["Israel", "2008", "22617.0492"],
["Israel", "2009", "22363.0212"],
["Israel", "2010", "23169.6525"],
["Israel", "2011", "23889.528"],
["Israel", "2012", "24127.9503"],
["Israel", "2013", "24451.8259"],
["Israel", "2014", "24600.8642"],
["Korea, Rep.", "1980", "3925.7599"],
["Korea, Rep.", "1981", "4151.1507"],
["Korea, Rep.", "1982", "4426.3955"],
["Korea, Rep.", "1983", "4892.9521"],
["Korea, Rep.", "1984", "5309.4265"],
["Korea, Rep.", "1985", "5650.1874"],
["Korea, Rep.", "1986", "6278.9886"],
["Korea, Rep.", "1987", "6980.0671"],
["Korea, Rep.", "1988", "7718.0261"],
["Korea, Rep.", "1989", "8158.0609"],
["Korea, Rep.", "1990", "8829.1344"],
["Korea, Rep.", "1991", "9591.2938"],
["Korea, Rep.", "1992", "10039.3853"],
["Korea, Rep.", "1993", "10566.9294"],
["Korea, Rep.", "1994", "11378.7828"],
["Korea, Rep.", "1995", "12270.8861"],
["Korea, Rep.", "1996", "13027.9409"],
["Korea, Rep.", "1997", "13650.6227"],
["Korea, Rep.", "1998", "12778.066"],
["Korea, Rep.", "1999", "14049.0124"],
["Korea, Rep.", "2000", "15162.4031"],
["Korea, Rep.", "2001", "15731.6705"],
["Korea, Rep.", "2002", "16806.934"],
["Korea, Rep.", "2003", "17214.199"],
["Korea, Rep.", "2004", "17989.9694"],
["Korea, Rep.", "2005", "18657.5213"],
["Korea, Rep.", "2006", "19528.3849"],
["Korea, Rep.", "2007", "20499.6474"],
["Korea, Rep.", "2008", "20928.4494"],
["Korea, Rep.", "2009", "20976.5263"],
["Korea, Rep.", "2010", "22236.0949"],
["Korea, Rep.", "2011", "22883.8299"],
["Korea, Rep.", "2012", "23303.0859"],
["Korea, Rep.", "2013", "23875.2313"],
["Korea, Rep.", "2014", "24565.6075"],
["Luxembourg", "1980", "33129.0952"],
["Luxembourg", "1981", "32849.5955"],
["Luxembourg", "1982", "33193.9562"],
["Luxembourg", "1983", "34177.0793"],
["Luxembourg", "1984", "36254.3111"],
["Luxembourg", "1985", "37194.4746"],
["Luxembourg", "1986", "40724.8158"],
["Luxembourg", "1987", "42060.373"],
["Luxembourg", "1988", "45290.2335"],
["Luxembourg", "1989", "49246.4766"],
["Luxembourg", "1990", "51221.1671"],
["Luxembourg", "1991", "54908.2763"],
["Luxembourg", "1992", "55169.6819"],
["Luxembourg", "1993", "56720.6224"],
["Luxembourg", "1994", "58091.35"],
["Luxembourg", "1995", "58101.4"],
["Luxembourg", "1996", "58184.337"],
["Luxembourg", "1997", "60871.3633"],
["Luxembourg", "1998", "64021.3921"],
["Luxembourg", "1999", "68481.0304"],
["Luxembourg", "2000", "73270.6317"],
["Luxembourg", "2001", "73962.2918"],
["Luxembourg", "2002", "75841.5663"],
["Luxembourg", "2003", "75972.707"],
["Luxembourg", "2004", "78204.4695"],
["Luxembourg", "2005", "79494.2063"],
["Luxembourg", "2006", "82234.6311"],
["Luxembourg", "2007", "87772.6891"],
["Luxembourg", "2008", "85490.7751"],
["Luxembourg", "2009", "79409.756"],
["Luxembourg", "2010", "82399.635"],
["Luxembourg", "2011", "82656.0187"],
["Luxembourg", "2012", "80011.1031"],
["Luxembourg", "2013", "81581.4802"],
["Luxembourg", "2014", "82960.0989"],
["Mexico", "1980", "6773.8044"],
["Mexico", "1981", "7199.8347"],
["Mexico", "1982", "6997.1068"],
["Mexico", "1983", "6560.1298"],
["Mexico", "1984", "6654.4337"],
["Mexico", "1985", "6685.6142"],
["Mexico", "1986", "6302.8505"],
["Mexico", "1987", "6289.8093"],
["Mexico", "1988", "6240.1917"],
["Mexico", "1989", "6372.0943"],
["Mexico", "1990", "6561.4968"],
["Mexico", "1991", "6702.4844"],
["Mexico", "1992", "6808.2903"],
["Mexico", "1993", "6946.2796"],
["Mexico", "1994", "7135.1837"],
["Mexico", "1995", "6598.725"],
["Mexico", "1996", "6858.9233"],
["Mexico", "1997", "7205.8352"],
["Mexico", "1998", "7415.4197"],
["Mexico", "1999", "7490.3259"],
["Mexico", "2000", "7768.7517"],
["Mexico", "2001", "7615.7109"],
["Mexico", "2002", "7529.0626"],
["Mexico", "2003", "7542.5805"],
["Mexico", "2004", "7767.0801"],
["Mexico", "2005", "7893.9682"],
["Mexico", "2006", "8162.6844"],
["Mexico", "2007", "8295.1033"],
["Mexico", "2008", "8275.4653"],
["Mexico", "2009", "7758.5499"],
["Mexico", "2010", "8037.9381"],
["Mexico", "2011", "8231.7046"],
["Mexico", "2012", "8444.5069"],
["Mexico", "2013", "8446.8014"],
["Mexico", "2014", "8521.8924"],
["Pakistan", "1980", "406.1197"],
["Pakistan", "1981", "424.0582"],
["Pakistan", "1982", "436.9658"],
["Pakistan", "1983", "451.2398"],
["Pakistan", "1984", "458.5811"],
["Pakistan", "1985", "477.4337"],
["Pakistan", "1986", "487.6062"],
["Pakistan", "1987", "502.7281"],
["Pakistan", "1988", "524.4224"],
["Pakistan", "1989", "534.0566"],
["Pakistan", "1990", "541.9162"],
["Pakistan", "1991", "553.7694"],
["Pakistan", "1992", "580.7891"],
["Pakistan", "1993", "575.9748"],
["Pakistan", "1994", "582.5829"],
["Pakistan", "1995", "596.3573"],
["Pakistan", "1996", "609.8503"],
["Pakistan", "1997", "600.9852"],
["Pakistan", "1998", "601.5218"],
["Pakistan", "1999", "609.0317"],
["Pakistan", "2000", "620.774"],
["Pakistan", "2001", "619.4963"],
["Pakistan", "2002", "626.2207"],
["Pakistan", "2003", "643.2823"],
["Pakistan", "2004", "676.8184"],
["Pakistan", "2005", "714.0368"],
["Pakistan", "2006", "742.803"],
["Pakistan", "2007", "762.8927"],
["Pakistan", "2008", "760.0347"],
["Pakistan", "2009", "765.4859"],
["Pakistan", "2010", "761.6709"],
["Pakistan", "2011", "766.2662"],
["Pakistan", "2012", "776.4952"],
["Pakistan", "2013", "793.409"],
["Pakistan", "2014", "813.7064"],
["Norway", "1980", "36625.6135"],
["Norway", "1981", "37083.1727"],
["Norway", "1982", "37034.174"],
["Norway", "1983", "38378.1915"],
["Norway", "1984", "40586.3131"],
["Norway", "1985", "42712.0979"],
["Norway", "1986", "44280.4347"],
["Norway", "1987", "44846.4419"],
["Norway", "1988", "44491.9477"],
["Norway", "1989", "44768.7103"],
["Norway", "1990", "45477.0587"],
["Norway", "1991", "46657.0249"],
["Norway", "1992", "48046.6539"],
["Norway", "1993", "49120.4428"],
["Norway", "1994", "51310.7135"],
["Norway", "1995", "53165.4222"],
["Norway", "1996", "55556.2578"],
["Norway", "1997", "58175.9327"],
["Norway", "1998", "59348.2802"],
["Norway", "1999", "60129.9849"],
["Norway", "2000", "61655.8468"],
["Norway", "2001", "62623.8641"],
["Norway", "2002", "63182.5548"],
["Norway", "2003", "63390.8339"],
["Norway", "2004", "65512.223"],
["Norway", "2005", "66775.3944"],
["Norway", "2006", "67826.2534"],
["Norway", "2007", "69094.7451"],
["Norway", "2008", "68501.185"],
["Norway", "2009", "66545.1967"],
["Norway", "2010", "66117.007"],
["Norway", "2011", "65897.1559"],
["Norway", "2012", "66825.0197"],
["Norway", "2013", "66511.8613"],
["Norway", "2014", "67228.4077"],
["Philippines", "1980", "1108.6081"],
["Philippines", "1981", "1115.5239"],
["Philippines", "1982", "1124.6648"],
["Philippines", "1983", "1114.8738"],
["Philippines", "1984", "1005.4961"],
["Philippines", "1985", "907.1565"],
["Philippines", "1986", "913.2665"],
["Philippines", "1987", "927.5629"],
["Philippines", "1988", "964.4242"],
["Philippines", "1989", "998.0355"],
["Philippines", "1990", "1002.5125"],
["Philippines", "1991", "972.1915"],
["Philippines", "1992", "951.9563"],
["Philippines", "1993", "949.1173"],
["Philippines", "1994", "967.7462"],
["Philippines", "1995", "989.8789"],
["Philippines", "1996", "1024.2549"],
["Philippines", "1997", "1053.6894"],
["Philippines", "1998", "1024.9694"],
["Philippines", "1999", "1033.9964"],
["Philippines", "2000", "1056.7917"],
["Philippines", "2001", "1064.5322"],
["Philippines", "2002", "1080.4091"],
["Philippines", "2003", "1111.1822"],
["Philippines", "2004", "1162.8378"],
["Philippines", "2005", "1196.5398"],
["Philippines", "2006", "1238.4061"],
["Philippines", "2007", "1299.9763"],
["Philippines", "2008", "1333.9943"],
["Philippines", "2009", "1329.513"],
["Philippines", "2010", "1409.498"],
["Philippines", "2011", "1438.4731"],
["Philippines", "2012", "1510.3867"],
["Philippines", "2013", "1591.19"],
["Philippines", "2014", "1662.0741"],
["Portugal", "1980", "10574.3795"],
["Portugal", "1981", "10652.7146"],
["Portugal", "1982", "10813.8789"],
["Portugal", "1983", "10745.1889"],
["Portugal", "1984", "10502.7153"],
["Portugal", "1985", "10768.0775"],
["Portugal", "1986", "11203.7839"],
["Portugal", "1987", "11921.9535"],
["Portugal", "1988", "12828.1296"],
["Portugal", "1989", "13674.2821"],
["Portugal", "1990", "14245.5019"],
["Portugal", "1991", "14902.0818"],
["Portugal", "1992", "15076.1536"],
["Portugal", "1993", "14750.0532"],
["Portugal", "1994", "14852.3474"],
["Portugal", "1995", "15434.912"],
["Portugal", "1996", "15914.6709"],
["Portugal", "1997", "16545.0553"],
["Portugal", "1998", "17250.4539"],
["Portugal", "1999", "17820.1068"],
["Portugal", "2000", "18365.5038"],
["Portugal", "2001", "18590.8301"],
["Portugal", "2002", "18631.4373"],
["Portugal", "2003", "18388.2201"],
["Portugal", "2004", "18676.6233"],
["Portugal", "2005", "18784.9485"],
["Portugal", "2006", "19042.3181"],
["Portugal", "2007", "19478.5783"],
["Portugal", "2008", "19489.2717"],
["Portugal", "2009", "18890.8434"],
["Portugal", "2010", "19240.6867"],
["Portugal", "2011", "18916.9913"],
["Portugal", "2012", "18228.7199"],
["Portugal", "2013", "18121.8904"],
["Portugal", "2014", "18391.3885"],
["Russian Federation", "1980", "5883.6521"],
["Russian Federation", "1981", "5883.6521"],
["Russian Federation", "1982", "5883.6521"],
["Russian Federation", "1983", "5883.6521"],
["Russian Federation", "1984", "5883.6521"],
["Russian Federation", "1985", "5883.6521"],
["Russian Federation", "1986", "5883.6521"],
["Russian Federation", "1987", "5883.6521"],
["Russian Federation", "1988", "5883.6521"],
["Russian Federation", "1989", "5883.6521"],
["Russian Federation", "1990", "5685.1674"],
["Russian Federation", "1991", "5386.1817"],
["Russian Federation", "1992", "4601.4993"],
["Russian Federation", "1993", "4207.3986"],
["Russian Federation", "1994", "3683.1018"],
["Russian Federation", "1995", "3529.5462"],
["Russian Federation", "1996", "3407.4357"],
["Russian Federation", "1997", "3460.8565"],
["Russian Federation", "1998", "3282.8602"],
["Russian Federation", "1999", "3503.7899"],
["Russian Federation", "2000", "3870.4123"],
["Russian Federation", "2001", "4084.7821"],
["Russian Federation", "2002", "4298.28"],
["Russian Federation", "2003", "4632.8487"],
["Russian Federation", "2004", "4985.3309"],
["Russian Federation", "2005", "5323.4739"],
["Russian Federation", "2006", "5776.396"],
["Russian Federation", "2007", "6280.1474"],
["Russian Federation", "2008", "6612.6317"],
["Russian Federation", "2009", "6093.6301"],
["Russian Federation", "2010", "6365.2127"],
["Russian Federation", "2011", "6631.4642"],
["Russian Federation", "2012", "6845.7706"],
["Russian Federation", "2013", "6922.8025"],
["Russian Federation", "2014", "6843.9247"],
["Saudi Arabia", "1980", "21320.705"],
["Saudi Arabia", "1981", "20980.2509"],
["Saudi Arabia", "1982", "17639.5145"],
["Saudi Arabia", "1983", "15282.5859"],
["Saudi Arabia", "1984", "13952.0567"],
["Saudi Arabia", "1985", "12506.1051"],
["Saudi Arabia", "1986", "12499.1297"],
["Saudi Arabia", "1987", "11515.0688"],
["Saudi Arabia", "1988", "11974.0084"],
["Saudi Arabia", "1989", "11548.1808"],
["Saudi Arabia", "1990", "12089.0761"],
["Saudi Arabia", "1991", "12776.4702"],
["Saudi Arabia", "1992", "12977.5489"],
["Saudi Arabia", "1993", "12623.9503"],
["Saudi Arabia", "1994", "12373.9749"],
["Saudi Arabia", "1995", "12083.0066"],
["Saudi Arabia", "1996", "12183.2219"],
["Saudi Arabia", "1997", "12197.2915"],
["Saudi Arabia", "1998", "12238.7152"],
["Saudi Arabia", "1999", "11841.6159"],
["Saudi Arabia", "2000", "12088.9232"],
["Saudi Arabia", "2001", "11815.0923"],
["Saudi Arabia", "2002", "11485.6492"],
["Saudi Arabia", "2003", "12000.2028"],
["Saudi Arabia", "2004", "12730.4747"],
["Saudi Arabia", "2005", "13273.6535"],
["Saudi Arabia", "2006", "13641.8982"],
["Saudi Arabia", "2007", "14091.5372"],
["Saudi Arabia", "2008", "14902.3634"],
["Saudi Arabia", "2009", "14805.8712"],
["Saudi Arabia", "2010", "15134.793"],
["Saudi Arabia", "2011", "16238.677"],
["Saudi Arabia", "2012", "16702.5018"],
["Saudi Arabia", "2013", "16748.1358"],
["Saudi Arabia", "2014", "16944.315"],
["Rwanda", "1980", "276.2527"],
["Rwanda", "1981", "281.781"],
["Rwanda", "1982", "277.8625"],
["Rwanda", "1983", "284.9834"],
["Rwanda", "1984", "263.2262"],
["Rwanda", "1985", "264.0163"],
["Rwanda", "1986", "265.7524"],
["Rwanda", "1987", "252.6139"],
["Rwanda", "1988", "252.5294"],
["Rwanda", "1989", "245.776"],
["Rwanda", "1990", "239.197"],
["Rwanda", "1991", "239.3935"],
["Rwanda", "1992", "266.9867"],
["Rwanda", "1993", "261.403"],
["Rwanda", "1994", "136.6549"],
["Rwanda", "1995", "187.3915"],
["Rwanda", "1996", "204.8682"],
["Rwanda", "1997", "218.5999"],
["Rwanda", "1998", "219.6942"],
["Rwanda", "1999", "219.5873"],
["Rwanda", "2000", "224.9047"],
["Rwanda", "2001", "235.3863"],
["Rwanda", "2002", "260.6199"],
["Rwanda", "2003", "259.9145"],
["Rwanda", "2004", "273.4831"],
["Rwanda", "2005", "286.5675"],
["Rwanda", "2006", "305.477"],
["Rwanda", "2007", "320.063"],
["Rwanda", "2008", "345.9656"],
["Rwanda", "2009", "357.5915"],
["Rwanda", "2010", "373.7101"],
["Rwanda", "2011", "393.0211"],
["Rwanda", "2012", "417.2482"],
["Rwanda", "2013", "426.5134"],
["Rwanda", "2014", "445.6163"],
["Spain", "1980", "14882.8707"],
["Spain", "1981", "14744.4092"],
["Spain", "1982", "14848.6199"],
["Spain", "1983", "15040.256"],
["Spain", "1984", "15246.2304"],
["Spain", "1985", "15543.2158"],
["Spain", "1986", "16000.2431"],
["Spain", "1987", "16846.1774"],
["Spain", "1988", "17665.4934"],
["Spain", "1989", "18482.1108"],
["Spain", "1990", "19151.8818"],
["Spain", "1991", "19594.795"],
["Spain", "1992", "19711.7244"],
["Spain", "1993", "19447.84"],
["Spain", "1994", "19857.8277"],
["Spain", "1995", "20357.7174"],
["Spain", "1996", "20853.9423"],
["Spain", "1997", "21566.4343"],
["Spain", "1998", "22416.5338"],
["Spain", "1999", "23301.5405"],
["Spain", "2000", "24328.6648"],
["Spain", "2001", "24996.1416"],
["Spain", "2002", "25296.6625"],
["Spain", "2003", "25635.1935"],
["Spain", "2004", "25994.5755"],
["Spain", "2005", "26510.7175"],
["Spain", "2006", "27154.3999"],
["Spain", "2007", "27661.0244"],
["Spain", "2008", "27527.0449"],
["Spain", "2009", "26309.2148"],
["Spain", "2010", "26191.9739"],
["Spain", "2011", "25838.0572"],
["Spain", "2012", "25144.6897"],
["Spain", "2013", "24805.4242"],
["Spain", "2014", "25259.7006"],
["Switzerland", "1980", "42656.5672"],
["Switzerland", "1981", "43103.1935"],
["Switzerland", "1982", "42290.9669"],
["Switzerland", "1983", "42379.133"],
["Switzerland", "1984", "43497.605"],
["Switzerland", "1985", "44896.899"],
["Switzerland", "1986", "45494.0035"],
["Switzerland", "1987", "45925.9252"],
["Switzerland", "1988", "47083.8771"],
["Switzerland", "1989", "48727.4072"],
["Switzerland", "1990", "50001.8561"],
["Switzerland", "1991", "48928.5713"],
["Switzerland", "1992", "48370.9231"],
["Switzerland", "1993", "47872.0145"],
["Switzerland", "1994", "48094.948"],
["Switzerland", "1995", "48004.3608"],
["Switzerland", "1996", "48080.1031"],
["Switzerland", "1997", "49073.3819"],
["Switzerland", "1998", "50368.5956"],
["Switzerland", "1999", "50952.7548"],
["Switzerland", "2000", "52666.6071"],
["Switzerland", "2001", "53091.4669"],
["Switzerland", "2002", "52766.918"],
["Switzerland", "2003", "52402.9142"],
["Switzerland", "2004", "53523.5"],
["Switzerland", "2005", "54797.5466"],
["Switzerland", "2006", "56639.8886"],
["Switzerland", "2007", "58460.1824"],
["Switzerland", "2008", "59036.5462"],
["Switzerland", "2009", "57061.8411"],
["Switzerland", "2010", "58138.6312"],
["Switzerland", "2011", "58533.3229"],
["Switzerland", "2012", "58566.4229"],
["Switzerland", "2013", "58920.9335"],
["Switzerland", "2014", "59294.7604"],
["Sweden", "1980", "26796.1469"],
["Sweden", "1981", "26885.7631"],
["Sweden", "1982", "27205.9122"],
["Sweden", "1983", "27710.4499"],
["Sweden", "1984", "28856.2397"],
["Sweden", "1985", "29430.9908"],
["Sweden", "1986", "30152.8661"],
["Sweden", "1987", "31060.331"],
["Sweden", "1988", "31709.1069"],
["Sweden", "1989", "32334.4711"],
["Sweden", "1990", "32327.7588"],
["Sweden", "1991", "31740.1968"],
["Sweden", "1992", "31188.9869"],
["Sweden", "1993", "30367.8407"],
["Sweden", "1994", "31385.3055"],
["Sweden", "1995", "32477.4879"],
["Sweden", "1996", "32918.0213"],
["Sweden", "1997", "33853.4121"],
["Sweden", "1998", "35264.7437"],
["Sweden", "1999", "36833.5759"],
["Sweden", "2000", "38515.8548"],
["Sweden", "2001", "39013.1361"],
["Sweden", "2002", "39692.718"],
["Sweden", "2003", "40488.7467"],
["Sweden", "2004", "42072.2794"],
["Sweden", "2005", "43085.3531"],
["Sweden", "2006", "44852.2517"],
["Sweden", "2007", "46036.7921"],
["Sweden", "2008", "45425.0867"],
["Sweden", "2009", "42704.5944"],
["Sweden", "2010", "44877.9105"],
["Sweden", "2011", "45727.0263"],
["Sweden", "2012", "45260.0418"],
["Sweden", "2013", "45435.1815"],
["Sweden", "2014", "46066.7493"],
["Thailand", "1980", "936.4806"],
["Thailand", "1981", "972.2726"],
["Thailand", "1982", "1005.0028"],
["Thailand", "1983", "1041.7234"],
["Thailand", "1984", "1081.7657"],
["Thailand", "1985", "1111.6768"],
["Thailand", "1986", "1151.9169"],
["Thailand", "1987", "1238.74"],
["Thailand", "1988", "1378.9726"],
["Thailand", "1989", "1522.7048"],
["Thailand", "1990", "1669.7113"],
["Thailand", "1991", "1792.2381"],
["Thailand", "1992", "1919.1495"],
["Thailand", "1993", "2060.5156"],
["Thailand", "1994", "2206.9105"],
["Thailand", "1995", "2364.2427"],
["Thailand", "1996", "2472.3125"],
["Thailand", "1997", "2377.789"],
["Thailand", "1998", "2170.9586"],
["Thailand", "1999", "2243.7371"],
["Thailand", "2000", "2316.8182"],
["Thailand", "2001", "2369.3345"],
["Thailand", "2002", "2486.7297"],
["Thailand", "2003", "2637.5209"],
["Thailand", "2004", "2778.2304"],
["Thailand", "2005", "2874.3863"],
["Thailand", "2006", "3003.0258"],
["Thailand", "2007", "3157.6974"],
["Thailand", "2008", "3207.3703"],
["Thailand", "2009", "3179.1489"],
["Thailand", "2010", "3410.4276"],
["Thailand", "2011", "3428.0176"],
["Thailand", "2012", "3664.7418"],
["Thailand", "2013", "3751.6516"],
["Thailand", "2014", "3768.7877"],
["Turkey", "1980", "3700.7971"],
["Turkey", "1981", "3791.4956"],
["Turkey", "1982", "3836.0145"],
["Turkey", "1983", "3934.7766"],
["Turkey", "1984", "4105.9329"],
["Turkey", "1985", "4189.5755"],
["Turkey", "1986", "4393.2121"],
["Turkey", "1987", "4717.6463"],
["Turkey", "1988", "4738.4475"],
["Turkey", "1989", "4668.0155"],
["Turkey", "1990", "5012.8944"],
["Turkey", "1991", "4964.8747"],
["Turkey", "1992", "5130.6415"],
["Turkey", "1993", "5435.9005"],
["Turkey", "1994", "5101.0677"],
["Turkey", "1995", "5417.0408"],
["Turkey", "1996", "5725.8894"],
["Turkey", "1997", "6063.6378"],
["Turkey", "1998", "6107.4514"],
["Turkey", "1999", "5811.8408"],
["Turkey", "2000", "6112.8766"],
["Turkey", "2001", "5679.9425"],
["Turkey", "2002", "5942.7253"],
["Turkey", "2003", "6167.1459"],
["Turkey", "2004", "6652.576"],
["Turkey", "2005", "7117.2332"],
["Turkey", "2006", "7514.389"],
["Turkey", "2007", "7773.4711"],
["Turkey", "2008", "7732.4877"],
["Turkey", "2009", "7264.6318"],
["Turkey", "2010", "7814.8012"],
["Turkey", "2011", "8397.1428"],
["Turkey", "2012", "8471.6419"],
["Turkey", "2013", "8719.6206"],
["Turkey", "2014", "8864.7432"],
["Uruguay", "1980", "4234.1298"],
["Uruguay", "1981", "4271.944"],
["Uruguay", "1982", "3829.9801"],
["Uruguay", "1983", "3414.306"],
["Uruguay", "1984", "3353.6533"],
["Uruguay", "1985", "3381.0771"],
["Uruguay", "1986", "3655.7304"],
["Uruguay", "1987", "3923.4345"],
["Uruguay", "1988", "3956.7182"],
["Uruguay", "1989", "3974.6365"],
["Uruguay", "1990", "3959.5342"],
["Uruguay", "1991", "4070.7781"],
["Uruguay", "1992", "4361.8957"],
["Uruguay", "1993", "4444.9827"],
["Uruguay", "1994", "4733.7124"],
["Uruguay", "1995", "4631.6205"],
["Uruguay", "1996", "4854.9942"],
["Uruguay", "1997", "5232.9683"],
["Uruguay", "1998", "5434.3523"],
["Uruguay", "1999", "5301.2975"],
["Uruguay", "2000", "5180.3206"],
["Uruguay", "2001", "4972.4045"],
["Uruguay", "2002", "4587.021"],
["Uruguay", "2003", "4626.9253"],
["Uruguay", "2004", "4860.7163"],
["Uruguay", "2005", "5220.9574"],
["Uruguay", "2006", "5426.0779"],
["Uruguay", "2007", "5765.9503"],
["Uruguay", "2008", "6159.2854"],
["Uruguay", "2009", "6397.8778"],
["Uruguay", "2010", "6873.3123"],
["Uruguay", "2011", "7204.2188"],
["Uruguay", "2012", "7419.2046"],
["Uruguay", "2013", "7771.9481"],
["Uruguay", "2014", "8016.6806"],
["United States", "1980", "26113.1247"],
["United States", "1981", "26528.9806"],
["United States", "1982", "25775.1468"],
["United States", "1983", "26723.6931"],
["United States", "1984", "28416.4862"],
["United States", "1985", "29359.6658"],
["United States", "1986", "30111.0983"],
["United States", "1987", "30876.2505"],
["United States", "1988", "31883.4596"],
["United States", "1989", "32746.216"],
["United States", "1990", "32999.8407"],
["United States", "1991", "32537.6867"],
["United States", "1992", "33230.4513"],
["United States", "1993", "33695.6317"],
["United States", "1994", "34628.8742"],
["United States", "1995", "35149.3688"],
["United States", "1996", "36061.6022"],
["United States", "1997", "37228.7672"],
["United States", "1998", "38434.7531"],
["United States", "1999", "39776.1004"],
["United States", "2000", "40945.6338"],
["United States", "2001", "40938.0631"],
["United States", "2002", "41284.4506"],
["United States", "2003", "42079.9842"],
["United States", "2004", "43270.7019"],
["United States", "2005", "44307.9206"],
["United States", "2006", "45052.9213"],
["United States", "2007", "45420.1874"],
["United States", "2008", "44861.3909"],
["United States", "2009", "43235.5584"],
["United States", "2010", "43961.1685"],
["United States", "2011", "44324.9445"],
["United States", "2012", "45008.6141"],
["United States", "2013", "45660.7338"],
["United States", "2014", "46405.2471"],
["Ukraine", "1980", "2677.4865"],
["Ukraine", "1981", "2677.4865"],
["Ukraine", "1982", "2677.4865"],
["Ukraine", "1983", "2677.4865"],
["Ukraine", "1984", "2677.4865"],
["Ukraine", "1985", "2677.4865"],
["Ukraine", "1986", "2677.4865"],
["Ukraine", "1987", "2677.4865"],
["Ukraine", "1988", "2734.0503"],
["Ukraine", "1989", "2826.1197"],
["Ukraine", "1990", "2640.7261"],
["Ukraine", "1991", "2413.5789"],
["Ukraine", "1992", "2173.2256"],
["Ukraine", "1993", "1863.0262"],
["Ukraine", "1994", "1442.898"],
["Ukraine", "1995", "1276.9168"],
["Ukraine", "1996", "1159.469"],
["Ukraine", "1997", "1134.9791"],
["Ukraine", "1998", "1123.4101"],
["Ukraine", "1999", "1131.7848"],
["Ukraine", "2000", "1210.6857"],
["Ukraine", "2001", "1335.4292"],
["Ukraine", "2002", "1418.901"],
["Ukraine", "2003", "1564.9247"],
["Ukraine", "2004", "1767.6397"],
["Ukraine", "2005", "1828.7176"],
["Ukraine", "2006", "1975.5253"],
["Ukraine", "2007", "2144.3513"],
["Ukraine", "2008", "2205.5815"],
["Ukraine", "2009", "1887.5162"],
["Ukraine", "2010", "1974.6212"],
["Ukraine", "2011", "2084.7824"],
["Ukraine", "2012", "2094.1201"],
["Ukraine", "2013", "2098.894"],
["Ukraine", "2014", "2081.0564"],
["Yemen, Rep.", "1980", "656.9479"],
["Yemen, Rep.", "1981", "656.9479"],
["Yemen, Rep.", "1982", "656.9479"],
["Yemen, Rep.", "1983", "656.9479"],
["Yemen, Rep.", "1984", "656.9479"],
["Yemen, Rep.", "1985", "656.9479"],
["Yemen, Rep.", "1986", "656.9479"],
["Yemen, Rep.", "1987", "656.9479"],
["Yemen, Rep.", "1988", "656.9479"],
["Yemen, Rep.", "1989", "656.9479"],
["Yemen, Rep.", "1990", "656.9479"],
["Yemen, Rep.", "1991", "664.4015"],
["Yemen, Rep.", "1992", "682.3613"],
["Yemen, Rep.", "1993", "673.8953"],
["Yemen, Rep.", "1994", "685.5288"],
["Yemen, Rep.", "1995", "694.3548"],
["Yemen, Rep.", "1996", "700.4492"],
["Yemen, Rep.", "1997", "713.8701"],
["Yemen, Rep.", "1998", "735.1615"],
["Yemen, Rep.", "1999", "741.9986"],
["Yemen, Rep.", "2000", "766.1387"],
["Yemen, Rep.", "2001", "773.0775"],
["Yemen, Rep.", "2002", "781.0655"],
["Yemen, Rep.", "2003", "787.669"],
["Yemen, Rep.", "2004", "796.0495"],
["Yemen, Rep.", "2005", "817.0824"],
["Yemen, Rep.", "2006", "819.4253"],
["Yemen, Rep.", "2007", "823.0908"],
["Yemen, Rep.", "2008", "832.2932"],
["Yemen, Rep.", "2009", "842.8619"],
["Yemen, Rep.", "2010", "847.2832"],
["Yemen, Rep.", "2011", "700.3545"],
["Yemen, Rep.", "2012", "698.9675"],
["Yemen, Rep.", "2013", "709.4693"],
["Yemen, Rep.", "2014", "262.9544"],
["Vietnam", "1980", "262.9544"],
["Vietnam", "1981", "262.9544"],
["Vietnam", "1982", "262.9544"],
["Vietnam", "1983", "262.9544"],
["Vietnam", "1984", "262.9544"],
["Vietnam", "1985", "267.5091"],
["Vietnam", "1986", "268.668"],
["Vietnam", "1987", "271.5309"],
["Vietnam", "1988", "278.6466"],
["Vietnam", "1989", "292.1888"],
["Vietnam", "1990", "301.3124"],
["Vietnam", "1991", "313.4534"],
["Vietnam", "1992", "334.5462"],
["Vietnam", "1993", "355.3526"],
["Vietnam", "1994", "380.3183"],
["Vietnam", "1995", "409.8265"],
["Vietnam", "1996", "440.9917"],
["Vietnam", "1997", "469.5591"],
["Vietnam", "1998", "489.0617"],
["Vietnam", "1999", "504.7786"],
["Vietnam", "2000", "531.8584"],
["Vietnam", "2001", "557.6867"],
["Vietnam", "2002", "586.0996"],
["Vietnam", "2003", "619.2961"],
["Vietnam", "2004", "658.0445"],
["Vietnam", "2005", "699.4998"],
["Vietnam", "2006", "740.0551"],
["Vietnam", "2007", "784.2762"],
["Vietnam", "2008", "819.9162"],
["Vietnam", "2009", "855.07"],
["Vietnam", "2010", "900.4937"],
["Vietnam", "2011", "946.8034"],
["Vietnam", "2012", "986.0138"],
["Vietnam", "2013", "1028.6287"],
["Vietnam", "2014", "1077.9091"]]
});
// Get a list of unique years.
var years = csv.uniques(1);
// Initialize our year data and rankings.
var yearData = {};
var rankings = {};
// Initialize year data and ranking data for each year.
years.forEach(function (year) {
yearData[year] = [];
rankings[year] = {};
});
// Create an array of country to gdp entries that we
// can index by year.
csv.data.forEach(function (row) {
country = row[0];
year = row[1];
gdp = +row[2];
yearData[year].push({'country': country, 'gdp': gdp});
});
// Sort each year array in yearData
years.forEach(function (year) {
yearData[year] = yearData[year]
.sort(function (a, b) {
return +b.gdp - +a.gdp
});
// Produce a ranking array which can be indexed by year.
for (rank = 0; rank < yearData[year].length; rank++)
rankings[year][yearData[year][rank].country] = rank + 1;
});
// Iterate through our data and replace GDP per capita
// with the rank.
csv.data.forEach(function (row, ri) {
csv.data[ri][2] = rankings[row[1]][row[0]];
});
return csv;
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment