I got a Sheet from the Internet, which I first fetch and then process as JSON (processDataasJSON).
The Array after this looks like just an short Example:
[object Object] {
Bunker fuels (Not in Total): 9,
Cement: 162,
Country: "ZIMBABWE",
Gas Flaring: 0,
Gas Fuel: 0,
Liquid Fuel: 1119,
Per Capita: 0.21,
Solid Fuel: 1902,
Total: 3184,
Year: 2013
}, [object Object] {
Bunker fuels (Not in Total): 9,
Cement: 14,
Country: "AFGHANISTAN",
Gas Flaring: 0,
Gas Fuel: 74,
Liquid Fuel: 1393,
Per Capita: 0.08,
Solid Fuel: 1194,
Total: 2675,
Year: 2014
}, [object Object] {
Bunker fuels (Not in Total): 23,
Cement: 299,
Country: "ALBANIA",
Gas Flaring: 0,
Gas Fuel: 16,
Liquid Fuel: 1053,
Per Capita: 0.54,
Solid Fuel: 191,
Total: 1559,
Year: 2014
As you can see there are many different Years and many Entries for every Year.
I now want to make a Table which only lists every single year and a single Total of all the Countries Totals added together.
Any Ideas or Help?
The Table should look like this: