Skip to content

Instantly share code, notes, and snippets.

@svale
Last active January 1, 2020 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svale/f53272c229b8963c22b4bf65858c4f84 to your computer and use it in GitHub Desktop.
Save svale/f53272c229b8963c22b4bf65858c4f84 to your computer and use it in GitHub Desktop.
Morphing Streamgraph
license: gpl-3.0
height: 720
border: no
We can make this file beautiful and searchable if this error is corrected: It looks like row 40 should actually have 24 columns, instead of 25. in line 39.
Verdensdel,Land/region,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,Total,
Africa,Ghana,5937.78,28303.36,4845.87,5601.61,4354.04,11662.59,7014.94,6566.84,7086.68,5669.66,15452.23,21978.36,45122.88,48082.23,38577.95,40929.49,33061.42,28191.17,23026.74,33712.25,415178.08,
Africa,South Africa,123649.48,129572.98,158627.87,140851.88,117056.7,107655.01,93378.1,90484.49,95099.48,107598.41,227034.62,149683.46,213914.1,-170761.85,132924.16,61008.41,78434.62,60252.62,56303.12,37769.24,2010536.89,
Africa,Somalia,81149.17,176877.92,111278.13,203188.45,283326.21,227035.78,201772.44,216614.49,252756.14,252139.61,209310.06,182965.38,467896.96,203640.83,370385.54,364046.27,345833.94,339909.88,546767.55,543118.68,5580013.44,
Africa,Egypt,9527.77,9550.76,8238.08,4757.68,4662.45,4448.21,3586.91,3432.36,2092.87,1264.39,4319.91,4065.94,10466.69,6755.5,12147.01,16159.7,35568.69,32580.81,34279.38,34958.86,242863.97,
Africa,Cameroon,5715.61,6033.98,8644.96,45830.16,13143.58,11401,11890.59,4740.58,2709.6,2964.39,2558.83,2388.28,2808.46,4843.82,6718.6,6709.86,5566.82,3136.47,14006.61,21775.73,183587.93,
Africa,Togo,41.88,500,350,1723.06,1878.24,1678.52,6200.59,470.68,170,295,500,550,1442.86,1321.75,1558.52,1070,5193.25,1193.25,2677.5,2204.6,31019.7,
Africa,Mozambique,285902.75,336089.25,293222.83,308864.75,383059.36,411509.35,437655.71,412136.92,469268.38,551697.8,504821.15,445418.97,471582.02,503217.24,298250.24,360800.87,264080.31,239397.86,299185.24,341643.8,7617804.81,
Africa,Niger,13062.63,4193.4,23651.19,18936.13,13213.81,13104.02,38665.83,15907.06,9709.82,10692.13,10230.27,21085.82,10176.3,38646.11,58424.68,65530.99,90284.08,122129.53,161671.4,144814.67,884129.86,
Africa,Africa Regional,357882.02,317151.01,380751.53,397777.6,395018.63,556251.21,412653.67,370270.15,366517.71,397927.96,452833.99,382368.52,461984.92,576643.82,548035.27,662973.36,378982.49,315908.05,457761.78,490123.39,8679817.08,
Africa,Rwanda,37723.36,37600.02,19001.56,48621.92,56386.85,42038.79,28997.86,25559.37,43513.69,21483.18,22329.56,26383.06,19022.68,13776.97,13071.38,14411.65,17717.12,21653.29,25476.9,25178.08,559947.29,
Africa,Angola,153965.73,145936.71,157314.93,177271.87,171513.74,166863.82,134686.96,150064.31,125408.19,101555.17,112022.64,79934.66,73161.31,70547.1,58737.11,76814.21,53206.84,65390.75,63577.68,52447.95,2190421.7,
Africa,Malawi,96931.58,59826.52,86698.9,124225.47,199370.05,183090.43,316180.57,323343.95,320539.76,367845.34,399467.26,391119.66,374683.71,403802.98,630214.03,531368.67,589859.64,526089.53,479311.75,475266.34,6879236.12,
Africa,Burundi,49823.79,46973.47,50859.74,81246.43,85983.45,79835.74,66190.54,83931.81,118491.29,145266.37,157644.02,117572.76,97110.78,95515.77,80930.37,45224.61,44099.66,43267.78,35974.08,36700.6,1562643.03,
Africa,Namibia,41723.61,63006.9,33374.9,27201.82,26992.64,18333.76,10510.07,60021.79,17328.42,58658.72,-42223.15,-18010.14,13063.28,13142.63,11630.67,9390.86,11386.81,5271.38,4899.03,5215.04,370919.05,
Africa,South Sudan,,,,,,,,,,,,,349884.35,436333.7,535606.2,598473.58,472370.52,560856.67,603889.06,616370.46,4173784.54,
Africa,Nigeria,5620.22,4192.36,9732.41,24613.16,31499.65,36936.18,18903.2,18677.81,19036.42,35805.63,57557.79,85017.7,66322.23,54283.42,59739.52,79742.15,142362.96,131646.02,284239.51,175821.4,1341749.74,
Africa,Sao Tome & Principe,,913.05,,,,,798.82,606.72,200,46.59,,,,3505.31,1447.82,2111.68,,,,,9629.99,
Africa,Algeria,7419.41,9231.86,18968.64,25786.34,23765.44,10553.24,4782.41,6667.86,7458.41,350,5741.46,6163.6,5056.46,1114.04,624.41,349.3,5692.23,5119.98,5102.9,4676.76,154624.74,
Africa,Chad,1294,1041.1,881.92,,361.97,,11375.75,10102.37,23807,24352.76,13640,10000,-28.69,,824.83,,6000,,2000,,105653,
Africa,Eswatini,956.47,874.97,909.07,1368.11,2731.63,2560.24,2890.3,2776.55,4436.97,13145.73,20274.32,9740.56,10039.69,8529.06,9516.26,4375.83,5048.13,6652.09,3811.24,4085.44,114722.68,
Africa,Seychelles,,,120,36.76,61.8,72.87,,,,,,,,,,,,,,,291.43,
Africa,South of Sahara Regional,97651.71,70289.86,111382.33,134580.21,126100.99,119832.06,197583.56,197429.49,238721.27,317703.41,329740.37,579643.94,414157.61,753043.73,319383.36,299667.57,294486.75,460772.84,670128.84,821836.04,6554135.97,
Africa,Burkina Faso,11712.34,3864.21,2398.36,2931.22,1241.31,1000,1442.73,2346.24,1582.08,1278.99,3312,4965,4270,4436.16,5440.54,4695.43,4083.07,3568.51,22495.93,24172.02,111236.14,
Africa,Guinea-Bissau,160.31,60.72,159.5,200.88,353.94,393.75,317.61,2245.05,4051,2008.32,,,,1000,1.34,140,1332.92,640,1183.92,802.49,15051.75,
Africa,Ethiopia,186540.44,207320.56,146491.56,227401.24,263222.71,229420.75,245204.81,268169.15,198472.35,212741.85,237366.29,196809.59,163032.04,227678.46,358950.42,378491.03,389836.96,441826.32,496690.61,520374.64,5596041.77,
Africa,Libya,,,,,,,1200.4,525.27,,,,,81300,12729.28,4991.08,,-77.65,16850,21000,28502.5,167020.88,
Africa,Guinea,461,,27163.67,4403.65,23959.59,10928.61,7278.6,3936.59,800,,,,,,,4140,1144.16,640,993.78,1457.78,87307.42,
Africa,Tunisia,2029.21,1484.08,287.74,587.82,488.26,539.73,208.25,,,5.49,,,,2500,613,6620.42,25632.66,16575.48,18229.86,62038.78,137840.78,
Africa,Zambia,213240.85,218037.8,187112.66,231969.95,252005.63,251800.6,315427.24,424762.16,436002.17,418151.44,393619.1,326715.96,443515.28,301926.59,290365.28,190316.93,179594.23,120468.47,100001.24,79712.69,5374746.29,
Africa,Djibouti,,2459.75,77.74,619.66,,179.91,700,3000,,,5000,2000,,,,3000,2050,,,,19087.06,
Africa,Mali,67516.94,57916.05,60518.48,56776.4,52980.66,53950.62,89020.34,108221.31,94204.49,85145.49,78903.23,96384.47,74559.95,94753.97,131585.68,125747,138955.09,145011.83,179366.79,244879.26,2036398.08,
Africa,Equatorial Guinea,254,306.34,360.4,,,,,,,,,,,,,,,,,,920.74,
Africa,Eritrea,58004.71,56391.5,40887.77,107450.72,152528.47,125529.88,121319.73,114801.79,59665.3,50777.47,60449.45,58199.43,45234.33,18619.84,1341.39,852.28,11046.43,16713.55,4317.63,4538.84,1108670.53,
Africa,Zimbabwe,103945.09,85950.73,91770.03,57398.63,48503.12,54599.29,87328.24,71882.17,73457.66,123028.96,180134.89,146419.64,124926.4,158556.22,200308.62,132192.3,132703.84,90391.17,88134.31,89606.07,2141237.38,
Africa,Madagascar,26565.09,39666.66,37975.27,45546.88,43585.38,57331.13,75577.52,103249.46,118500.13,128533.5,52400.73,78354.91,72298.75,81699.62,74217.3,71270.6,52789.28,62766.38,82196.98,79386.27,1383911.86,
Africa,Kenya,15457.34,25413.62,36319.03,23674.44,72685.12,53532.13,63440.88,79133.7,76415.16,121440.83,97465.72,80837.62,110640.81,84124.16,138257.48,106179.64,112658.67,86491.2,97832.87,118988.62,1600989.05,
Africa,Cote D'Ivoire,705.82,1342.52,2126.99,4044.49,6159.96,20489.25,24879.97,24068.58,27365.87,20523.81,9870.84,10409.58,41665.81,44269.06,5811.43,6881.06,8690.5,2920.46,2465.85,3066.98,267758.82,
Africa,Central African Rep.,96.62,2795.46,,,1544.15,3300.65,7752,36205.05,6726.54,7000,4000,,,,45287.07,116322.7,81469.07,58548.93,79000,69477.77,519526.02,
Africa,Congo, Dem. Rep.,17339.35,49808.05,34764.14,101571.15,121085.54,123282.35,128146.21,138081.89,136693.16,199049.72,176119.85,171060.95,178899.5,189364,264008.5,226484.91,196374.5,155096.69,238340.31,266416.37,3111987.14,
Africa,Morocco,335.04,1068.5,820.14,1342.18,2531.78,5597.65,696.55,903.36,28,,60,129.41,500,1171.32,2400,3128.88,3082.92,1634.58,200,1872,27502.3,
Africa,Cape Verde,156.34,495.85,1483.34,500.88,531.22,48.6,58.32,45,63,58.32,247.66,,99.66,500,101.18,365.75,,,,,4755.12,
Africa,North of Sahara Regional,,,25.07,,,1439.28,2061.36,4390.31,2997.26,1907.3,272.16,351.32,32928.4,1806.27,8161.55,1224.81,16310,15517.2,39280.69,39445,168117.99,
Africa,Benin,,0.36,915.9,1049.19,1506.05,1466.12,415.29,,,,,313.34,71.99,,,,153,153,,,6044.25,
Africa,Botswana,21244.68,23497.82,32613.82,25341.37,10457.75,11073.77,13955.66,12588.1,12915.33,17151.56,11467.37,3815.11,2795.44,2662.26,1074.95,889.48,575.63,1684.9,,,205805,
Africa,Congo, Rep.,11318.8,17454.76,3015.11,2880.09,4896,11652.89,16999.23,6409.76,4046.7,250,651.3,3418.47,514.4,366.12,2460.05,3061.19,1937.1,3025.86,2148.1,4042.3,100548.21,
Africa,Gambia,1146.19,1680.4,2148.68,5527.31,2088.96,1762.2,1652.15,1616.38,710.23,382.44,687.26,775.26,1621.07,312,758.48,1241.39,1140,1251.91,897.66,2380.49,29780.45,
Africa,Sierra Leone,48143.54,77136.96,83926.59,84376.74,36669.17,34827.6,26804.57,17275.97,14501.76,20647.87,19270.55,17982.96,19704.16,14927.16,14437.41,9342.68,56060.62,43497.48,18743.92,16822.3,675100.01,
Africa,Mauritius,156.65,8255.86,5623.34,2497.52,,105.6,164.71,,256.8,-12106.48,2500,2000,4000,783.49,785,715,,,-94.25,,15643.22,
Africa,Tanzania,387688.11,309419.36,314161.34,372709.98,476955.01,401636.56,388571.15,483481.68,666775.83,728521.08,730937.24,749199.88,640355.92,538554.66,583657.41,452563.15,384498.8,375174.78,373745.96,397314.24,9755922.16,
Africa,Lesotho,1685.02,1706.54,2353.64,2932.32,2051.85,8399.06,4680.59,7988.95,7943.56,6025.64,6544.44,6633.36,5777.12,4891.46,6354.48,7082.84,5856.51,4290.49,1916.49,3096.34,98210.73,
Africa,Comoros,,,,180.94,,,166.21,,,5357,,,,,,,,,,,5704.15,
Africa,Liberia,11805.76,2588.4,5813.99,15478.64,63587.38,78416.82,45985.37,57318.49,165022.42,193129.99,96496.2,138070.06,196754.4,202771.72,201542.28,242308.16,278904.4,173079.65,189475.2,87299.66,2445848.99,
Africa,Mauritania,2814.36,3316.5,3763.14,4242.8,5799.82,4989.17,5345.46,2865.26,3886.36,5217,4109,3564,3564,12718.34,6074.95,4800.94,6175.82,780,,,84026.93,
Africa,Senegal,9512.97,14571.72,10097.22,11103.38,8958.52,6896.34,4838.36,3798.35,3848.52,2917.09,3073.1,1785.12,1712.4,4029.06,6194.23,6238.24,2683.6,2673.75,2006.95,3660.37,110599.31,
Africa,Gabon,,,,,,495.14,1114.2,,,,120.5,,,,315.47,612.01,525.69,1279.05,649.74,1860.84,6972.64,
Africa,Sudan,110964.25,124727.63,118561,186293.67,235820.83,385392.39,635722.12,686008.29,700148.45,683965.61,578177.17,705370.74,251104.91,185261.87,199286.36,172971.92,96904.85,116192.48,107893.43,108076.9,6388844.86,
Africa,Uganda,198420.93,184716.12,177418.89,260482.93,271486.15,280841.62,293289.51,319200.38,402538.2,422404.52,422679.73,431869.8,453822.95,305758.97,412155.63,411060.33,361449.35,368139.02,247035.97,287524.83,6512295.81,
America,Dominican Republic,2698.24,1852.68,3750.73,3419.86,3283.92,4298.56,3118.31,5074,2344,1930.63,1798.2,1600.4,1613.68,1539.03,1676.91,1590.18,1391.11,370.97,525.95,,43877.35,
America,Belize,,1811.84,284.16,851.03,520.62,281.4,,,,,,,,,994.84,1019.03,,,,,5762.92,
America,Suriname,,,,,241.31,179.91,,,,,,,,,,,,,,,421.22,
America,Colombia,51046.37,51041.48,66348.86,61480.63,65953.46,57252.61,58298.42,63703.01,78366.12,62391.97,72813.96,85798.39,68487.12,86050,97275.46,115475.31,134117.53,327014.78,517029.17,408111.25,2528055.9,
America,Dominica,,,,,,,,,,,,,,,,,,,1000,,1000,
America,Venezuela,,2944.5,958.37,489.54,1115.77,1742.54,2638.39,1198.58,1848.25,349.86,240.87,367.61,845.13,799.85,-200,,,,1000,31288.13,47627.39,
America,Costa Rica,2006.88,5058.87,3675.45,4045.17,,,33421,573.58,1894.56,2629.09,4362.44,3114.31,13452.11,-761.88,38911.14,4514.48,1047.87,166.11,,,118111.18,
America,Haiti,9370.18,15295.13,18707.26,13322.45,14413.69,46883.15,32071.27,51339.98,45099.18,59081.73,26875.18,403626.6,135188.95,129337.77,83613.21,89284.23,66944.27,87282.44,90505.05,71593.91,1489835.63,
America,Ecuador,15518.93,18530.79,24517.81,17957.17,19030.73,16227.4,11244.21,12208.29,13085.38,17326.68,10288.77,18429.94,16271.35,13060.82,14119.48,14251.78,15097.88,35632.38,14529.98,80510.51,397840.29,
America,Mexico,4953.45,3898.15,3583.87,3089.67,623.72,2395.42,3418.65,,,682,107.2,301.44,45878.86,1943.25,9522.55,41213.03,23110.28,-33.08,,,144688.47,
America,Guatemala,102801.39,73386.54,93235.34,94108.49,89895.38,87426.28,134968.61,95831.78,87142.74,64723.26,48411.38,56683.19,61973.47,51077.76,72819.15,79868.28,76969.64,59471.26,47539.75,41578.81,1519912.51,
America,El Salvador,12949.84,10870.27,23119.78,13298.93,8035.81,7291.11,13598.35,3105.52,4013.5,3389.01,3233.11,6808.12,11774.31,3599.09,13281.32,14796.31,9556.03,7164.71,5941.1,4370.69,180196.93,
America,Argentina,64,63.6,374.33,709.97,2608.71,200,,160,226.5,625,300,620.43,300,300,4.31,712.43,,,,,7269.29,
America,Honduras,28863.66,17327.78,196299.27,7016.55,11527.2,12411.49,10895.29,10148.74,8741.16,9074.26,8856.08,8990.92,8560.97,25792.86,67208.61,11605.21,10411.58,10381.58,10868.55,2182.8,477164.55,
America,Chile,4652.37,5739.41,6838.11,3727,4512.37,1648.8,101641.08,91271.56,135079.48,199713.46,83397.66,79006.97,-66669.55,188161.78,56253.44,1225.14,,-21.69,,,896177.39,
America,Nicaragua,132174.53,116508,126167.38,71476.13,89672.09,84571.58,90145.02,161804.18,116039.1,114076.88,112119.03,115983.69,102068.34,89138.16,107649.19,72516.13,57284.9,38152.66,33269.64,31086.54,1861903.18,
America,Guyana,545.9,20230.5,,,,230.21,,,,,,176681,218981,2281.43,956.32,581762.43,45178.8,30871.45,35720.39,28123.19,1141562.63,
America,Paraguay,11110.83,25386.8,5783.02,4981.62,4774.34,3935.41,4343.98,5032.58,6522.51,6574.11,5748.44,6274.4,7112.2,6721.34,7102.35,6639.72,6715.1,5857,5854.93,3693.2,140163.9,
America,America Regional,45318.88,30663.48,35740.12,33767.21,32284.15,24698.87,22595.35,32155.69,53341.58,111485.19,158850.5,78224.24,70952.04,99855.38,66477.65,65810.22,43382.91,46046.76,28763.18,14201.06,1094614.48,
America,Brazil,15166.35,20315.53,21400.25,22748.54,27489.26,20638.3,18152.1,17975.92,55287.05,33878.3,185033.05,226181.58,406589.83,1248123.81,3988818.58,882604.72,1267711.59,936994.09,452500.73,685561.92,10533171.48,
America,St.Vincent & Grenadines,,,,,,,,,,,787.47,,700.88,,,,,,,,1488.34,
America,Bolivia,27012.02,24623.87,28943.86,26259.66,26823.51,22763.96,23811.19,23335.64,29691.38,36582.26,40192.07,35381.6,32608.73,31709.63,45510.83,31698.92,28991.52,25220.85,23463.53,26466.95,591091.97,
America,North & Central America Regional,53954.5,54083.86,79523.99,84440.41,59899.23,110898.15,71360.08,92775.38,93790.67,71639.11,114113.42,-50.51,186992.23,61756.47,6800.94,34881.68,31953.89,21613.89,14187.09,11850,1256464.49,
America,West Indies Regional,,,50,810,,,,,,,,,1110.69,1728.24,,,,150,5000,,8848.93,
America,South America Regional,1596.61,1588.74,5417.65,2200,3965.03,36742.34,13108.44,12090.4,33658.31,32369.12,42107.18,33321.47,39854.32,42135.12,40566.87,41298.53,35413.93,857.16,11545.39,33796.06,463632.68,
America,Uruguay,382.5,233.2,114.48,,,,,,10000,,1108.39,571.31,155,270,-215.07,88.39,,,,,12708.2,
America,Cuba,8936.9,7138.06,15473.8,9542.03,12191.38,30134.34,8942.08,6252.26,7049.27,14486.32,4981.47,6552.49,8495.22,27138.28,20964.44,20928.57,27848.99,20187.68,24671.23,11882.72,293797.52,
America,Peru,12940.37,12194.77,19336.97,11442.9,61803.29,8403.58,21485.55,9062.62,837951.95,1657.51,-45638.55,22863.9,19937.4,29974.47,32564.21,41065.89,39256.23,96867.16,88938.81,65872.25,1387981.29,
America,Jamaica,2832.36,3123.51,2804.76,4550.53,3535.8,2232.11,2511.25,2227.46,1360.8,777.6,736.67,695.83,,,,,,,50,,27438.69,
America,Barbados,577.54,540.5,-67.12,,,,,,,,,,,,,,,,,,1050.93,
America,Panama,,,,,,,132.96,,,,,14294.03,38814.23,9404.11,11678.01,848.5,,,,,75171.84,
Asia,Bangladesh,266476.55,161648.79,185066.71,132634.45,85992.49,161324.51,212004.61,137316,233360.14,132432.25,91861.48,102279.67,95146.34,96348.4,73702.01,58136.48,34287.33,22718.55,106090.26,118546.67,2507373.68,
Asia,Laos,51121.11,74760.22,43280.33,45437.82,28725.63,16823.19,16352.86,73203.26,17167.17,22033.9,19882.96,15833.03,52861.37,25559.98,33243.05,44922.2,39092.79,21909.68,27136.99,26114.54,695462.11,
Asia,Tajikistan,4855.04,9824.07,7502.74,10859.36,13092.85,9903.61,12707.55,11159.66,18670.61,15471.95,19728.67,19324.08,29481.65,28306.48,15551.23,13639.98,11000,5056.18,14562.22,9093.04,279790.96,
Asia,Asia Regional,109255.14,140194.06,111396.47,86088.06,122966.46,128156.13,486036.41,146566.84,197318.78,140620.8,140157.49,115800.04,120185.31,155159.17,182495.31,141703.56,164159.94,115745.64,126750.82,105279.56,3036035.98,
Asia,Mongolia,13183.82,11979.13,51000.48,21080.34,17465.43,8213.82,11159.97,6936.18,5709.18,6890.74,8009.4,10528.61,8942.23,4382.8,3860.91,3343.68,4219.06,3865.47,4131.67,3836.14,208739.07,
Asia,Timor-Leste,,30909.25,49684.95,62111.73,50233.98,58707.79,58470.46,93120.9,78777.73,43748.28,53412.42,47246.44,45807.24,44829.57,32677.05,28408.35,23516.51,12503.95,5354.92,2000,821521.51,
Asia,Myanmar,14925.03,25295.25,25519.24,30823.85,36124.04,47819.15,37700.4,51632.59,64320.4,169144.4,112221.05,123734.01,105231.67,132752.81,186584.11,228483.53,256444.33,252062.97,249075.76,253024.99,2402919.59,
Asia,Maldives,,90.17,166.53,11743.58,975.08,996.24,16555.73,6263.8,,,72.42,207.59,325.99,155.45,37.36,38.3,19.15,9.57,,,37656.96,
Asia,Georgia,17852.01,18068.64,27957.97,35450.19,35561.45,32607.46,53915.64,47594.43,38224.82,74871.82,69022.46,60484.13,56683.48,39124.27,38524.85,31443.9,45644.05,23467.33,35541.19,36235.36,818275.43,
Asia,Thailand,3848.78,3366.19,12907.42,12975.38,-9787.7,14495.39,74628.53,37850.06,11326.14,4684.87,4397.66,1867.55,9431.17,10073.65,11371.87,13389.55,7606.59,5019.81,7649.1,4808.09,241910.08,
Asia,Central Asia Regional,,,,,,,,,,32815.01,18804.49,22159.99,13712.86,20146.01,32747.05,15325.86,21402.54,6221.88,14913.22,12585.11,210834.03,
Asia,South & Central Asia Regional,,747.77,3522.93,1974.14,30961.22,2008.05,1298.64,1263.98,5918.8,5818.31,1667.22,12861.28,780.52,,,4000,6000,13751.21,7781,3790.89,104145.95,
Asia,Nepal,57670.13,78398.85,103319.82,104659.96,143134.67,155168.55,161804.73,262776.93,238773.57,239152.71,284467.45,285390.01,276878.47,236261.67,190841.16,264958.06,492162.84,258044.59,267100.56,267274.16,4368238.89,
Asia,Turkmenistan,,904.02,343.01,1589.6,983.59,899.55,142.65,190.18,28.38,3344,3923.62,3400,3270.78,-6.3,532.53,-531.15,,,-98.37,,18916.1,
Asia,Kyrgyz Rep.,9581.75,2539.05,4539.3,10476.66,21741.83,20675.99,19854.4,14483.19,17201.1,19772.98,21246.71,38227.23,18704.38,20187.66,16436.04,10275.66,10520.83,4007.46,6394.27,431.42,287297.93,
Asia,Uzbekistan,,1088.96,6941.84,20669.07,8012.42,6445.14,3423.61,2952.74,75.9,961.39,1783.83,1520,1649.67,2522.09,922.91,3187.37,1093.96,333.73,75,15,63674.63,
Asia,Philippines,19808.85,40203.39,15022.24,7840.35,13231.93,13011.41,15380.63,29981.08,246485.09,171133.94,11463.79,106357.8,62378.26,6571.75,124100.55,78114.47,14011.35,10373.8,24136.36,7653.3,1017260.32,
Asia,Cambodia,49452.79,54089.89,50556.4,24903.93,17678.56,22286.96,23503.24,20170.84,22348.68,60432.83,19890.91,28546.22,50603.86,17866.65,150861.91,49889.39,54682.45,55272.45,50206.35,48630.82,871875.14,
Asia,Sri Lanka,109301.11,128117.01,136702,171396.35,199195.49,204402.06,427718.46,239230.57,257979.96,174439.05,221381.11,175057.91,144528.57,115016.43,85845.03,65268.96,42613.94,67978.37,69763.73,55357.24,3091293.37,
Asia,Southeast Asia Regional,35.53,,,,,10397.51,13361,71030.19,43926.24,29775.03,40835.32,59171.53,32363.81,-17569.31,10045.4,9743.64,23469.83,20392.64,21586.4,11001.38,379566.15,
Asia,Azerbaijan,15573.47,19630.37,24343.86,28075.28,38220.68,38168.53,40994.79,36093.33,31128.47,22231.23,25048.81,20338.95,18888.19,17358.35,11586.34,3473.62,7571.68,6744.26,1201.78,257.61,406929.57,
Asia,Pakistan,36253.42,58658.38,49571.07,82112.4,70490.12,54604.18,532544.29,119747.18,180561.84,170284.13,292392.71,502448.32,183994.36,176663.5,155099.38,148080.85,106071.68,108421.02,87250.25,78416.12,3193665.23,
Asia,Armenia,18319.4,18551.27,21876.26,26228.34,23738.57,22502.85,33367.39,33477.73,27296.3,18912.05,19604.88,21567.52,17224.59,18874.79,17331.18,9835.8,4533,2246.86,1037.16,263.01,356788.97,
Asia,North Korea,30262.37,29275,31316,28553.64,31034,37882.78,33970.29,24663.64,27616.59,16619.79,29800,15000,20000,21000,6200,12000,15000,10000,10000,14500,444694.1,
Asia,Kazakhstan,8652.72,8400.66,8497.12,14091.36,10474.98,10190,15034.74,16879.4,14387.8,27838.44,19213.62,25714.67,16431.62,13791.69,10920.91,3927.15,741.26,,151.8,,225339.95,
Asia,Malaysia,1647.25,1701.94,4026.42,2420.41,9534.98,5820,2135.77,12798.78,631.8,2246.89,4316.28,4648.38,4714.46,5084.15,6646.55,3744.7,2706.88,3874.66,2784.68,2137.22,83622.2,
Asia,Bhutan,5201.68,12676.14,5970.58,8794.67,9129.64,5909.75,5205.96,8478.84,7190,5430.85,11420.17,11356.5,15357,5670.12,7813.91,33972.23,28798.95,2912.87,1514.83,731.79,193536.48,
Asia,China,109689.09,87086.87,86810.79,97699.72,84548.4,99423.51,88961.06,92208.56,98641.33,139957.04,136067.01,136322.6,131640.59,141420.5,124365,125553.98,92294.4,87146.66,83346.71,94236.18,2137420.01,
Asia,India,76780.28,70672.7,104306.1,67574.87,57439.71,88940.02,184433.17,84006.39,175742.1,199068.45,100944.64,144989.76,164472.34,215945.61,202041.31,149419.61,137709.98,148278.38,150390.15,83420.07,2606575.62,
Asia,Viet Nam,55599.98,54292.47,51167.69,63409.7,81654.27,81233.09,99538.75,97582.08,174670.44,176578.62,99829.89,121949.32,241646.48,270026.96,108070.78,124778.71,77484.03,85196.29,87718.59,36367.18,2188795.32,
Asia,Indonesia,66940.78,50986.16,41562.71,48286.66,46488.83,49667.93,290436.16,65845.16,96121.94,60831.07,80915.31,253493.44,66762.05,82560.08,164466.2,237942.2,258717.09,451364.21,279331.59,197521.36,2890240.95,
Asia,Afghanistan,55564.4,110546.88,357075.96,493516.92,486867.98,456434.39,386186.11,446971.19,553121.84,736543.21,727842.09,726172.51,775474.42,730363.89,745408.53,758744.28,691213.63,693947.84,621204.15,794866.67,11348066.88,
Europe,Slovenia,,575.07,77.74,386.88,,,,,,,,,,,,,,,,,1039.68,
Europe,Macedonia (Fyrom),54494.67,8468.34,56886.6,93098.82,81682.18,84905.48,80803.17,79697.54,55169.92,34784.73,43611.71,45467.54,39327.62,28322.54,24228.06,28696.37,19246.05,15813.31,15249.36,30968.54,920922.54,
Europe,Montenegro,,,,,,,,,24476.97,22746.1,24537.02,21200.26,15991.11,20431.61,13239.84,7983.61,1271.96,4995,4599.03,15193.43,176665.96,
Europe,Turkey,31570.07,15409.1,26350.98,33405.01,51974.37,10486.57,7431.26,11807.3,2625.95,696,1020,796.9,12154.83,12721.41,19207.2,20289.42,44389.37,76306.35,63713.78,59977.49,502333.37,
Europe,Europe Regional,862203.64,875035.87,481788.02,677903.38,562611.22,490164.1,454654.93,435704.14,111304.51,79050.43,113486.68,146349.9,149567.09,210050.83,211022.45,155207.32,72193.65,64156.09,103764.88,142197.6,6398416.73,
Europe,Kosovo,,,,,,,,,,67608.58,132916.82,146547.04,106865.9,85648.32,63955.27,57309.02,98566.47,19212.59,49335.95,47627.18,875593.15,
Europe,Belarus,,,,,,,,1190.43,14729.32,18972.91,16219.74,13380.56,20086.51,20170.01,18111.96,19152.08,12338.12,3667.85,568.97,707.13,159295.58,
Europe,Ukraine,,,,,,,1412.9,3452.86,25186.05,26718.15,19539.83,22773.99,46092.48,40943.63,34570.69,106493.12,322936.63,116572.5,204963.36,183447.59,1155103.81,
Europe,Bosnia-Herzegovina,246136.33,270729.46,151719.39,190312.51,153075.47,114624.88,113975.3,121961.37,101815.24,108514.7,99486.67,110440.87,83358.43,112449.51,84113.07,99646.41,65511.69,44448.71,36505.31,43354.39,2352179.7,
Europe,Serbia,,,,,,,,,239013.22,198015.3,124837.53,122347.53,111157.79,89077.53,63965.13,68172.74,60668.4,12259.86,29199.53,43755.1,1162469.65,
Europe,Albania,49443.82,31187.08,27033.35,46632.52,42436.88,53882.01,41932.29,36426.43,34510.07,23306.33,6523.16,15144.73,15451.83,9039.61,10104.39,8530.28,14555.59,4747.4,1924.3,6584.69,479396.75,
Europe,Croatia,29825.51,44140.22,162364.73,105336.01,100650.25,100270.57,99761.26,95853.79,40540.73,24117.28,22583.48,20938.01,,,,,,,,,846381.83,
Europe,Moldova,,5752.15,8779.79,8692.25,16096.08,8826.3,17789.59,17559.04,18660.76,28088.84,23175.86,18142.44,33767.08,29013.27,33300,55490.25,45451.36,44935.5,23474.19,21299.87,458294.63,
The Middle East,Middle East Regional,31635.24,15970.03,24584.47,2448.17,7902.62,11624.51,19749.34,16897.76,68107.96,57788.04,66966.64,71104.72,116037.08,198661.61,329556.87,156378.45,518891.29,394399.04,477763.14,272141.51,2858608.49,
The Middle East,Iran,13717.74,45702.89,33459.97,42644.21,68647.1,77432.62,27757.48,16909.3,510.77,7330.41,5021.6,44379.5,13147.03,16682.29,11923.03,20919.6,19858.67,16200,21000,14000,517244.21,
The Middle East,Oman,,,,,,,,105.05,,,,,,,,,,,,,105.05,
The Middle East,Lebanon,30642.55,32827.74,38489.54,42774.5,42811.08,43387.69,49664.93,178254.69,89517.09,61867.69,61777.55,55974.92,68396.51,88051.19,139002.43,145152.93,285821.69,546026.36,523411.21,524115.27,3047967.56,
The Middle East,Jordan,23279.15,29567.58,18332.24,17373.2,10223.2,8844.12,9976.59,24629.99,26825.29,13781.88,4981,2258,17802.4,17317.26,63514.09,70195.74,118808.54,252784.56,255862.47,264020.9,1250378.19,
The Middle East,Iraq,172989.24,123278.39,95873.46,142677.98,415416.6,124745.11,154749.03,145034.39,98915.74,99385.26,73056.62,46526.51,45540.78,46543.71,62002.5,227646.88,240645.66,402700.2,425969.42,238182.33,3381879.82,
The Middle East,Palestine,216832.95,245678.01,338735.74,406823.02,379167.32,362788.19,476674.92,562947.83,621916.01,660802.35,628748.79,661906.94,628408.63,623332.38,632851.43,740821.61,629672.52,572421.41,583799.42,636790.24,10611119.73,
The Middle East,Yemen,17541.88,1000,457.8,2815.66,2223.27,2912.74,2907.81,1643.04,486.29,741.81,4533.03,2255.04,8489.48,13427.65,35945.39,23641.14,53786.54,118111.61,274940.05,238668.96,806529.2,
The Middle East,Syria,9899.45,15289.87,8190.7,6166.42,13980.5,8545.26,9592.76,5733.96,6404.4,3796.92,146.41,7877.12,6586.48,77762.44,404617.82,310418.01,516451.82,1019202.68,1070455.4,1002559.38,4503677.81,
The Middle East,Saudi Arabia,,,12.54,156.53,373.24,,,105.05,,,,,,,,,,,,,647.36,
Oceania,Fiji,154.53,912,173.52,349.92,,179.91,,,,,,40,,,,1016.73,,369.07,,,3195.69,
Oceania,Oceania Regional,,,,,,,,,,,,,5000,,,,,,,5000,10000,
Oceania,Kiribati,,,155.48,165,,,,,,,,,,,,,,,,,320.48,
Oceania,Vanuatu,,,,,,,,75,,,59.12,,,,,,,,,,134.12,
Oceania,Papua New Guinea,1724.34,1633.25,1265.36,1244.16,1603.8,2454.39,3003.48,3810.55,3618,9190.05,10684.69,10778.22,9799.08,9094.94,9353.89,9012.26,19650.78,11318,9216.96,9138.73,137594.93,
Oceania,Marshall Islands,,,,,,,73.16,42.69,,298.64,290.11,,,,,169.34,,,,,873.94,
Oceania,Nauru,,,,,168.39,,,,,,,,,,,,,,,,168.39,
Oceania,Solomon Islands,,,,,73.81,,,,,,,40,35,,,,,,,,148.81,
Global unspecified,Global uspesifisert,923454.05,1105842.22,1193957.79,1251448.77,1502278.06,1667865.27,2298695.58,2972746.04,3687279.52,4405044.96,7204418.15,6589520.3,6529016.24,6846609.31,7624387.15,9629542.66,11506299.59,13688074.32,9590098.84,10118870.1,110335448.91,
Multilateral,Multilateral,2798090.39,2882672.62,3525542.71,3956754.55,3897266.31,4173378.75,4580911.08,5078764.13,5567811.46,6055613.09,6296367.26,6463820.78,6786877.19,7154169.36,7440235.73,7542926.26,7829425.46,7859050.49,8298003.66,8354095.47,116541776.74,
Administration,Administration,525727.19,562704,595177.41,651491.32,703942.43,792829.79,885265.67,1041434.65,1117803.93,1222298.87,1386964.22,1452090.79,1503048.95,1536912.89,1780013.19,1777884.17,1958192.25,1957761.5,2086886.61,2123844.12,25662273.96,
start end pm parties
17.10.1997 17.03.2000 Bondevik KrF, Sp, V
17.03.2000 19.10.2001 Stoltenberg Ap
19.10.2001 17.10.2005 Bondevik KrF, H, V
17.10.2005 16.10.2013 Stoltenberg Ap, SV, Sp
16.10.2013 31.12.2017 Solberg H, FrP
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta property="og:title" content="Trender i norsk bistand">
<meta property="og:description" content="Prioriteringer i bistanden på 2000-tallet">
<meta property="og:image" content="http://kartoteket.as/notes/bistand/raw/preview.png">
<meta property="og:url" content="http://kartoteket.as/notes/bistand/raw/index.html">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@Fossesvale">
<link rel="canonical" href="http://kartoteket.as/notes/bistand/raw/index.html">
<link href="https://fonts.googleapis.com/css?family=Vollkorn|Vollkorn+SC" rel="stylesheet">
<link rel="stylesheet" id="pageStyle" href="style-extended.css">
</head>
<body>
<div class="wrapper">
<div class="caption">
<h1 class="title">Trender i norsk bistand på 2000-tallet</h1>
<!-- <h2 class="subtitle">Prioriteringer i bistanden på 2000-tallet</h2> -->
<ul class="buttons">
<li class="button btn--geo"><button onclick="Chart.toggle(1)"><span>Fordelt </span>geografisk</button></li>
<li class="button btn--sector"><button onclick="Chart.toggle(2)"><span>Fordelt på </span>sektor</button></li>
<li class="button btn--partner"><button onclick="Chart.toggle(3)"><span>Fordelt på </span>partner</button></li>
<li class="button btn--type"><button onclick="Chart.type()">%</button></li>
</ul>
</div>
<svg></svg>
<div class="tooltip hidden">
<span class="year"></span> -
<span class="segment"></span><br>
<span class="value"></span>
</div>
<div class="desc">
<p>
Et forsøk på å bruke et <i>stabla arealdiagram</i> for å vise komparative trender. Data er henta fra Norads statistikkportal (<a href="https://norad.no/om-bistand/norsk-bistand-i-tall?tab=geo" target="_blank">Bistand i tall</a>) hvor sammenligning mellom kategorier ikke kan ses i en historisk kontekst. Mens absolutte endringer i enkeltkategorier er vanskeligere å lese utfra en visualisering som dette, blir noen relative trender tydeligere.
For politisk kontekstualisering er regjeringsskifter indikert på tidsaksen.
</p>
<p>
En <a onclick="Chart.sortStack()">alternativ sortering</a> kan i teorien øke lesbarheten (ref <a href="http://leebyron.com/streamgraph/stackedgraphs_byron_wattenberg.pdf" target="_blank">Byron & Wattenberg</a>).
</p>
<span class="source">
Datakilde: <a href="https://norad.no/om-bistand/norsk-bistand-i-tall?tab=geo" target="_blank">Norad</a> (Data extracted on 2020.01.01from Norwegian Aid Statistics)
</span>
</div>
</div>
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-60185757-1', 'auto');
ga('send', 'pageview');
</script>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://d3js.org/d3-scale-chromatic.v1.min.js"></script>
<script src="script.js"></script>
</body>
</html>
Mygroup Partnergruppe Partner 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 Total
Int. & local NGOs Internasjonale og lokale ikke-statlige organisasjoner Andre 469026.62 544125.97 629623.79 579694.66 658401.37 646622.05 777926.91 872392.79 1333421.81 1460152.58 1888116.46 2000458.86 2405795.31 2228848.02 2435352.08 2544285.78 2475947.27 1971144.88 2149596.51 2352139.06 30423072.8
Multilateral (other) Multilaterale organisasjoner Andre 431046.4 492686.54 327614.54 409173.96 475820.2 465395.94 756095.28 741941.52 720839.57 849570.46 1207698.75 1041489.07 1246470.4 2283768.25 1622411.24 2003196.6 2381035.21 1799681.04 2542015.17 2573874.36 24371824.5
Other Privat sektor Andre 230897.52 231918.54 273861.95 315839.43 310879.86 462424.86 556502.54 475484.1 447115.61 555025.82 843877.01 718386.4 1172439.73 721351.02 940839.45 338297.01 215934 174917.49 406128.19 391533.32 9783653.85
Other Offentlig-privat samarbeid Andre 23833.94 19639.7 38228.39 40609.8 43982.52 48465.6 50433.56 89092.39 113497 135539.71 105388.98 131470.09 106406.76 118885.32 193322.36 90910.23 110342.38 74741.26 82613.93 122698.86 1740102.79
Other Uspesifisert Andre 261827.51 335883.14 67035.72 1043.76 46205.25 127306.01 98564.19 117501.48 128011.05 100648 47252.13 60274.07 65237.11 53333.44 59074.83 97015.54 79793.57 48965.12 48925.73 43277 1887174.66
Public sector (in Norway) Offentlig sektor i Norge/andre giverland Andre 1379776.35 1841130.48 1731083.73 2386683.05 2721295.01 2308991.04 2380687.93 2889040.03 3824296.68 3690336.51 4982208.45 5030631.14 5105482.43 5443645.12 4998425.82 6188572.14 8542114.09 11558149.77 6487877.14 5940900.2 89431327.11
Public sector (recipient) Offentlig sektor i mottakerland Andre 1507808.65 1549704.84 1398902.95 1398242.78 1616682.2 1548200.22 1823611.85 2000631.26 2259216.63 2144014.49 2080053.32 2227008.84 1786434.98 2066100.66 5554149.2 2421636.66 2705102.34 1989303.08 1352163.28 1401826.2 40830794.4
UN Multilaterale organisasjoner FN - andre 1878097.07 1763388.79 1981712.29 2178746.22 2063974.47 2136970.29 2903897.99 2849760.43 3316750.43 3315637.57 3817514.14 3894760.57 3811411.61 3978414.88 4902946.16 4519818.22 4990294.78 4761704.06 5826307.53 6547584.82 71439692.35
UNDP Multilaterale organisasjoner FN - UNDP 764699.52 774760.24 906203.84 1118552.41 1129781.33 1106290.05 1350392.67 1435922.42 1716369.01 1685526.7 1731566.6 1944290.83 1887705.84 1596581.23 1686988.14 1672584.88 1741552.55 1735220.92 1888390.89 1985735.28 29859115.35
UNICEF Multilaterale organisasjoner FN - UNICEF 498479.23 523977.74 606000.87 665643.41 776705.83 900102.06 1338447.57 1152461.1 1135125.4 1186608.04 1297689.89 1318524.41 1310074.64 1366473.68 1403517.79 1248488.44 1365577.48 1675944.27 1677199.75 1807994.3 23255035.89
Multilateral (other) Multilaterale organisasjoner GAVI 10232.3 198182.36 199752.84 155000 290000 290000 415500 470025.78 472441.86 462564.01 490612.52 428600 606218 749432.07 1088532 1190000 1348474.47 1507275 1385692 11758535.2
Multilateral (other) Multilaterale organisasjoner GFATM 130000 138300 125000 151541 271041 301000 375000 375000 375000 450000 450000 450000 500000 600000 600000 600000 700000 6591882
Norwegian NGOs Norske ikke-statlige organisasjoner Flyktninghjelpen 238259.73 226433.53 252729.71 259230.76 295663.1 299927.7 344030.16 434288.41 487747.37 475918.7 451821.74 552111.47 524998.36 500909.91 714645.54 726278.06 749499.71 873003.19 1010596.74 1008830.37 10426924.26
Norwegian NGOs Norske ikke-statlige organisasjoner Kirkens Nødhjelp 301511.37 259611.61 322689.87 345052.03 363062.71 346198.44 396893.26 482353.41 436764.31 488579.99 452964.34 469290.04 408345.51 407320.91 440644.47 605944.5 524122.47 585307.35 587405.74 545403.84 8769466.16
Norwegian NGOs Norske ikke-statlige organisasjoner Norges Røde Kors 317360.75 290389.53 392262.01 350089.01 355874.01 354177.41 449005.62 418899.65 388993.2 415361.53 434725.06 472712.04 455823.06 587475.87 735558.97 644644.69 702657.7 990319.48 986019.46 883586.45 10625935.49
Norwegian NGOs Norske ikke-statlige organisasjoner Norsk Folkehjelp 325723.11 316975.09 266036.25 306904.63 267041.29 312005.32 358341.34 421145.7 403727.81 381298.69 385390.25 344262.97 365489.5 353999.8 347399.9 361497.32 359210.96 448300.05 460211.74 434673.91 7219635.65
Norwegian NGOs Norske ikke-statlige organisasjoner Redd Barna Norge 136985.1 138928.47 141569.56 156291.3 181663.51 162974.09 187456.4 177806.25 196708.15 223033.15 218200.81 200463.1 182701.53 174874.16 219589 277606.23 415152.14 417076.44 418719.2 358522.87 4586321.48
Norwegian NGOs Norske ikke-statlige organisasjoner Andre 860849.62 794822.29 874005.44 939693.73 1067117.46 1115419.06 1358612.89 1311373.59 1514162.55 1546249.06 1665104.98 1621979.78 1621383.38 1736165.62 1850013.23 1894910.02 1930752.16 1711525.17 1741517.13 1878525.76 29034182.92
Multilateral (other) Multilaterale organisasjoner Regionale utviklingsbanker 304624.09 424238.24 441781.95 456499 505462.8 552054.83 591457.74 642488.18 808626.69 871166.05 875299.1 879151.39 788780.81 996445.02 812922.54 1427019.03 935685.12 1084052.86 1201461.15 1174117.13 15773333.72
World Bank Multilaterale organisasjoner Verdensbanken 749283.9 576298.59 1254230.96 1306572.71 1295969.2 1506412.67 1831097.36 1627790.49 1806057.23 2489956.91 2301158.63 2651053.96 2529585.08 1967364.31 2682360.47 3394473.22 2470812.62 2943123.12 3143509.41 3094724.92 41621835.77
/* jshint laxbreak: true */
/* jshint expr: true */
/* global d3 */
/* context dependent style sheet loading */
function inIframe () {
'use strict';
try {
return window.self !== window.top;
} catch (e) {
return true;
}
}
if(inIframe()){
document.getElementById('pageStyle').setAttribute('href', 'style-simple.css');
}
var Chart = (function(window,d3) {
/* jshint validthis: true */
/*jshint latedef:false*/
'use strict';
var width,
height,
margin,
isMobileIsh,
token = 0, // which dataset to use on load
locale = 'no',
showPercentage = false,
sortOrder = showPercentage ? d3.stackOrderDescending : d3.stackOrderReverse,
duration = 1500,
delay = 2000,
svg = d3.select('svg'),
g = svg.append('g'),
segments = g.append('g').attr('class', 'segments'),
xAxis = g.append('g').attr('class', 'axis axis--x'),
govGroup = g.append('g').attr('class', 'gov'),
curtain = g.append('rect').attr('class', 'curtain'), // removed after initial render
tooltip = d3.select('.tooltip'),
segment,
labels,
govLines,
govLabels,
x,
y,
color,
// t = d3.transition().duration(850).ease(d3.easeCubicInOut),
goverments,
schemes = ['Greens','YlOrRd','PuBu'],
timeRange = d3.range(1999, 2019),
formatYear = d3.timeFormat('%Y'),
parseYear = d3.timeParse('%Y'),
area,
stack,
aggregatedData = [],
layers = [],
series = [],
no = d3.map()
.set('Africa', 'Afrika')
.set('America', 'Amerika')
.set('Asia', 'Asia')
.set('Europe', 'Europa')
.set('The Middle East', 'Midtøsten')
.set('Oceania', 'Oseania')
.set('Global unspecified', 'Globalt')
.set('Multilateral', 'Multilateralt')
.set('Administration', 'Aministrasjon')
.set('Good governance', 'Godt styresett')
.set('Conflict Resolution', 'Konflikt')
.set('Economic development and trade', 'Finans og handel')
.set('Education', 'Utdanning')
.set('Health and social services', 'Helse og sosial sektor')
.set('Environment and energy', 'Miljø og energi')
.set('Emergency assistance', 'Nødhjelp')
.set('Multilateral', 'Multilateral')
.set('Admin & Multilateral', 'Administrasjon og multilateralt')
.set('Migrants in Norway', 'Flyktninger i Norge')
.set('Unspecified', 'Uspesifisert')
.set('Multilateral (other)','Multilateralt')
.set('UN','FN')
.set('World Bank','Verdensbanken')
.set('Norwegian NGOs','Norske NGOer')
.set('Int. & local NGOs','Internasjonale NGOer')
.set('Public sector (in Norway)','Offentlig sektor i Norge')
.set('Public sector (recipient)','Offentlig sektor ute')
.set('Other','Andre');
// d3.csv('geo.csv', parse, init);
d3.queue()
.defer(d3.csv, 'geo.csv', parseRow)
.defer(d3.csv, 'sector.csv', parseRow)
.defer(d3.csv, 'partner.csv', parseRow)
.defer(d3.csv, 'gov.csv', parseGov)
.await(init);
/**
* init chart
*/
function init(error, geo, sector, partner, gov) {
if (error) { throw error; }
aggregatedData.push(aggregateByDimension('Verdensdel', geo));
aggregatedData.push(aggregateByDimension('Sektorgruppe', sector));
aggregatedData.push(aggregateByDimension('Mygroup', partner));
// re-stack data as functional series. NB: SE OGSÅ http://learnjsdata.com/group_data.html
timeRange.forEach( function(y) {
var row = { year: parseYear(y) };
aggregatedData.forEach( function(data) {
for (var d in data[0]) {
if(showPercentage) {
row[d] = Math.round(data[0][d][y] / data[1][y] * 100);
} else {
row[d] = data[0][d][y];
}
}
});
series.push(row);
});
// gov
goverments = gov;
update();
// setTimeout(step, delay, 2);
}
/**
* Updates stack, layers, segments and layers on datachange
*/
function update() {
// ref:https://github.com/d3/d3-shape/blob/master/README.md#stack
stack = d3.stack()
.keys(Object.keys(aggregatedData[token][0]))
.order(sortOrder)
.offset(d3.stackOffsetWiggle);
if(showPercentage) {
stack.offset(d3.stackOffsetExpand);
}
layers = stack(series);
// console.log(series)
// Ref: https://github.com/d3/d3-selection#joining-data
segment = segments.selectAll('path').data(layers);
segment.enter()
.append('path')
.attr('class', 'segment')
.on('mouseover', mouseOver)
.on('mouseout', mouseOut)
.on('mousemove', mouseMove)
.merge(segment);
segment.exit().remove();
labels = segments.selectAll('text').data(layers);
labels.enter()
.append('text')
.attr('class', 'label')
.merge(labels);
labels.exit().remove();
govLines = govGroup.selectAll('line').data(goverments);
govLines.enter()
.append('line')
.merge(govLines);
govLines.exit().remove();
govLabels = govGroup.selectAll('text').data(goverments);
govLabels.enter()
.append('text')
.attr('class', 'label')
.merge(govLabels);
govLabels.exit().remove();
color = d3.scaleSequential(d3['interpolate' + schemes[token]]).domain([-4, 9]); // -4 to skip the lighter end of the scale
render();
}
/**
* render
*/
function render() {
setDimensions(window.innerWidth);
// scales
x = d3.scaleTime()
.domain([parseYear(1999), parseYear(2018)])
.range([0, width]);
y = d3.scaleLinear()
.domain([d3.min(layers, stackMin), d3.max(layers, stackMax)])
.range([height, 0]);
area = d3.area()
.x(function(d) {return x(d.data.year); })
.y0(function(d) {return y(d[0]) - 0.2; }) // .2 spacing, ref: https://bl.ocks.org/HarryStevens/c893c7b441298b36f4568bc09df71a1e
.y1(function(d) {return y(d[1]) + 0.2; })
// .curve(d3.curveBasis);
.curve(d3.curveCardinal);
// draw
svg.attr('width', (width + margin.left + margin.right ))
.attr('height', (height + margin.top + margin.bottom));
g.attr('transform', 'translate(' + margin.left + ',' + margin.top + ')');
// layers
segments.selectAll('.segment')
.transition().duration(850).ease(d3.easeCubicInOut)
.attr('d', function(d) { return area(d); })
.attr('fill', function(d) { return color(d.index); });
// labels
segments.selectAll('.label')
.attr('x', 13)
.attr('dy', '0.35em')
.attr('transform', 'translate(' + width + ')')
.style('fill', function(d) { return color(d.index); })
.style('opacity', 0 )
.text(function(d) { return lang(d.key); })
.transition().duration(850).ease(d3.easeCubicInOut)
.style('opacity', 1 )
.attr('transform', function(d) {
var last_element = d[d.length - 1];
return 'translate(' + width + ',' + y(last_element[1] - (last_element[1] - last_element[0])/2) + ')';
});
xAxis.attr('transform', 'translate(0,' + 0 + ')')
.call(
d3.axisBottom(x)
.ticks(d3.timeYear.every(2))
.tickSizeInner(height)
.tickSizeOuter(0)
.tickPadding(- (height / 2) - 10)
)
.select('.tick:last-of-type text')
.attr('dx', -5)
.style('text-anchor', 'end');
govGroup.selectAll('line')
.attr('x1', function (d) { return x(d.start); })
.attr('y1', 28)
.attr('x2', function (d) { return x(d.start)+3; })
.transition().duration(350).ease(d3.easeCubicInOut)
.attr('y2', function (d, i) {
var modifier = showPercentage ? 0.25 : -1;
return height + (( i%2 ? 50 : 25 ) * modifier) ;
})
.attr('stroke-width', function (d, i) { return i ? 1 : 0; });
govGroup.selectAll('.label')
.attr('text-anchor', function (d, i) { return i === 0 ? 'end' : 'start'; })
.transition().duration(350).ease(d3.easeCubicInOut)
.attr('transform', function(d, i) {
var modifier = showPercentage ? 0.75 : -1;
var xPos = i === 0 ? x(d.end) : x(d.start);
var yPos = height + (( i%2 ? 40 : 15 ) * modifier);
return 'translate(' + xPos + ',' + yPos + ')';
});
govGroup.selectAll('tspan').remove();
govGroup.selectAll('.label').append('tspan')
.text(function(d) { return d.pm; })
.attr('x', function (d, i) { return i === 0 ? -10 : -1; })
.attr('dy', '0.35em');
govGroup.selectAll('.label').append('tspan')
.text(function(d) { return '(' + d.parties + ')'; })
.attr('x', function (d, i) { return i === 0 ? -10 : -1; })
.attr('dy', '1.35em')
.style('font-size', '10px');
// position caption and credits
// var caption = d3.select('.caption');
// var captionOffset = Math.max(0, width - caption.node().getBoundingClientRect().width)/2;
// caption.style('left', captionOffset + 'px');
// Animate curtain on first render only
g.select('.curtain')
.attr('x', -1 * width)
.attr('y', -1 * height)
.attr('height', height)
.attr('width', width)
.attr('transform', 'rotate(180)')
.style('fill', '#fcfcfc')
.transition().duration(850).ease(d3.easeCubicInOut)
.attr('width', 0)
.remove();
}
// auxiliary functions
function lang(s) {
if(locale === 'no' && no.has(s)) {
return no.get(s);
}
return s;
}
function mouseOver () {
d3.select(this).classed('hover', true);
}
function mouseOut () {
d3.select(this).classed('hover', false);
tooltip.classed('hidden', true);
}
function mouseMove (d) {
var mouse = d3.mouse(this),
mouseX = mouse[0],
aligner = -2 + (width - mouseX) / (width / 2),
year = formatYear(d3.timeYear.round(x.invert(mouseX))),
// year = formatYear(x.invert(mouseX)),
data = d.filter(function(a) { return formatYear(a.data.year) === year; })[0].data,
segment = d.key;
if(data.hasOwnProperty(segment)) {
var value = d3.format('s')(data[segment]);
var percent = d3.format('.0%')(data[segment] / aggregatedData[0][1][year]);
tooltip.select('.segment').text(lang(segment));
tooltip.select('.year').text(year);
tooltip.select('.value').text(showPercentage ? percent : value);
tooltip.style('left', ( mouseX + (90 * aligner) ) +'px')
// .style('color', color(d.index))
// .style('top', '100px')
.classed('hidden', false);
}
}
function toggle(index) {
token = index ? index-1 : token++;
if (token === series.length) {
token = 0;
}
update();
}
function sortStack() {
sortOrder = sortOrder === d3.stackOrderInsideOut ? ( showPercentage ? d3.stackOrderDescending : d3.stackOrderReverse ) : d3.stackOrderInsideOut;
update();
}
function type() {
showPercentage = !showPercentage;
sortOrder = showPercentage ? d3.stackOrderDescending : d3.stackOrderReverse;
if (event) {
event.target.textContent = showPercentage ? 'NOK' : '%';
}
update();
}
function aggregateByDimension(dimension, data) {
var totals;
var sumTotals = {};
totals = d3.nest()
.key(function(d) { return d[dimension]; })
.rollup(function(v) {
var row = {};
timeRange.forEach( function(y) {
row[y] = Math.round(d3.sum(v, function(d) {
// if(dimension === 'Verdensdel' && d.Verdensdel === 'Multilateral'){
// console.log(d)
// }
return d[y];
}));
});
return row;
})
.object(data);
timeRange.forEach( function(y) {
sumTotals[y] = d3.nest()
.rollup(function(values) { return d3.sum(values, function(d) { return d[y]; }); })
.object(data);
});
// console.log(totals)
return [totals, sumTotals];
}
function parseRow(input) {
var output = {};
for (var k in input) {
if(isNaN(k)) {
output[k] = input[k];
} else {
output[k] = +input[k];
}
}
return output;
}
function parseGov(d) {
var parser = d3.timeParse('%d.%m.%Y');
return {
start: parser(d.start),
end: parser(d.end),
pm: d.pm,
parties: d.parties
};
}
function stackMax(layer) {
return d3.max(layer, function(d) { return d[1]; });
}
function stackMin(layer) {
return d3.min(layer, function(d) { return d[0]; });
}
function setDimensions(window) {
isMobileIsh = window <= 470;
if (isMobileIsh) {
margin = {top: 20, right: 20, bottom: 10, left: 10 };
} else {
margin = {top: 30, right: 200, bottom: 50, left: 20 };
}
width = Math.min(window, 970) - margin.left - margin.right;
height = width/1 - margin.top - margin.bottom;
}
function step (i) {
if ( i >= 75) {
sortStack();
} else if (i > 50) {
type();
} else {
toggle(Math.min(Math.round(i/10),3));
}
i = Math.random() * 100 | 4;
setTimeout(step, delay, i);
}
return {
render : render,
toggle : toggle,
sortStack : sortStack,
type: type,
};
})(window,d3);
window.addEventListener('resize', Chart.render); // should debounce...
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 24 columns, instead of 25. in line 1.
Sektorgruppe,Sektor,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,Total,
Good governance,Conflict prevention and resolution, peace and security,255975.66,216824.56,294270.79,329156.34,391208.64,395886.23,516240.08,1026265.24,1174813.02,1175604.74,1255187.94,1292002.93,1285982.5,1293312.33,1300422.56,1299929.93,1249411.92,1106478.53,1272204.75,1551285.02,18682463.69,
Good governance,Government and civil society, general,853836.74,1106901.91,1220029.38,1501574.26,1321593.13,1635980.93,1814286.72,1859283.82,2221386.54,2289280.09,2640717.8,2581538.55,2672232.2,2597083.57,3136232.17,2917551.81,2848869.33,2464344.58,2519562.86,3038558.61,43240845,
Economic development and trade,Action relating to debt,182650,81920.19,187513.47,106871.06,157452.5,82742.3,15303.66,144685.49,231680.67,181090.77,76851.11,99687.53,122000.06,123073.92,139323.31,115035.01,140342.88,150190.23,202043.39,210290.6,2750748.15,
Economic development and trade,Industry,123068.2,53819.51,61480.06,48877.67,1471.34,70293.13,77153.72,80394.17,68991.79,46835.47,60609.95,121444.12,95209.13,154081.05,142034.59,148167.63,152017.95,78844.42,92497.33,119130.21,1796421.44,
Economic development and trade,Other multisector,233090.92,203248.55,401545.88,400416.93,597359.68,564803.49,1000160.39,877225.68,925795.84,931365.42,660605.6,950311.91,819786.97,1035599.76,865220.17,884838.97,714908.15,675269.64,975028.19,1317729.49,15034311.62,
Economic development and trade,Construction,,,1500,56.4,1574.59,1358.2,113.11,34.81,955,948,-14.59,98.4,420.6,73.6,3800,1000,1323.91,1718.99,,,14961.02,
Economic development and trade,Business and other services,96081.58,116787.71,91051.73,125115.17,150114.84,216941.99,228630.42,244227.16,264339.81,204313.38,224993.02,183364.51,187667.68,103499.96,43813.41,1334136.11,1554005.19,1497189.88,1598332.26,1792563.66,10257169.47,
Economic development and trade,Tourism,272.81,686.76,923.2,975.4,5645.86,3993.08,36397.03,6015.35,3167.93,28016.37,420.93,18706.98,71549.46,6455.75,15607.73,2751.06,1957.3,2518.76,2220.58,2386.75,210669.08,
Economic development and trade,Other commodity assistance,,,,,,,268.91,426.44,367.59,14879.33,2511,2760.28,,,,,,,,,21213.55,
Economic development and trade,General budget support,85000,130000,164000,236262,372464,408961.72,390492.28,576782,824400,1161735,1100082,1079315,872390,652550,490000,419000,415349,235000,235000,150000,9998783,
Economic development and trade,Developmental food aid / Food security assistance,,,3517,19532.95,28661.88,552.22,132.99,41849.08,5076.39,7844.98,5267.4,4223.74,3000,27000,25000,344.74,2391.91,50,,100,174545.28,
Economic development and trade,Banking and financial services,106274.51,78417.71,57000.4,87285.45,76733.93,160119.36,109272.94,83501.7,250062.96,220713.34,291841.58,252701.75,764055.54,142346.35,442184.67,48715.35,39832.03,69470.72,129605.41,89792.28,3499927.99,
Economic development and trade,Communications,58602.75,51958.47,46264.76,54179.44,27373.44,16980.83,19383,66429.45,25580.17,62501.25,-25512.97,-29835.6,12408.15,12869.79,7293.94,14924.9,16341.11,12412.88,17910.31,13001.89,481067.96,
Economic development and trade,Fishing,78320.17,155023.69,130795.65,100567.81,116696.7,110070.55,208051.2,127839.26,116669.42,122651.5,139454.51,138059.29,152150.08,170248.04,190390.35,172717.19,204895.61,167864.92,253418.62,280524.57,3136409.1,
Economic development and trade,Transport and storage,66339.42,50785.41,65441.5,66761.29,145322.4,50680.23,63892.06,95515.73,115016,8743.05,59028.79,31199.21,23218.04,6773.06,947.5,2751.91,5096.26,3644.73,7268.96,-315.61,868109.93,
Economic development and trade,Trade policy and regulations and trade-related adjustments,17250,22797.38,26594.35,38719.82,52786.98,55156.06,66406.44,72207.95,120845.9,108516.13,115688.17,112687.08,101973.2,103887.81,77003.1,92558.21,92654.59,72988.69,78829.6,100401.39,1529952.86,
Economic development and trade,Agriculture,194830.79,243219.3,294725.64,336194.58,297871.68,354611.92,320452.47,369732.8,446322.34,418424.15,500087.93,462154.67,476223.85,557160.85,911779.5,711254.44,663819,447486.66,531868.02,487521.77,9025742.35,
Economic development and trade,Forestry,59403.21,69550.96,41973.49,44486.53,29870.84,46484.55,25046.97,19873.26,29752.32,110475.42,67952.5,82257.91,76904.62,62282.58,38709.12,40048.23,33823.99,31860.05,14076.21,15632.56,940465.35,
Economic development and trade,Mineral resources/ mining,5902.95,11014.78,20065.61,15885.46,20912,16765.36,42675.86,56893.08,90256.91,148217.69,162269.6,181875.86,235936.51,187646.41,165244.03,164793.96,139271.98,117675.65,110026.65,89402.45,1982732.8,
Education,Secondary education,71367.48,37337.03,62955.99,58307.8,25394.6,32084.55,51314.17,63682.64,42114.99,52071.99,69711.28,56929.05,49088.8,44770.05,30289.53,47111.5,53347.93,87589.05,148042.05,180893.13,1264403.61,
Education,Post-secondary education,152818.06,185705.18,183107.72,190231.44,193768.86,185299.78,180961.06,146414.17,207915.19,297040.51,323497.1,299895.99,224726.07,231155.75,222598.58,276754.18,248690.43,321342.81,291173.8,253581.65,4616678.33,
Education,Basic education,300255.75,290489.97,310723.8,442982.75,651097.19,781130.16,1072292.73,1065261.39,872036.77,923188.03,1030290.43,924050.5,1004658.86,1047931.02,1111222.47,1143618.82,1702462.21,2180227.16,1973954.77,2050394.67,20878269.43,
Education,Education, level unspecified,189244.4,154055.45,162407.56,164185.63,215281.29,294653.54,357189.3,444555,453633.46,269007.75,335664.05,321959.56,238079.43,283753.72,341895.92,342645.81,469066.82,503009.1,653818.82,531926.02,6726032.62,
Health and social services,Non-communicable diseases (NCDs),,,,,,,,,,,,,,,765.12,5955.63,14080.43,17373.4,26877.86,30621.25,95673.69,
Health and social services,Health, general,188148.86,180416.53,293260.54,257404.69,327635.61,262871.01,369903.65,376652.57,403845.16,368252.77,347774.55,346887.13,403697.43,454833.07,622952.19,542914.24,537074.45,615029.77,551030.38,467590.44,7918175.04,
Health and social services,Other social infrastructure and services,407737.3,616834.76,460988.03,590826.6,514008.04,565106.2,736848.13,570929.76,519245.26,578582.93,554553.44,480983.72,461578.66,411147.92,536999.69,460142.28,410196.69,416943.16,538274.14,364420.91,10196347.63,
Health and social services,Water supply and sanitation,227267.24,214177.75,173938.86,216564.05,152020.2,212650.71,281804.52,230533,272989.63,254828.42,261304.68,234407.47,126815.65,164761.88,186364.08,236157.6,206834.38,157559.45,134907.75,146050.49,4091937.81,
Health and social services,Population policies/programmes and reproductive health,131960.91,181707.85,246918.8,252156.22,277388.63,269475.73,287410.89,386392.64,398820.39,449202.1,735745.82,455836.35,438333.4,443039.88,921201.91,858729.5,728373.89,177440.72,312454.61,432243.92,8384834.16,
Health and social services,Basic health,135837.57,191854.03,194407.65,206913.74,190396.53,253132.87,332847.83,355539.68,274009.13,456001.59,377180.89,206201.12,370409.78,342007.51,279861.18,505990.99,552929.62,1034727.35,1216601.38,1244309.01,8721159.45,
Environment and energy,Energy generation, renewable sources,131617.13,91161.34,39850.2,61734.83,114638.54,123137.64,307042.7,272123.71,1319032.15,576038.28,71428.6,465189.65,865841.03,1430283.66,789543.65,816897.73,468510.74,126171.75,153540.53,180219.42,8404003.27,
Environment and energy,Energy generation, non-renewable sources,656.93,634.74,,,1500,180,,622.87,40980.85,31669.15,1673.16,25454.73,1271.53,500,3453,3713.24,3889.19,,,,116199.38,
Environment and energy,Nuclear energy electric power plants,,,,823.39,1784.09,1550.67,7208.3,9755.95,9313.51,,19400,14499.08,22279.38,19441.32,8891.46,14081.46,19796.62,3070,,-129.23,151766,
Environment and energy,Energy Policy,78071.52,52324.39,131947.72,86738.67,84506.37,124663.19,135935.15,134648.79,206820.33,246842.64,161448.61,187468.34,258721.03,329345.95,278917.73,203481.86,287893.52,230424.62,251276.55,268517.63,3739994.59,
Environment and energy,General environmental protection,352972.41,331465.87,418034.81,357223.93,373804.96,372539.93,374271.14,470700.57,566460.78,747720.29,1730297.78,2123455.68,1681799.23,2626655.46,5624624.88,3806139.64,3279340.76,2943060.84,3187991.04,3348635.45,34717195.46,
Environment and energy,Heating, cooling and energy distribution,285645.51,247729.58,248202.86,227668.32,236939.35,179051.32,190445.88,198878.74,96358.38,253662.04,313732.83,270419.46,293852.73,289382.1,281978.32,198352.68,147861.84,301779.11,148343.06,214163.45,4624447.57,
Emergency assistance,Reconstruction relief and rehabilitation,54518.04,70806.22,123256.03,149484.84,119138.45,83752.8,93937.09,90883.66,154318.03,112092.65,88614.08,290610.68,150155.99,118574.83,78354.84,313074.56,113979.41,108192.9,218218.34,125407.77,2657371.22,
Emergency assistance,Disaster prevention and preparedness,,,,,,,,,,50634.91,130267.43,118723.91,190146.9,211710.15,293421.94,331296.73,274857.58,157861.81,149138.25,48800.64,1956860.25,
Emergency assistance,Emergency Response,1469690.41,924550.07,1011256.24,1033205.52,1227915.73,1007646.66,2139868.5,1379910.72,1578495.88,1596796.32,1178842.1,1752153.48,1774391.15,1621495.79,2149754.32,2185337.3,2827936.68,3579003.21,4132243.37,3973633.88,38544127.33,
Adm. og multilateral,Administrative costs/multilateral,2798090.39,2882672.62,3525542.71,3956754.55,3897266.31,4173378.75,4580911.08,5078764.13,5567811.46,6055613.09,6296367.26,6463820.78,6786877.19,7154169.36,7440235.73,7542926.26,7829425.46,7859050.49,8298003.66,8354095.47,116541776.74,
Adm. og multilateral (Norge),Administrative costs/multilateral,525727.19,562704,595177.41,651491.32,703942.43,792829.79,885265.67,1041434.65,1117803.93,1222298.87,1386964.22,1452090.79,1503048.95,1536912.89,1780013.19,1777884.17,1958192.25,1957761.5,2086886.61,2123844.12,25662273.96,
Uspesifisert,Unallocated/unspecified,328363.7,441161.35,205392.33,132546.51,116466.53,157309.26,244157.94,361265.08,334736.75,272372.41,337955.07,341271.95,359181.27,321475.04,234564.38,305470.96,341640.57,158764.51,365620.58,206983.91,5566700.11,
Flyktninger i Norge,Refugees in donor countries,433200,864400,607694,994152.15,1248874.02,750110.92,431020.31,398782,456233.66,805993,2532839,2027068,1475103,1318883,1586683,1756514,3732893,6719562,1239643,827431,30207079.08,
body {
font-family: 'Vollkorn SC', serif;
background-color: #F6F1EB /*#F7EEDF*/;
color: #332E2C;
}
.wrapper {
position: relative;
max-width: 970px;
margin: 30px auto;
}
/* segments */
.segment {
fill-opacity: .8;
transition: fill-opacity 400ms ease;
}
.segment.hover,
.segment:hover {
fill-opacity: 1;
}
/* labels */
.label {
font-size: 13px;
}
.gov line {
opacity: .5;
stroke: #F0882A;
}
.gov .label {
opacity: .75;
fill: #F0882A;
stroke: none;
}
/* axis */
.domain {
display: none;
}
/* ticks */
.axis--x .tick {
opacity: .5;
font-size: 12px;
}
.axis--x .tick line {
opacity: 1;
stroke: #F6F1EB;
}
.axis--x .tick text {
fill: #fff;
stroke: none;
font-size: 1rem;
}
.axis--x .tick:hover {
opacity: 1 ;
}
/* tooltip */
.tooltip {
position: absolute;
top: 100px;
width: 200px;
padding: 10px 0;
border-bottom: 1px solid #F0882A;
opacity: .75;
color: #F0882A;
background-color: #F6F1EB;
text-align: center;
font-size: .75rem;
line-height: 1.7
pointer-events: none;
z-index: 20;
}
.tooltip .segment {}
.tooltip .year { }
.tooltip .value {
line-height: 1.5;
opacity: 1;
font-size: 1rem;
}
/* caption */
.caption {
position: relative;
border-top: 1px solid #706561;
font-size: .8rem;
text-align: center;
}
@media (min-width: 720px) {
.caption {
width: 540px;
margin: 0 auto;
}
}
/*
@media (min-width: 1440px) {
.caption {
position: absolute;
top: 30px;
background-color: #F6F1EB;
margin-left: 12px;
}
}
*/
.title {
font-weight: 400;
font-size: 1.1rem;
margin-bottom: 1px;
}
.subtitle {
font-weight: 400;
font-size: .8rem;
margin-top: 0px;
margin-bottom: 6px;
}
/* buttons */
.buttons {
display: flex;
justify-content: space-between;
width: 100%;
margin: 0;
padding: 0;
border-top: 1px solid #706561;
list-style-type: none;
/* z-index: 1000;*/
}
.button {
flex: 1;
}
.button + .button {
border-left: 1px solid #706561;
}
button:hover,
.button:hover {
background-color: rgba(51,46,44,0.1);
cursor: pointer;
}
.button button {
border: 0;
border-radius: 0;
padding: 12px 16px;
background-color: transparent;
font-family : inherit;
font-size: 12px;
}
button:focus {
outline: none;
}
@media (max-width: 720px) {
.button button span {
display: none;
}
}
.btn--geo button {
color: #155C2B;
}
.btn--sector button {
color: #B13451;
}
.btn--partner button {
color: #3D6E8D;
}
.btn--type {
flex: 0 1 59px;
}
.desc {
font-family: Vollkorn, serif;
font-size: 14px;
line-height: 1.33;
text-align: justify;
}
@media (min-width: 720px) {
.desc {
margin: 0 auto;
max-width: 700px;
text-align: center;
}
}
.desc p {
border-top: 1px solid #706561;
padding-top: 12px;
}
.desc a,
.desc i,
.desc span {
// font-style: italic;
font-family: 'Vollkorn SC', serif !important;
}
// .source {
// float: right;
// font-size: 12px;
// text-align: center;
// }
/* generic */
.hidden {
opacity: 0;
transition: opacity 400ms ease;
/*display: none;*/
}
a {
color: #F0882A;
}
/* segments */
.segment {
fill-opacity: .8;
transition: fill-opacity 400ms ease;
}
.segment.hover,
.segment:hover {
fill-opacity: 1;
}
/* labels */
.label {
font-size: 13px;
}
.gov line {
opacity: 1;
stroke: #F0882A;
}
.gov .label {
opacity: .75;
fill: #F0882A;
stroke: none;
}
/* axis */
.domain {
display: none;
}
/* ticks */
.axis--x .tick {
opacity: .5;
font-size: 12px;
}
.axis--x .tick line {
opacity: 1;
stroke: #F6F1EB;
}
.axis--x .tick text {
fill: #fff;
stroke: none;
font-size: 1rem;
}
.axis--x .tick:hover {
opacity: 1 ;
}
/* tooltip */
.tooltip {
position: absolute;
top: 27px;
width: 200px;
padding: 10px 0;
border-bottom: 1px solid #F0882A;
opacity: .75;
color: #F0882A;
background-color: #F6F1EB;
text-align: center;
font-size: .75rem;
line-height: 1.7
pointer-events: none;
z-index: 20;
}
.tooltip .segment {}
.tooltip .year { }
.tooltip .value {
line-height: 1.5;
opacity: 1;
font-size: 1rem;
}
@media (min-width: 720px) {
.caption {
width: 500px;
}
}
/* caption */
.title, .subtitle {
display: none;
}
/* buttons */
.buttons {
display: flex;
margin: 0;
padding: 0;
list-style-type: none;
}
.desc,
.source {
display: none;
}
/* generic */
.hidden {
opacity: 0;
transition: opacity 400ms ease;
/*display: none;*/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment