@explorable-viz/fluid 0.0.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +36 -0
  3. package/dist/article/app.js +40580 -0
  4. package/dist/article/css/styles.css +191 -0
  5. package/dist/article/css/view-styles.css +141 -0
  6. package/dist/article/fluid/dataset/renewables-restricted.fld +139 -0
  7. package/dist/article/fluid/example/arithmetic.fld +1 -0
  8. package/dist/article/fluid/example/array.fld +2 -0
  9. package/dist/article/fluid/example/compose.fld +2 -0
  10. package/dist/article/fluid/example/desugar/list-comp-1.fld +1 -0
  11. package/dist/article/fluid/example/desugar/list-comp-10.fld +1 -0
  12. package/dist/article/fluid/example/desugar/list-comp-2.fld +1 -0
  13. package/dist/article/fluid/example/desugar/list-comp-3.fld +1 -0
  14. package/dist/article/fluid/example/desugar/list-comp-4.fld +1 -0
  15. package/dist/article/fluid/example/desugar/list-comp-5.fld +1 -0
  16. package/dist/article/fluid/example/desugar/list-comp-6.fld +1 -0
  17. package/dist/article/fluid/example/desugar/list-comp-7.fld +1 -0
  18. package/dist/article/fluid/example/desugar/list-comp-8.fld +1 -0
  19. package/dist/article/fluid/example/desugar/list-comp-9.fld +1 -0
  20. package/dist/article/fluid/example/desugar/list-enum.fld +1 -0
  21. package/dist/article/fluid/example/dicts.fld +11 -0
  22. package/dist/article/fluid/example/div-mod-quot-rem.fld +4 -0
  23. package/dist/article/fluid/example/factorial.fld +6 -0
  24. package/dist/article/fluid/example/filter.fld +1 -0
  25. package/dist/article/fluid/example/first-class-constr.fld +1 -0
  26. package/dist/article/fluid/example/flatten.fld +12 -0
  27. package/dist/article/fluid/example/foldr-sumSquares.fld +1 -0
  28. package/dist/article/fluid/example/graphics/background.fld +7 -0
  29. package/dist/article/fluid/example/graphics/grouped-bar-chart.fld +9 -0
  30. package/dist/article/fluid/example/graphics/line-chart.fld +13 -0
  31. package/dist/article/fluid/example/graphics/small-barchart.fld +5 -0
  32. package/dist/article/fluid/example/graphics/stacked-bar-chart.fld +3 -0
  33. package/dist/article/fluid/example/include-input-into-output.fld +1 -0
  34. package/dist/article/fluid/example/length.fld +1 -0
  35. package/dist/article/fluid/example/lexicalScoping.fld +3 -0
  36. package/dist/article/fluid/example/lib/some-constants.fld +1 -0
  37. package/dist/article/fluid/example/linked-inputs/energyscatter.fld +24 -0
  38. package/dist/article/fluid/example/linked-inputs/mini-energyscatter.fld +30 -0
  39. package/dist/article/fluid/example/linked-inputs/mini-non-renewables.fld +3 -0
  40. package/dist/article/fluid/example/linked-inputs/mini-renewables.fld +6 -0
  41. package/dist/article/fluid/example/linked-inputs/non-renewables.fld +67 -0
  42. package/dist/article/fluid/example/linked-inputs/renewables.fld +301 -0
  43. package/dist/article/fluid/example/linked-outputs/bar-chart-line-chart.expect.fld +0 -0
  44. package/dist/article/fluid/example/linked-outputs/bar-chart-line-chart.fld +26 -0
  45. package/dist/article/fluid/example/linked-outputs/convolution-data.fld +5 -0
  46. package/dist/article/fluid/example/linked-outputs/convolution.fld +12 -0
  47. package/dist/article/fluid/example/linked-outputs/line-chart.fld +13 -0
  48. package/dist/article/fluid/example/linked-outputs/moving-average-data.fld +9 -0
  49. package/dist/article/fluid/example/linked-outputs/moving-average.fld +15 -0
  50. package/dist/article/fluid/example/linked-outputs/pairs-data.fld +1 -0
  51. package/dist/article/fluid/example/linked-outputs/pairs.fld +3 -0
  52. package/dist/article/fluid/example/linked-outputs/renewables.fld +100 -0
  53. package/dist/article/fluid/example/linked-outputs/stacked-bar-chart-scatter-plot.fld +38 -0
  54. package/dist/article/fluid/example/lookup.fld +15 -0
  55. package/dist/article/fluid/example/map.fld +1 -0
  56. package/dist/article/fluid/example/mergeSort.fld +22 -0
  57. package/dist/article/fluid/example/normalise.fld +3 -0
  58. package/dist/article/fluid/example/nub.fld +1 -0
  59. package/dist/article/fluid/example/pattern-match.fld +12 -0
  60. package/dist/article/fluid/example/range.fld +4 -0
  61. package/dist/article/fluid/example/record-lookup.fld +3 -0
  62. package/dist/article/fluid/example/records.fld +11 -0
  63. package/dist/article/fluid/example/reverse.fld +1 -0
  64. package/dist/article/fluid/example/scratchpad.fld +6 -0
  65. package/dist/article/fluid/example/slicing/add.expect.fld +1 -0
  66. package/dist/article/fluid/example/slicing/add.fld +1 -0
  67. package/dist/article/fluid/example/slicing/array/array.expect.fld +2 -0
  68. package/dist/article/fluid/example/slicing/array/array.fld +4 -0
  69. package/dist/article/fluid/example/slicing/array/dims.expect.fld +3 -0
  70. package/dist/article/fluid/example/slicing/array/dims.fld +3 -0
  71. package/dist/article/fluid/example/slicing/array/lookup.expect.fld +3 -0
  72. package/dist/article/fluid/example/slicing/array/lookup.fld +5 -0
  73. package/dist/article/fluid/example/slicing/convolution/edgeDetect.expect.fld +1 -0
  74. package/dist/article/fluid/example/slicing/convolution/edgeDetect.fld +1 -0
  75. package/dist/article/fluid/example/slicing/convolution/emboss-wrap.fld +1 -0
  76. package/dist/article/fluid/example/slicing/convolution/emboss.expect.fld +1 -0
  77. package/dist/article/fluid/example/slicing/convolution/emboss.fld +1 -0
  78. package/dist/article/fluid/example/slicing/convolution/filter/edge-detect.fld +5 -0
  79. package/dist/article/fluid/example/slicing/convolution/filter/emboss.fld +5 -0
  80. package/dist/article/fluid/example/slicing/convolution/filter/gaussian.fld +5 -0
  81. package/dist/article/fluid/example/slicing/convolution/gaussian.expect.fld +1 -0
  82. package/dist/article/fluid/example/slicing/convolution/gaussian.fld +1 -0
  83. package/dist/article/fluid/example/slicing/convolution/test-image.fld +7 -0
  84. package/dist/article/fluid/example/slicing/dict/create.expect.fld +1 -0
  85. package/dist/article/fluid/example/slicing/dict/create.fld +1 -0
  86. package/dist/article/fluid/example/slicing/dict/difference.expect.fld +3 -0
  87. package/dist/article/fluid/example/slicing/dict/difference.fld +3 -0
  88. package/dist/article/fluid/example/slicing/dict/disjointUnion.expect.fld +1 -0
  89. package/dist/article/fluid/example/slicing/dict/disjointUnion.fld +1 -0
  90. package/dist/article/fluid/example/slicing/dict/foldl.expect.fld +1 -0
  91. package/dist/article/fluid/example/slicing/dict/foldl.fld +1 -0
  92. package/dist/article/fluid/example/slicing/dict/fromRecord.expect.fld +2 -0
  93. package/dist/article/fluid/example/slicing/dict/fromRecord.fld +1 -0
  94. package/dist/article/fluid/example/slicing/dict/get.expect.fld +3 -0
  95. package/dist/article/fluid/example/slicing/dict/get.fld +2 -0
  96. package/dist/article/fluid/example/slicing/dict/intersectionWith.expect.fld +2 -0
  97. package/dist/article/fluid/example/slicing/dict/intersectionWith.fld +4 -0
  98. package/dist/article/fluid/example/slicing/dict/map.expect.fld +6 -0
  99. package/dist/article/fluid/example/slicing/dict/map.fld +5 -0
  100. package/dist/article/fluid/example/slicing/divide.expect.fld +1 -0
  101. package/dist/article/fluid/example/slicing/divide.fld +1 -0
  102. package/dist/article/fluid/example/slicing/dtw/average-series.expect.fld +8 -0
  103. package/dist/article/fluid/example/slicing/dtw/average-series.fld +8 -0
  104. package/dist/article/fluid/example/slicing/dtw/compute-dtw.expect.fld +6 -0
  105. package/dist/article/fluid/example/slicing/dtw/compute-dtw.fld +6 -0
  106. package/dist/article/fluid/example/slicing/filter.expect.fld +4 -0
  107. package/dist/article/fluid/example/slicing/filter.fld +6 -0
  108. package/dist/article/fluid/example/slicing/intersperse-1.expect.fld +4 -0
  109. package/dist/article/fluid/example/slicing/intersperse-2.expect.fld +4 -0
  110. package/dist/article/fluid/example/slicing/intersperse.fld +5 -0
  111. package/dist/article/fluid/example/slicing/length.expect.fld +1 -0
  112. package/dist/article/fluid/example/slicing/length.fld +1 -0
  113. package/dist/article/fluid/example/slicing/linked-outputs/bar-chart-line-chart.expect.fld +0 -0
  114. package/dist/article/fluid/example/slicing/linked-outputs/bar-chart-line-chart.fld +26 -0
  115. package/dist/article/fluid/example/slicing/linked-outputs/renewables.fld +100 -0
  116. package/dist/article/fluid/example/slicing/linked-outputs/stacked-bar-scatter-plot.expect.fld +0 -0
  117. package/dist/article/fluid/example/slicing/linked-outputs/stacked-bar-scatter-plot.fld +38 -0
  118. package/dist/article/fluid/example/slicing/list-comp-1.expect.fld +6 -0
  119. package/dist/article/fluid/example/slicing/list-comp-2.expect.fld +6 -0
  120. package/dist/article/fluid/example/slicing/list-comp.fld +8 -0
  121. package/dist/article/fluid/example/slicing/lookup.expect.fld +6 -0
  122. package/dist/article/fluid/example/slicing/lookup.fld +14 -0
  123. package/dist/article/fluid/example/slicing/map.expect.fld +1 -0
  124. package/dist/article/fluid/example/slicing/map.fld +1 -0
  125. package/dist/article/fluid/example/slicing/matrix-update.expect.fld +5 -0
  126. package/dist/article/fluid/example/slicing/matrix-update.fld +10 -0
  127. package/dist/article/fluid/example/slicing/multiply.expect.fld +1 -0
  128. package/dist/article/fluid/example/slicing/multiply.fld +1 -0
  129. package/dist/article/fluid/example/slicing/nth.expect.fld +1 -0
  130. package/dist/article/fluid/example/slicing/nth.fld +1 -0
  131. package/dist/article/fluid/example/slicing/output-not-source.expect.fld +2 -0
  132. package/dist/article/fluid/example/slicing/output-not-source.fld +1 -0
  133. package/dist/article/fluid/example/slicing/section-5-example-1.expect.fld +10 -0
  134. package/dist/article/fluid/example/slicing/section-5-example-2.expect.fld +10 -0
  135. package/dist/article/fluid/example/slicing/section-5-example-3.expect.fld +10 -0
  136. package/dist/article/fluid/example/slicing/section-5-example.fld +14 -0
  137. package/dist/article/fluid/example/slicing/zeros-1.expect.fld +3 -0
  138. package/dist/article/fluid/example/slicing/zeros-2.expect.fld +3 -0
  139. package/dist/article/fluid/example/slicing/zeros.fld +4 -0
  140. package/dist/article/fluid/example/slicing/zipWith-1.expect.fld +4 -0
  141. package/dist/article/fluid/example/slicing/zipWith.fld +4 -0
  142. package/dist/article/fluid/example/text.fld +27 -0
  143. package/dist/article/fluid/lib/convolution.fld +16 -0
  144. package/dist/article/fluid/lib/dtw.fld +47 -0
  145. package/dist/article/fluid/lib/fnum.fld +22 -0
  146. package/dist/article/fluid/lib/graphics.fld +221 -0
  147. package/dist/article/fluid/lib/moving-average.fld +35 -0
  148. package/dist/article/fluid/lib/nombre.fld +14 -0
  149. package/dist/article/fluid/lib/prelude.fld +246 -0
  150. package/dist/article/index.html +44 -0
  151. package/fluid.js +46 -0
  152. package/package.json +80 -0
@@ -0,0 +1,6 @@
1
+ [
2
+ { year: 2018, country: "USA", energyType: "Bio", output: 61.83, capacity: 100.74},
3
+ { year: 2018, country: "USA", energyType: "Hydro", output: 286.62, capacity: 734.79},
4
+ { year: 2018, country: "USA", energyType: "Solar", output: 93.36, capacity: 455.43},
5
+ { year: 2018, country: "USA", energyType: "Wind", output: 272.67, capacity: 829.31}
6
+ ]
@@ -0,0 +1,67 @@
1
+ [
2
+ { country: "BRA", year: 2013, nuclearOut: 14.65, nuclearCap: 17.43, gasOut: 66.14, gasCap: 81.99, coalOut: 21.06, coalCap: 29.35, petrolOut: 24.79, petrolCap: 32.67},
3
+ { country: "CHN", year: 2013, nuclearOut: 111.5, nuclearCap: 128.42, gasOut: 116.39, gasCap: 371.60, coalOut: 4077.37, coalCap: 6895.70, petrolOut: 33.0, petrolCap: 66.58},
4
+ { country: "DEU", year: 2013, nuclearOut: 97.29, nuclearCap: 105.73, gasOut: 67.0, gasCap: 236.34, coalOut: 288.2, coalCap: 444.31, petrolOut: 25.25, petrolCap: 14.63},
5
+ { country: "FRA", year: 2013, nuclearOut: 423.68, nuclearCap: 553.02, gasOut: 18.39, gasCap: 69.29, coalOut: 23.84, coalCap: 55.28, petrolOut: 11.41, petrolCap: 15.07},
6
+ { country: "EGY", year: 2013, nuclearOut: 0.0, nuclearCap: 0.00, gasOut: 125.91, gasCap: 214.36, coalOut: 0.0, coalCap: 0.00, petrolOut: 27.66, petrolCap: 0.00},
7
+ { country: "IND", year: 2013, nuclearOut: 33.31, nuclearCap: 41.87, gasOut: 66.31, gasCap: 180.89, coalOut: 847.97, coalCap: 1317.68, petrolOut: 10.65, petrolCap: 6.31},
8
+ { country: "JPN", year: 2013, nuclearOut: 14.6, nuclearCap: 387.72, gasOut: 423.58, gasCap: 630.72, coalOut: 362.55, coalCap: 398.14, petrolOut: 166.48, petrolCap: 249.40},
9
+ { country: "MEX", year: 2013, nuclearOut: 11.38, nuclearCap: 14.10, gasOut: 155.78, gasCap: 249.31, coalOut: 29.87, coalCap: 47.13, petrolOut: 45.6, petrolCap: 50.46},
10
+ { country: "NGA", year: 2013, nuclearOut: 0.0, nuclearCap: 0.00, gasOut: 21.4, gasCap: 72.18, coalOut: 0.74, coalCap: 2.45, petrolOut: 0.0, petrolCap: 0.00},
11
+ { country: "USA", year: 2013, nuclearOut: 789.02, nuclearCap: 869.34, gasOut: 1124.84, gasCap: 3821.81, coalOut: 1581.11, coalCap: 2880.03, petrolOut: 40.26, petrolCap: 409.62},
12
+
13
+ { country: "BRA", year: 2014, nuclearOut: 14.46, nuclearCap: 17.43, gasOut: 77.75, gasCap: 86.64, coalOut: 25.8, coalCap: 29.35, petrolOut: 33.04, petrolCap: 32.67},
14
+ { country: "CHN", year: 2014, nuclearOut: 133.22, nuclearCap: 175.90, gasOut: 133.28, gasCap: 486.88, coalOut: 4203.06, coalCap: 7168.92, petrolOut: 35.66, petrolCap: 61.41},
15
+ { country: "DEU", year: 2014, nuclearOut: 97.13, nuclearCap: 105.73, gasOut: 60.61, gasCap: 238.36, coalOut: 274.41, coalCap: 438.88, petrolOut: 24.67, petrolCap: 14.63},
16
+ { country: "FRA", year: 2014, nuclearOut: 436.48, nuclearCap: 553.02, gasOut: 13.16, gasCap: 69.29, coalOut: 11.26, coalCap: 50.81, petrolOut: 11.34, petrolCap: 16.21},
17
+ { country: "EGY", year: 2014, nuclearOut: 0.0, nuclearCap: 0.00, gasOut: 127.39, gasCap: 220.93, coalOut: 0.0, coalCap: 0.00, petrolOut: 32.54, petrolCap: 0.00},
18
+ { country: "IND", year: 2014, nuclearOut: 34.69, nuclearCap: 50.63, gasOut: 64.01, gasCap: 208.49, coalOut: 949.93, coalCap: 1496.91, petrolOut: 11.55, petrolCap: 6.31},
19
+ { country: "JPN", year: 2014, nuclearOut: 0.0, nuclearCap: 387.72, gasOut: 450.88, gasCap: 679.60, coalOut: 355.6, coalCap: 398.14, petrolOut: 122.34, petrolCap: 249.40},
20
+ { country: "MEX", year: 2014, nuclearOut: 9.3, nuclearCap: 14.10, gasOut: 161.38, gasCap: 258.68, coalOut: 31.32, coalCap: 47.13, petrolOut: 30.73, petrolCap: 50.46},
21
+ { country: "NGA", year: 2014, nuclearOut: 0.0, nuclearCap: 0.00, gasOut: 24.42, gasCap: 72.18, coalOut: 0.84, coalCap: 2.45, petrolOut: 0.0, petrolCap: 0.00},
22
+ { country: "USA", year: 2014, nuclearOut: 797.17, nuclearCap: 863.47, gasOut: 1126.61, gasCap: 3920.71, coalOut: 1581.71, coalCap: 2840.52, petrolOut: 43.69, petrolCap: 392.80},
23
+
24
+ { country: "BRA", year: 2015, nuclearOut: 13.91, nuclearCap: 17.43, gasOut: 75.76, gasCap: 88.74, coalOut: 25.72, coalCap: 29.35, petrolOut: 27.37, petrolCap: 34.43},
25
+ { country: "CHN", year: 2015, nuclearOut: 171.38, nuclearCap: 238.01, gasOut: 166.91, gasCap: 562.04, coalOut: 4046.17, coalCap: 7691.02, petrolOut: 36.46, petrolCap: 58.52},
26
+ { country: "DEU", year: 2015, nuclearOut: 91.79, nuclearCap: 94.61, gasOut: 61.47, gasCap: 240.99, coalOut: 272.2, coalCap: 459.02, petrolOut: 25.57, petrolCap: 14.80},
27
+ { country: "FRA", year: 2015, nuclearOut: 437.43, nuclearCap: 553.02, gasOut: 21.14, gasCap: 70.87, coalOut: 11.89, coalCap: 32.76, petrolOut: 11.81, petrolCap: 16.56},
28
+ { country: "EGY", year: 2015, nuclearOut: 0.0, nuclearCap: 0.00, gasOut: 133.29, gasCap: 257.63, coalOut: 0.0, coalCap: 0.00, petrolOut: 37.39, petrolCap: 3.07},
29
+ { country: "IND", year: 2015, nuclearOut: 38.31, nuclearCap: 50.63, gasOut: 64.77, gasCap: 227.15, coalOut: 1006.55, coalCap: 1677.63, petrolOut: 9.26, petrolCap: 6.31},
30
+ { country: "JPN", year: 2015, nuclearOut: 4.52, nuclearCap: 368.36, gasOut: 417.5, gasCap: 694.67, coalOut: 349.64, coalCap: 398.84, petrolOut: 104.44, petrolCap: 249.40},
31
+ { country: "MEX", year: 2015, nuclearOut: 11.18, nuclearCap: 14.10, gasOut: 173.69, gasCap: 265.87, coalOut: 31.48, coalCap: 47.13, petrolOut: 29.11, petrolCap: 50.46},
32
+ { country: "NGA", year: 2015, nuclearOut: 0.0, nuclearCap: 0.00, gasOut: 24.4, gasCap: 88.13, coalOut: 0.69, coalCap: 2.45, petrolOut: 0.0, petrolCap: 0.00},
33
+ { country: "USA", year: 2015, nuclearOut: 797.18, nuclearCap: 864.35, gasOut: 1333.48, gasCap: 4019.70, coalOut: 1352.4, coalCap: 2650.69, petrolOut: 44.44, petrolCap: 345.32},
34
+
35
+ { country: "BRA", year: 2016, nuclearOut: 14.97, nuclearCap: 17.43, gasOut: 54.07, gasCap: 93.29, coalOut: 24.58, coalCap: 28.73, petrolOut: 14.41, petrolCap: 34.43},
36
+ { country: "CHN", year: 2016, nuclearOut: 213.18, nuclearCap: 294.69, gasOut: 188.28, gasCap: 585.61, coalOut: 4156.35, coalCap: 8071.99, petrolOut: 52.56, petrolCap: 43.45},
37
+ { country: "DEU", year: 2016, nuclearOut: 84.63, nuclearCap: 94.61, gasOut: 80.62, gasCap: 256.49, coalOut: 261.75, coalCap: 453.07, petrolOut: 25.39, petrolCap: 14.80},
38
+ { country: "FRA", year: 2016, nuclearOut: 403.2, nuclearCap: 553.02, gasOut: 34.97, gasCap: 75.95, coalOut: 10.23, coalCap: 32.76, petrolOut: 11.4, petrolCap: 16.56},
39
+ { country: "EGY", year: 2016, nuclearOut: 0.0, nuclearCap: 0.00, gasOut: 139.85, gasCap: 260.52, coalOut: 0.0, coalCap: 0.00, petrolOut: 34.23, petrolCap: 5.61},
40
+ { country: "IND", year: 2016, nuclearOut: 37.9, nuclearCap: 50.63, gasOut: 72.62, gasCap: 235.38, coalOut: 1073.6, coalCap: 1830.66, petrolOut: 9.41, petrolCap: 6.31},
41
+ { country: "JPN", year: 2016, nuclearOut: 17.68, nuclearCap: 363.36, gasOut: 421.84, gasCap: 723.31, coalOut: 345.24, coalCap: 400.42, petrolOut: 98.57, petrolCap: 249.40},
42
+ { country: "MEX", year: 2016, nuclearOut: 10.27, nuclearCap: 14.10, gasOut: 177.08, gasCap: 283.56, coalOut: 31.78, coalCap: 47.13, petrolOut: 30.92, petrolCap: 50.46},
43
+ { country: "NGA", year: 2016, nuclearOut: 0.0, nuclearCap: 0.00, gasOut: 23.24, gasCap: 89.18, coalOut: 0.65, coalCap: 2.45, petrolOut: 0.0, petrolCap: 0.00},
44
+ { country: "USA", year: 2016, nuclearOut: 805.69, nuclearCap: 872.15, gasOut: 1378.31, gasCap: 4127.36, coalOut: 1239.15, coalCap: 2510.88, petrolOut: 39.5, petrolCap: 323.42},
45
+
46
+ { country: "BRA", year: 2017, nuclearOut: 14.86, nuclearCap: 17.43, gasOut: 62.72, gasCap: 98.46, coalOut: 21.85, coalCap: 24.79, petrolOut: 17.33, petrolCap: 34.43},
47
+ { country: "CHN", year: 2017, nuclearOut: 248.1, nuclearCap: 313.78, gasOut: 203.2, gasCap: 638.60, coalOut: 4430.03, coalCap: 8356.16, petrolOut: 56.05, petrolCap: 49.14},
48
+ { country: "DEU", year: 2017, nuclearOut: 76.32, nuclearCap: 94.61, gasOut: 86.04, gasCap: 258.42, coalOut: 241.26, coalCap: 423.72, petrolOut: 25.16, petrolCap: 14.80},
49
+ { country: "FRA", year: 2017, nuclearOut: 398.36, nuclearCap: 553.02, gasOut: 40.5, gasCap: 75.95, coalOut: 12.81, coalCap: 32.76, petrolOut: 12.12, petrolCap: 16.56},
50
+ { country: "EGY", year: 2017, nuclearOut: 0.0, nuclearCap: 0.00, gasOut: 155.01, gasCap: 288.55, coalOut: 0.0, coalCap: 0.00, petrolOut: 26.3, petrolCap: 5.61},
51
+ { country: "IND", year: 2017, nuclearOut: 37.41, nuclearCap: 59.39, gasOut: 74.99, gasCap: 237.05, coalOut: 1115.24, coalCap: 1878.93, petrolOut: 8.79, petrolCap: 6.31},
52
+ { country: "JPN", year: 2017, nuclearOut: 29.07, nuclearCap: 342.78, gasOut: 428.92, gasCap: 733.74, coalOut: 342.88, coalCap: 403.92, petrolOut: 74.45, petrolCap: 249.40},
53
+ { country: "MEX", year: 2017, nuclearOut: 10.57, nuclearCap: 14.10, gasOut: 179.25, gasCap: 298.28, coalOut: 28.12, coalCap: 47.13, petrolOut: 35.42, petrolCap: 50.46},
54
+ { country: "NGA", year: 2017, nuclearOut: 0.0, nuclearCap: 0.00, gasOut: 24.38, gasCap: 89.18, coalOut: 0.68, coalCap: 2.45, petrolOut: 0.0, petrolCap: 0.00},
55
+ { country: "USA", year: 2017, nuclearOut: 804.95, nuclearCap: 872.76, gasOut: 1296.44, gasCap: 4229.68, coalOut: 1205.84, coalCap: 2433.18, petrolOut: 37.89, petrolCap: 320.62},
56
+
57
+ { country: "BRA", year: 2018, nuclearOut: 14.79, nuclearCap: 17.43, gasOut: 52.36, gasCap: 98.46, coalOut: 19.94, coalCap: 24.79, petrolOut: 14.39, petrolCap: 34.43},
58
+ { country: "CHN", year: 2018, nuclearOut: 295.0, nuclearCap: 391.22, gasOut: 215.5, gasCap: 710.70, coalOut: 4763.92, coalCap: 8555.54, petrolOut: 56.4, petrolCap: 55.19},
59
+ { country: "DEU", year: 2018, nuclearOut: 76.0, nuclearCap: 94.61, gasOut: 81.56, gasCap: 259.21, coalOut: 228.16, coalCap: 414.52, petrolOut: 23.63, petrolCap: 14.80},
60
+ { country: "FRA", year: 2018, nuclearOut: 412.94, nuclearCap: 553.02, gasOut: 30.61, gasCap: 75.95, coalOut: 8.31, coalCap: 32.76, petrolOut: 10.56, petrolCap: 16.56},
61
+ { country: "EGY", year: 2018, nuclearOut: 0.0, nuclearCap: 0.00, gasOut: 166.61, gasCap: 425.65, coalOut: 0.0, coalCap: 0.00, petrolOut: 15.7, petrolCap: 5.61},
62
+ { country: "IND", year: 2018, nuclearOut: 39.05, nuclearCap: 59.39, gasOut: 71.26, gasCap: 237.66, coalOut: 1198.86, coalCap: 1927.29, petrolOut: 6.4, petrolCap: 6.31},
63
+ { country: "JPN", year: 2018, nuclearOut: 49.11, nuclearCap: 333.23, gasOut: 425.37, gasCap: 747.84, coalOut: 345.13, coalCap: 405.50, petrolOut: 53.78, petrolCap: 241.69},
64
+ { country: "MEX", year: 2018, nuclearOut: 13.32, nuclearCap: 14.10, gasOut: 200.38, gasCap: 308.88, coalOut: 27.0, coalCap: 47.13, petrolOut: 33.19, petrolCap: 50.46},
65
+ { country: "NGA", year: 2018, nuclearOut: 0.0, nuclearCap: 0.00, gasOut: 23.49, gasCap: 94.26, coalOut: 0.62, coalCap: 2.45, petrolOut: 0.0, petrolCap: 0.00},
66
+ { country: "USA", year: 2018, nuclearOut: 807.08, nuclearCap: 871.01, gasOut: 1469.13, gasCap: 4431.51, coalOut: 1149.49, coalCap: 2293.89, petrolOut: 42.68, petrolCap: 304.67}
67
+ ]
@@ -0,0 +1,301 @@
1
+ [
2
+ { year: 2013, country: "BRA", energyType: "Bio", output: 39.27, capacity: 101.62},
3
+ { year: 2013, country: "BRA", energyType: "Hydro", output: 390.99, capacity: 753.54},
4
+ { year: 2013, country: "BRA", energyType: "Solar", output: 0.0, capacity: 0.09},
5
+ { year: 2013, country: "BRA", energyType: "Wind", output: 6.58, capacity: 19.27},
6
+
7
+ { year: 2013, country: "CHN", energyType: "Bio", output: 37.13, capacity: 38.46},
8
+ { year: 2013, country: "CHN", energyType: "Hydro", output: 909.61, capacity: 2268.05},
9
+ { year: 2013, country: "CHN", energyType: "Solar", output: 8.37, capacity: 155.58},
10
+ { year: 2013, country: "CHN", energyType: "Wind", output: 138.26, capacity: 672.15},
11
+
12
+ { year: 2013, country: "DEU", energyType: "Bio", output: 45.51, capacity: 61.58},
13
+ { year: 2013, country: "DEU", energyType: "Hydro", output: 23.0, capacity: 48.97},
14
+ { year: 2013, country: "DEU", energyType: "Solar", output: 30.62, capacity: 321.58},
15
+ { year: 2013, country: "DEU", energyType: "Wind", output: 52.74, capacity: 293.28},
16
+
17
+ { year: 2013, country: "FRA", energyType: "Bio", output: 5.68, capacity: 6.66},
18
+ { year: 2013, country: "FRA", energyType: "Hydro", output: 71.92, capacity: 208.84},
19
+ { year: 2013, country: "FRA", energyType: "Solar", output: 5.19, capacity: 46.25},
20
+ { year: 2013, country: "FRA", energyType: "Wind", output: 16.13, capacity: 71.48},
21
+
22
+ { year: 2013, country: "EGY", energyType: "Bio", output: 0.0, capacity: 0.61},
23
+ { year: 2013, country: "EGY", energyType: "Hydro", output: 13.22, capacity: 24.53},
24
+ { year: 2013, country: "EGY", energyType: "Solar", output: 0.11, capacity: 0.26},
25
+ { year: 2013, country: "EGY", energyType: "Wind", output: 1.33, capacity: 4.91},
26
+
27
+ { year: 2013, country: "IND", energyType: "Bio", output: 22.48, capacity: 35.74},
28
+ { year: 2013, country: "IND", energyType: "Hydro", output: 131.98, capacity: 345.06},
29
+ { year: 2013, country: "IND", energyType: "Solar", output: 3.43, capacity: 14.02},
30
+ { year: 2013, country: "IND", energyType: "Wind", output: 30.01, capacity: 161.36},
31
+
32
+ { year: 2013, country: "JPN", energyType: "Bio", output: 23.18, capacity: 5.78},
33
+ { year: 2013, country: "JPN", energyType: "Hydro", output: 79.33, capacity: 243.62},
34
+ { year: 2013, country: "JPN", energyType: "Solar", output: 12.91, capacity: 119.14},
35
+ { year: 2013, country: "JPN", energyType: "Wind", output: 5.13, capacity: 23.21},
36
+
37
+ { year: 2013, country: "MEX", energyType: "Bio", output: 6.89, capacity: 4.47},
38
+ { year: 2013, country: "MEX", energyType: "Hydro", output: 27.72, capacity: 101.88},
39
+ { year: 2013, country: "MEX", energyType: "Solar", output: 0.11, capacity: 0.96},
40
+ { year: 2013, country: "MEX", energyType: "Wind", output: 4.17, capacity: 18.57},
41
+
42
+ { year: 2013, country: "NGA", energyType: "Bio", output: 0.02, capacity: 0.09},
43
+ { year: 2013, country: "NGA", energyType: "Hydro", output: 5.27, capacity: 18.48},
44
+ { year: 2013, country: "NGA", energyType: "Solar", output: 0.02, capacity: 0.00},
45
+ { year: 2013, country: "NGA", energyType: "Wind", output: 0.0, capacity: 0.00},
46
+
47
+ { year: 2013, country: "USA", energyType: "Bio", output: 60.86, capacity: 97.85},
48
+ { year: 2013, country: "USA", energyType: "Hydro", output: 263.88, capacity: 727.17},
49
+ { year: 2013, country: "USA", energyType: "Solar", output: 9.04, capacity: 116.07},
50
+ { year: 2013, country: "USA", energyType: "Wind", output: 167.84, capacity: 527.35},
51
+
52
+ { year: 2014, country: "BRA", energyType: "Bio", output: 45.15, capacity: 108.10},
53
+ { year: 2014, country: "BRA", energyType: "Hydro", output: 373.44, capacity: 781.30},
54
+ { year: 2014, country: "BRA", energyType: "Solar", output: 0.02, capacity: 0.18},
55
+ { year: 2014, country: "BRA", energyType: "Wind", output: 12.21, capacity: 42.84},
56
+
57
+ { year: 2014, country: "CHN", energyType: "Bio", output: 46.27, capacity: 41.70},
58
+ { year: 2014, country: "CHN", energyType: "Hydro", output: 1059.69, capacity: 2476.89},
59
+ { year: 2014, country: "CHN", energyType: "Solar", output: 23.51, capacity: 248.78},
60
+ { year: 2014, country: "CHN", energyType: "Wind", output: 159.76, capacity: 848.14},
61
+
62
+ { year: 2014, country: "DEU", energyType: "Bio", output: 48.29, capacity: 63.60},
63
+ { year: 2014, country: "DEU", energyType: "Hydro", output: 19.59, capacity: 48.88},
64
+ { year: 2014, country: "DEU", energyType: "Solar", output: 35.45, capacity: 332.00},
65
+ { year: 2014, country: "DEU", energyType: "Wind", output: 58.5, capacity: 338.22},
66
+
67
+ { year: 2014, country: "FRA", energyType: "Bio", output: 5.99, capacity: 7.18},
68
+ { year: 2014, country: "FRA", energyType: "Hydro", output: 63.77, capacity: 208.93},
69
+ { year: 2014, country: "FRA", energyType: "Solar", output: 6.39, capacity: 52.82},
70
+ { year: 2014, country: "FRA", energyType: "Wind", output: 17.32, capacity: 80.59},
71
+
72
+ { year: 2014, country: "EGY", energyType: "Bio", output: 0.0, capacity: 0.61},
73
+ { year: 2014, country: "EGY", energyType: "Hydro", output: 13.68, capacity: 24.53},
74
+ { year: 2014, country: "EGY", energyType: "Solar", output: 0.24, capacity: 0.26},
75
+ { year: 2014, country: "EGY", energyType: "Wind", output: 1.44, capacity: 4.91},
76
+
77
+ { year: 2014, country: "IND", energyType: "Bio", output: 24.68, capacity: 43.01},
78
+ { year: 2014, country: "IND", energyType: "Hydro", output: 139.0, capacity: 355.83},
79
+ { year: 2014, country: "IND", energyType: "Solar", output: 4.91, capacity: 33.11},
80
+ { year: 2014, country: "IND", energyType: "Wind", output: 33.45, capacity: 196.84},
81
+
82
+ { year: 2014, country: "JPN", energyType: "Bio", output: 23.63, capacity: 6.57},
83
+ { year: 2014, country: "JPN", energyType: "Hydro", output: 81.71, capacity: 244.14},
84
+ { year: 2014, country: "JPN", energyType: "Solar", output: 23.55, capacity: 204.46},
85
+ { year: 2014, country: "JPN", energyType: "Wind", output: 5.01, capacity: 24.09},
86
+
87
+ { year: 2014, country: "MEX", energyType: "Bio", output: 6.62, capacity: 5.34},
88
+ { year: 2014, country: "MEX", energyType: "Hydro", output: 38.55, capacity: 109.15},
89
+ { year: 2014, country: "MEX", energyType: "Solar", output: 0.22, capacity: 1.49},
90
+ { year: 2014, country: "MEX", energyType: "Wind", output: 6.35, capacity: 22.51},
91
+
92
+ { year: 2014, country: "NGA", energyType: "Bio", output: 0.03, capacity: 0.09},
93
+ { year: 2014, country: "NGA", energyType: "Hydro", output: 5.29, capacity: 18.48},
94
+ { year: 2014, country: "NGA", energyType: "Solar", output: 0.02, capacity: 0.00},
95
+ { year: 2014, country: "NGA", energyType: "Wind", output: 0.0, capacity: 0.00},
96
+
97
+ { year: 2014, country: "USA", energyType: "Bio", output: 63.99, capacity: 98.99},
98
+ { year: 2014, country: "USA", energyType: "Hydro", output: 253.19, capacity: 731.37},
99
+ { year: 2014, country: "USA", energyType: "Solar", output: 28.92, capacity: 158.64},
100
+ { year: 2014, country: "USA", energyType: "Wind", output: 181.65, capacity: 564.41},
101
+
102
+ { year: 2015, country: "BRA", energyType: "Bio", output: 47.54, capacity: 116.60},
103
+ { year: 2015, country: "BRA", energyType: "Hydro", output: 359.74, capacity: 802.85},
104
+ { year: 2015, country: "BRA", energyType: "Solar", output: 0.06, capacity: 0.44},
105
+ { year: 2015, country: "BRA", energyType: "Wind", output: 21.47, capacity: 66.84},
106
+
107
+ { year: 2015, country: "CHN", energyType: "Bio", output: 54.07, capacity: 49.41},
108
+ { year: 2015, country: "CHN", energyType: "Hydro", output: 1114.52, capacity: 2597.34},
109
+ { year: 2015, country: "CHN", energyType: "Solar", output: 39.48, capacity: 381.50},
110
+ { year: 2015, country: "CHN", energyType: "Wind", output: 185.59, capacity: 1148.00},
111
+
112
+ { year: 2015, country: "DEU", energyType: "Bio", output: 50.33, capacity: 65.44},
113
+ { year: 2015, country: "DEU", energyType: "Hydro", output: 18.98, capacity: 48.97},
114
+ { year: 2015, country: "DEU", energyType: "Solar", output: 38.08, capacity: 343.57},
115
+ { year: 2015, country: "DEU", energyType: "Wind", output: 80.62, capacity: 390.52},
116
+
117
+ { year: 2015, country: "FRA", energyType: "Bio", output: 6.53, capacity: 8.15},
118
+ { year: 2015, country: "FRA", energyType: "Hydro", output: 55.56, capacity: 208.66},
119
+ { year: 2015, country: "FRA", energyType: "Solar", output: 7.75, capacity: 62.55},
120
+ { year: 2015, country: "FRA", energyType: "Wind", output: 21.42, capacity: 90.23},
121
+
122
+ { year: 2015, country: "EGY", energyType: "Bio", output: 0.0, capacity: 0.61},
123
+ { year: 2015, country: "EGY", energyType: "Hydro", output: 13.41, capacity: 24.53},
124
+ { year: 2015, country: "EGY", energyType: "Solar", output: 0.17, capacity: 0.35},
125
+ { year: 2015, country: "EGY", energyType: "Wind", output: 2.06, capacity: 6.57},
126
+
127
+ { year: 2015, country: "IND", energyType: "Bio", output: 30.62, capacity: 46.78},
128
+ { year: 2015, country: "IND", energyType: "Hydro", output: 133.28, capacity: 370.72},
129
+ { year: 2015, country: "IND", energyType: "Solar", output: 6.57, capacity: 49.93},
130
+ { year: 2015, country: "IND", energyType: "Wind", output: 32.74, capacity: 219.79},
131
+
132
+ { year: 2015, country: "JPN", energyType: "Bio", output: 28.49, capacity: 8.76},
133
+ { year: 2015, country: "JPN", energyType: "Hydro", output: 85.77, capacity: 246.24},
134
+ { year: 2015, country: "JPN", energyType: "Solar", output: 34.54, capacity: 299.15},
135
+ { year: 2015, country: "JPN", energyType: "Wind", output: 5.22, capacity: 24.62},
136
+
137
+ { year: 2015, country: "MEX", energyType: "Bio", output: 7.12, capacity: 6.31},
138
+ { year: 2015, country: "MEX", energyType: "Hydro", output: 30.61, capacity: 107.05},
139
+ { year: 2015, country: "MEX", energyType: "Solar", output: 0.24, capacity: 2.54},
140
+ { year: 2015, country: "MEX", energyType: "Wind", output: 8.45, capacity: 28.65},
141
+
142
+ { year: 2015, country: "NGA", energyType: "Bio", output: 0.02, capacity: 0.09},
143
+ { year: 2015, country: "NGA", energyType: "Hydro", output: 5.66, capacity: 18.48},
144
+ { year: 2015, country: "NGA", energyType: "Solar", output: 0.03, capacity: 0.09},
145
+ { year: 2015, country: "NGA", energyType: "Wind", output: 0.0, capacity: 0.00},
146
+
147
+ { year: 2015, country: "USA", energyType: "Bio", output: 63.63, capacity: 103.81},
148
+ { year: 2015, country: "USA", energyType: "Hydro", output: 243.99, capacity: 731.46},
149
+ { year: 2015, country: "USA", energyType: "Solar", output: 39.03, capacity: 212.34},
150
+ { year: 2015, country: "USA", energyType: "Wind", output: 190.72, capacity: 637.47},
151
+
152
+ { year: 2016, country: "BRA", energyType: "Bio", output: 49.14, capacity: 124.22},
153
+ { year: 2016, country: "BRA", energyType: "Hydro", output: 380.91, capacity: 849.11},
154
+ { year: 2016, country: "BRA", energyType: "Solar", output: 0.08, capacity: 1.14},
155
+ { year: 2016, country: "BRA", energyType: "Wind", output: 33.24, capacity: 88.74},
156
+
157
+ { year: 2016, country: "CHN", energyType: "Bio", output: 62.13, capacity: 56.06},
158
+ { year: 2016, country: "CHN", energyType: "Hydro", output: 1153.27, capacity: 2675.13},
159
+ { year: 2016, country: "CHN", energyType: "Solar", output: 66.53, capacity: 681.70},
160
+ { year: 2016, country: "CHN", energyType: "Wind", output: 240.86, capacity: 1301.04},
161
+
162
+ { year: 2016, country: "DEU", energyType: "Bio", output: 50.93, capacity: 67.28},
163
+ { year: 2016, country: "DEU", energyType: "Hydro", output: 20.55, capacity: 49.32},
164
+ { year: 2016, country: "DEU", energyType: "Solar", output: 37.56, capacity: 356.36},
165
+ { year: 2016, country: "DEU", energyType: "Wind", output: 79.92, capacity: 433.09},
166
+
167
+ { year: 2016, country: "FRA", energyType: "Bio", output: 7.52, capacity: 9.11},
168
+ { year: 2016, country: "FRA", energyType: "Hydro", output: 60.84, capacity: 209.28},
169
+ { year: 2016, country: "FRA", energyType: "Solar", output: 8.66, capacity: 67.45},
170
+ { year: 2016, country: "FRA", energyType: "Wind", output: 21.38, capacity: 101.35},
171
+
172
+ { year: 2016, country: "EGY", energyType: "Bio", output: 0.0, capacity: 0.61},
173
+ { year: 2016, country: "EGY", energyType: "Hydro", output: 12.72, capacity: 24.53},
174
+ { year: 2016, country: "EGY", energyType: "Solar", output: 0.58, capacity: 0.53},
175
+ { year: 2016, country: "EGY", energyType: "Wind", output: 2.2, capacity: 6.57},
176
+
177
+ { year: 2016, country: "IND", energyType: "Bio", output: 24.82, capacity: 76.74},
178
+ { year: 2016, country: "IND", energyType: "Hydro", output: 128.38, capacity: 375.28},
179
+ { year: 2016, country: "IND", energyType: "Solar", output: 11.56, capacity: 87.42},
180
+ { year: 2016, country: "IND", energyType: "Wind", output: 43.45, capacity: 251.41},
181
+
182
+ { year: 2016, country: "JPN", energyType: "Bio", output: 23.67, capacity: 11.30},
183
+ { year: 2016, country: "JPN", energyType: "Hydro", output: 79.43, capacity: 246.68},
184
+ { year: 2016, country: "JPN", energyType: "Solar", output: 43.33, capacity: 368.27},
185
+ { year: 2016, country: "JPN", energyType: "Wind", output: 5.34, capacity: 28.12},
186
+
187
+ { year: 2016, country: "MEX", energyType: "Bio", output: 7.02, capacity: 7.36},
188
+ { year: 2016, country: "MEX", energyType: "Hydro", output: 29.74, capacity: 110.20},
189
+ { year: 2016, country: "MEX", energyType: "Solar", output: 0.46, capacity: 5.52},
190
+ { year: 2016, country: "MEX", energyType: "Wind", output: 9.93, capacity: 35.48},
191
+
192
+ { year: 2016, country: "NGA", energyType: "Bio", output: 0.02, capacity: 0.09},
193
+ { year: 2016, country: "NGA", energyType: "Hydro", output: 8.07, capacity: 18.48},
194
+ { year: 2016, country: "NGA", energyType: "Solar", output: 0.03, capacity: 0.09},
195
+ { year: 2016, country: "NGA", energyType: "Wind", output: 0.0, capacity: 0.00},
196
+
197
+ { year: 2016, country: "USA", energyType: "Bio", output: 62.76, capacity: 103.19},
198
+ { year: 2016, country: "USA", energyType: "Hydro", output: 261.13, capacity: 734.26},
199
+ { year: 2016, country: "USA", energyType: "Solar", output: 54.87, capacity: 310.37},
200
+ { year: 2016, country: "USA", energyType: "Wind", output: 226.99, capacity: 713.94},
201
+
202
+ { year: 2017, country: "BRA", energyType: "Bio", output: 50.6, capacity: 127.63},
203
+ { year: 2017, country: "BRA", energyType: "Hydro", output: 370.91, capacity: 878.89},
204
+ { year: 2017, country: "BRA", energyType: "Solar", output: 0.83, capacity: 10.60},
205
+ { year: 2017, country: "BRA", energyType: "Wind", output: 42.06, capacity: 107.75},
206
+
207
+ { year: 2017, country: "CHN", energyType: "Bio", output: 79.6, capacity: 66.49},
208
+ { year: 2017, country: "CHN", energyType: "Hydro", output: 1165.06, capacity: 2753.97},
209
+ { year: 2017, country: "CHN", energyType: "Solar", output: 117.8, capacity: 1146.07},
210
+ { year: 2017, country: "CHN", energyType: "Wind", output: 304.6, capacity: 1439.88},
211
+
212
+ { year: 2017, country: "DEU", energyType: "Bio", output: 50.92, capacity: 69.90},
213
+ { year: 2017, country: "DEU", energyType: "Hydro", output: 20.15, capacity: 49.32},
214
+ { year: 2017, country: "DEU", energyType: "Solar", output: 38.76, capacity: 370.46},
215
+ { year: 2017, country: "DEU", energyType: "Wind", output: 105.69, capacity: 486.88},
216
+
217
+ { year: 2017, country: "FRA", energyType: "Bio", output: 7.78, capacity: 9.55},
218
+ { year: 2017, country: "FRA", energyType: "Hydro", output: 50.0, capacity: 210.06},
219
+ { year: 2017, country: "FRA", energyType: "Solar", output: 9.59, capacity: 75.42},
220
+ { year: 2017, country: "FRA", energyType: "Wind", output: 24.61, capacity: 118.26},
221
+
222
+ { year: 2017, country: "EGY", energyType: "Bio", output: 0.0, capacity: 0.61},
223
+ { year: 2017, country: "EGY", energyType: "Hydro", output: 12.6, capacity: 24.53},
224
+ { year: 2017, country: "EGY", energyType: "Solar", output: 0.6, capacity: 1.58},
225
+ { year: 2017, country: "EGY", energyType: "Wind", output: 2.33, capacity: 6.57},
226
+
227
+ { year: 2017, country: "IND", energyType: "Bio", output: 24.91, capacity: 81.21},
228
+ { year: 2017, country: "IND", energyType: "Hydro", output: 135.82, capacity: 391.92},
229
+ { year: 2017, country: "IND", energyType: "Solar", output: 21.54, capacity: 159.96},
230
+ { year: 2017, country: "IND", energyType: "Wind", output: 52.63, capacity: 287.77},
231
+
232
+ { year: 2017, country: "JPN", energyType: "Bio", output: 27.39, capacity: 14.63},
233
+ { year: 2017, country: "JPN", energyType: "Hydro", output: 79.29, capacity: 246.33},
234
+ { year: 2017, country: "JPN", energyType: "Solar", output: 54.24, capacity: 433.62},
235
+ { year: 2017, country: "JPN", energyType: "Wind", output: 5.83, capacity: 30.48},
236
+
237
+ { year: 2017, country: "MEX", energyType: "Bio", output: 7.4, capacity: 7.62},
238
+ { year: 2017, country: "MEX", energyType: "Hydro", output: 31.74, capacity: 110.64},
239
+ { year: 2017, country: "MEX", energyType: "Solar", output: 1.07, capacity: 9.90},
240
+ { year: 2017, country: "MEX", energyType: "Wind", output: 9.91, capacity: 36.62},
241
+
242
+ { year: 2017, country: "NGA", energyType: "Bio", output: 0.02, capacity: 0.09},
243
+ { year: 2017, country: "NGA", energyType: "Hydro", output: 7.67, capacity: 18.48},
244
+ { year: 2017, country: "NGA", energyType: "Solar", output: 0.03, capacity: 0.18},
245
+ { year: 2017, country: "NGA", energyType: "Wind", output: 0.0, capacity: 0.00},
246
+
247
+ { year: 2017, country: "USA", energyType: "Bio", output: 62.73, capacity: 102.67},
248
+ { year: 2017, country: "USA", energyType: "Hydro", output: 293.84, capacity: 734.00},
249
+ { year: 2017, country: "USA", energyType: "Solar", output: 77.28, capacity: 383.43},
250
+ { year: 2017, country: "USA", energyType: "Wind", output: 254.3, capacity: 769.39},
251
+
252
+ { year: 2018, country: "BRA", energyType: "Bio", output: 52.13, capacity: 129.74},
253
+ { year: 2018, country: "BRA", energyType: "Hydro", output: 388.97, capacity: 915.24},
254
+ { year: 2018, country: "BRA", energyType: "Solar", output: 3.44, capacity: 21.37},
255
+ { year: 2018, country: "BRA", energyType: "Wind", output: 48.12, capacity: 130.00},
256
+
257
+ { year: 2018, country: "CHN", energyType: "Bio", output: 93.73, capacity: 75.86},
258
+ { year: 2018, country: "CHN", energyType: "Hydro", output: 1198.89, capacity: 2823.09},
259
+ { year: 2018, country: "CHN", energyType: "Solar", output: 176.9, capacity: 1535.28},
260
+ { year: 2018, country: "CHN", energyType: "Wind", output: 365.8, capacity: 1617.62},
261
+
262
+ { year: 2018, country: "DEU", energyType: "Bio", output: 50.79, capacity: 75.34},
263
+ { year: 2018, country: "DEU", energyType: "Hydro", output: 17.69, capacity: 46.69},
264
+ { year: 2018, country: "DEU", energyType: "Solar", output: 44.32, capacity: 395.60},
265
+ { year: 2018, country: "DEU", energyType: "Wind", output: 109.95, capacity: 514.39},
266
+
267
+ { year: 2018, country: "FRA", energyType: "Bio", output: 8.38, capacity: 11.48},
268
+ { year: 2018, country: "FRA", energyType: "Hydro", output: 65.11, capacity: 210.24},
269
+ { year: 2018, country: "FRA", energyType: "Solar", output: 10.81, capacity: 84.71},
270
+ { year: 2018, country: "FRA", energyType: "Wind", output: 28.6, capacity: 130.52},
271
+
272
+ { year: 2018, country: "EGY", energyType: "Bio", output: 0.0, capacity: 0.61},
273
+ { year: 2018, country: "EGY", energyType: "Hydro", output: 12.77, capacity: 24.79},
274
+ { year: 2018, country: "EGY", energyType: "Solar", output: 1.52, capacity: 6.66},
275
+ { year: 2018, country: "EGY", energyType: "Wind", output: 3.02, capacity: 9.90},
276
+
277
+ { year: 2018, country: "IND", energyType: "Bio", output: 27.22, capacity: 87.42},
278
+ { year: 2018, country: "IND", energyType: "Hydro", output: 139.75, capacity: 397.00},
279
+ { year: 2018, country: "IND", energyType: "Solar", output: 36.33, capacity: 240.72},
280
+ { year: 2018, country: "IND", energyType: "Wind", output: 60.31, capacity: 309.14},
281
+
282
+ { year: 2018, country: "JPN", energyType: "Bio", output: 30.13, capacity: 18.22},
283
+ { year: 2018, country: "JPN", energyType: "Hydro", output: 81.11, capacity: 246.51},
284
+ { year: 2018, country: "JPN", energyType: "Solar", output: 62.11, capacity: 491.96},
285
+ { year: 2018, country: "JPN", energyType: "Wind", output: 6.44, capacity: 30.66},
286
+
287
+ { year: 2018, country: "MEX", energyType: "Bio", output: 6.85, capacity: 7.62},
288
+ { year: 2018, country: "MEX", energyType: "Hydro", output: 32.3, capacity: 110.73},
289
+ { year: 2018, country: "MEX", energyType: "Solar", output: 1.36, capacity: 22.60},
290
+ { year: 2018, country: "MEX", energyType: "Wind", output: 12.53, capacity: 36.62},
291
+
292
+ { year: 2018, country: "NGA", energyType: "Bio", output: 0.02, capacity: 0.09},
293
+ { year: 2018, country: "NGA", energyType: "Hydro", output: 7.69, capacity: 18.48},
294
+ { year: 2018, country: "NGA", energyType: "Solar", output: 0.03, capacity: 0.18},
295
+ { year: 2018, country: "NGA", energyType: "Wind", output: 0.0, capacity: 0.00},
296
+
297
+ { year: 2018, country: "USA", energyType: "Bio", output: 61.83, capacity: 100.74},
298
+ { year: 2018, country: "USA", energyType: "Hydro", output: 286.62, capacity: 734.79},
299
+ { year: 2018, country: "USA", energyType: "Solar", output: 93.36, capacity: 455.43},
300
+ { year: 2018, country: "USA", energyType: "Wind", output: 272.67, capacity: 829.31}
301
+ ]
@@ -0,0 +1,26 @@
1
+ MultiView {|
2
+ "bar-chart" :=
3
+ let totalFor c rows =
4
+ sum [ row.output | row <- rows, row.country == c ];
5
+ let data2015 = [ row | row <- renewables, row.year == 2015 ];
6
+ countryData = [ { x: c, bars: [ { y: "output", z: totalFor c data2015 } ] }
7
+ | c <- ["China", "USA", "Germany"] ]
8
+ in BarChart {
9
+ caption: "Total output by country",
10
+ data: countryData
11
+ },
12
+ "line-chart" :=
13
+ let series type country = [
14
+ { x: row.year, y: row.output }
15
+ | year <- [2013..2018], row <- renewables,
16
+ row.year == year, row.energyType == type, row.country == country
17
+ ] in LineChart {
18
+ caption: "Output of USA relative to China",
19
+ plots: [
20
+ LinePlot { name: type, data: plot }
21
+ | type <- ["Bio", "Hydro", "Solar", "Wind"],
22
+ let plot = zipWith (fun p1 p2 -> { x: p1.x, y: p1.y / p2.y })
23
+ (series type "USA") (series type "China")
24
+ ]
25
+ }
26
+ |}
@@ -0,0 +1,5 @@
1
+ [[15, 13, 6 , 9, 16],
2
+ [12, 5 , 15, 4, 13],
3
+ [14, 9 , 20, 8, 1 ],
4
+ [4 , 10, 3 , 7, 19],
5
+ [3 , 11, 15, 2, 9 ]]
@@ -0,0 +1,12 @@
1
+ (let filter' = [[0, 0, 0],
2
+ [3, 7, 1],
3
+ [0, 0, 0]];
4
+ filter = [| nth2 i j filter' | (i, j) in (3, 3) |];
5
+ image = [| nth2 i j data | (i, j) in (5, 5) |]
6
+ in convolve image filter wrap,
7
+ let filter' = [[0, 2, 0],
8
+ [0, 7, 0],
9
+ [0, 5, 0]];
10
+ filter = [| nth2 i j filter' | (i, j) in (3, 3) |];
11
+ image = [| nth2 i j data | (i, j) in (5, 5) |]
12
+ in convolve image filter zero)
@@ -0,0 +1,13 @@
1
+ let series type country = [
2
+ { x: row.year, y: row.output }
3
+ | year <- [2013..2018], row <- renewables,
4
+ row.year == year, row.energyType == type, row.country == country
5
+ ] in LineChart {
6
+ caption: "Output of USA relative to China",
7
+ plots: [
8
+ LinePlot { name: type, data: plot }
9
+ | type <- ["Bio", "Hydro", "Solar", "Wind"],
10
+ let plot = zipWith (fun p1 p2 -> { x: p1.x, y: p1.y / p2.y })
11
+ (series type "USA") (series type "China")
12
+ ]
13
+ }
@@ -0,0 +1,9 @@
1
+ [
2
+ { x: 2010, y: 10 },
3
+ { x: 2011, y: 14 },
4
+ { x: 2012, y: 23 },
5
+ { x: 2013, y: 34 },
6
+ { x: 2014, y: 13 },
7
+ { x: 2015, y: 65 },
8
+ { x: 2016, y: 720 }
9
+ ]
@@ -0,0 +1,15 @@
1
+ let newPoints offset = map (fun point -> { x: point.x, y: (point.y + offset) }) points;
2
+
3
+ let points' = newPoints 0;
4
+ cavgs = mAvgChop points' 1;
5
+ cavgs' = mAvgShrink points' 1;
6
+ savgs = sAvgShrink points' 2
7
+ in MultiView {|
8
+ "line-chart-1" :=
9
+ LineChart {
10
+ caption: "Moving averages",
11
+ plots: [ LinePlot { name: "Simple", data: savgs }
12
+ , LinePlot { name: "Central", data: cavgs }
13
+ , LinePlot { name: "Original Curve", data: points' } ]
14
+ }
15
+ |}
@@ -0,0 +1 @@
1
+ (1, (2, (3, 4)))
@@ -0,0 +1,3 @@
1
+ let q = 1 in
2
+ ((fun (w, (x, (y, z))) -> (w + x, (x + y, y + z))) data,
3
+ (fun (w, (x, (y, z))) -> (w + q, (x + q, (y + q, z + q)))) data)
@@ -0,0 +1,100 @@
1
+ -- The original dataset sometimes has '~0' instead of '0'.
2
+ -- Including only 3 countries here. Also, have reduced the Hydro value for China 2015 from 296 to 96 (ouch)
3
+ -- to make the charts fit nicely into grant proposal. Fix this once proposal submitted!
4
+ [
5
+ -- https://www.ren21.net/wp-content/uploads/2019/05/GSR2014_Full-Report_English.pdf
6
+ { year: 2013, country: "China", energyType: "Bio", output: 6.2 },
7
+ { year: 2013, country: "China", energyType: "Hydro", output: 260 },
8
+ { year: 2013, country: "China", energyType: "Solar", output: 19.9 },
9
+ { year: 2013, country: "China", energyType: "Wind", output: 91 },
10
+
11
+ { year: 2013, country: "USA", energyType: "Bio", output: 15.8 },
12
+ { year: 2013, country: "USA", energyType: "Hydro", output: 78 },
13
+ { year: 2013, country: "USA", energyType: "Solar", output: 12.1 },
14
+ { year: 2013, country: "USA", energyType: "Wind", output: 61 },
15
+
16
+ { year: 2013, country: "Germany", energyType: "Bio", output: 8.1 },
17
+ { year: 2013, country: "Germany", energyType: "Hydro", output: 5.6 },
18
+ { year: 2013, country: "Germany", energyType: "Solar", output: 36 },
19
+ { year: 2013, country: "Germany", energyType: "Wind", output: 34 },
20
+
21
+ -- https://www.ren21.net/wp-content/uploads/2019/05/GSR2015_Full-Report_English.pdf
22
+ { year: 2014, country: "China", energyType: "Bio", output: 10 },
23
+ { year: 2014, country: "China", energyType: "Hydro", output: 280 },
24
+ { year: 2014, country: "China", energyType: "Solar", output: 28 },
25
+ { year: 2014, country: "China", energyType: "Wind", output: 115 },
26
+
27
+ { year: 2014, country: "USA", energyType: "Bio", output: 16.1 },
28
+ { year: 2014, country: "USA", energyType: "Hydro", output: 79 },
29
+ { year: 2014, country: "USA", energyType: "Solar", output: 18 },
30
+ { year: 2014, country: "USA", energyType: "Wind", output: 66 },
31
+
32
+ { year: 2014, country: "Germany", energyType: "Bio", output: 8.8 },
33
+ { year: 2014, country: "Germany", energyType: "Hydro", output: 5.6 },
34
+ { year: 2014, country: "Germany", energyType: "Solar", output: 38 },
35
+ { year: 2014, country: "Germany", energyType: "Wind", output: 39 },
36
+
37
+ -- https://www.ren21.net/gsr-2016/00-Reference-Tables.php
38
+ { year: 2015, country: "China", energyType: "Bio", output: 10.3 },
39
+ { year: 2015, country: "China", energyType: "Hydro", output: 96 },
40
+ { year: 2015, country: "China", energyType: "Solar", output: 44 },
41
+ { year: 2015, country: "China", energyType: "Wind", output: 145 },
42
+
43
+ { year: 2015, country: "USA", energyType: "Bio", output: 16.7 },
44
+ { year: 2015, country: "USA", energyType: "Hydro", output: 80 },
45
+ { year: 2015, country: "USA", energyType: "Solar", output: 26 },
46
+ { year: 2015, country: "USA", energyType: "Wind", output: 74 },
47
+
48
+ { year: 2015, country: "Germany", energyType: "Bio", output: 7.1 },
49
+ { year: 2015, country: "Germany", energyType: "Hydro", output: 5.6 },
50
+ { year: 2015, country: "Germany", energyType: "Solar", output: 40 },
51
+ { year: 2015, country: "Germany", energyType: "Wind", output: 45 },
52
+
53
+ -- https://www.ren21.net/gsr-2017/pages/tables/tables/#table-R2
54
+ { year: 2016, country: "China", energyType: "Bio", output: 12 },
55
+ { year: 2016, country: "China", energyType: "Hydro", output: 305 },
56
+ { year: 2016, country: "China", energyType: "Solar", output: 77 },
57
+ { year: 2016, country: "China", energyType: "Wind", output: 169 },
58
+
59
+ { year: 2016, country: "USA", energyType: "Bio", output: 16.8 },
60
+ { year: 2016, country: "USA", energyType: "Hydro", output: 80 },
61
+ { year: 2016, country: "USA", energyType: "Solar", output: 41 },
62
+ { year: 2016, country: "USA", energyType: "Wind", output: 82 },
63
+
64
+ { year: 2016, country: "Germany", energyType: "Bio", output: 7.6 },
65
+ { year: 2016, country: "Germany", energyType: "Hydro", output: 5.6 },
66
+ { year: 2016, country: "Germany", energyType: "Solar", output: 41 },
67
+ { year: 2016, country: "Germany", energyType: "Wind", output: 50 },
68
+
69
+ -- https://www.ren21.net/gsr-2018/pages/tables/tables/#Table_R2
70
+ { year: 2017, country: "China", energyType: "Bio", output: 14.9 },
71
+ { year: 2017, country: "China", energyType: "Hydro", output: 313 },
72
+ { year: 2017, country: "China", energyType: "Solar", output: 131 },
73
+ { year: 2017, country: "China", energyType: "Wind", output: 188},
74
+
75
+ { year: 2017, country: "USA", energyType: "Bio", output: 16.7 },
76
+ { year: 2017, country: "USA", energyType: "Hydro", output: 80 },
77
+ { year: 2017, country: "USA", energyType: "Solar", output: 51 },
78
+ { year: 2017, country: "USA", energyType: "Wind", output: 89 },
79
+
80
+ { year: 2017, country: "Germany", energyType: "Bio", output: 8 },
81
+ { year: 2017, country: "Germany", energyType: "Hydro", output: 5.6 },
82
+ { year: 2017, country: "Germany", energyType: "Solar", output: 42 },
83
+ { year: 2017, country: "Germany", energyType: "Wind", output: 56 },
84
+
85
+ -- https://www.ren21.net/gsr-2019/tables/table_02/table_02/
86
+ { year: 2018, country: "China", energyType: "Bio", output: 17.8 },
87
+ { year: 2018, country: "China", energyType: "Hydro", output: 322 },
88
+ { year: 2018, country: "China", energyType: "Solar", output: 176 },
89
+ { year: 2018, country: "China", energyType: "Wind", output: 210 },
90
+
91
+ { year: 2018, country: "USA", energyType: "Bio", output: 16.2 },
92
+ { year: 2018, country: "USA", energyType: "Hydro", output: 80 },
93
+ { year: 2018, country: "USA", energyType: "Solar", output: 62 },
94
+ { year: 2018, country: "USA", energyType: "Wind", output: 96 },
95
+
96
+ { year: 2018, country: "Germany", energyType: "Bio", output: 8.4 },
97
+ { year: 2018, country: "Germany", energyType: "Hydro", output: 5.6 },
98
+ { year: 2018, country: "Germany", energyType: "Solar", output: 45 },
99
+ { year: 2018, country: "Germany", energyType: "Wind", output: 59 }
100
+ ]
@@ -0,0 +1,38 @@
1
+ MultiView {|
2
+ "stacked-bar-chart" :=
3
+ let totalFor year country rows =
4
+ let [ row ] = [ row | row <- rows, row.year == year, row.country == country ]
5
+ in row.nuclearOut + row.gasOut + row.coalOut + row.petrolOut;
6
+ let stack year = [ { y: country, z: totalFor year country nonRenewables }
7
+ | country <- ["BRA", "EGY", "IND", "JPN"] ]
8
+ in BarChart {
9
+ caption: "Non-renewables by country",
10
+ data: [ { x: numToStr year, bars: stack year }
11
+ | year <- [2014..2018] ]
12
+ },
13
+ "scatter-plot" :=
14
+ let isCountry name x = name == x.country;
15
+ isYear year x = year == x.year;
16
+
17
+ let plot year countries =
18
+ let rens = filter (isYear year) renewables;
19
+ nonRens = filter (isYear year) nonRenewables;
20
+ let plotCountry country =
21
+ let rens' = filter (isCountry country) rens;
22
+ rensOut = sum (map (fun x -> x.output) rens');
23
+ rensCap = sum (map (fun x -> x.capacity) rens');
24
+ x = head (filter (isCountry country) nonRens);
25
+ nonRensCap = x.nuclearCap + x.petrolCap + x.gasCap + x.coalCap
26
+ in {
27
+ x: rensCap / (rensCap + nonRensCap),
28
+ y: (rensOut + x.nuclearOut) / (rensCap + x.nuclearCap)
29
+ }
30
+ in map plotCountry countries
31
+
32
+ in ScatterPlot {
33
+ caption: "Clean energy efficiency vs. proportion of renewable energy capacity",
34
+ data: plot 2018 [ "BRA", "CHN", "DEU", "FRA", "EGY", "IND", "JPN", "MEX", "NGA", "USA" ],
35
+ xlabel: "Renewables/TotalEnergyCap",
36
+ ylabel: "Clean Capacity Factor"
37
+ }
38
+ |}