chart = SankeyChart({
links: statisticalInstituteOfJamaicaAnnualAveragesOfAllEm.map(d => {
return {source: d["1/1/2010"], target: d["1/1/2011"]}
})
}, {
nodeGroup: d => d["Series title"],
nodeAlign: d3.sankeyJustify,
linkColor: "source",
format: (f => d => `${f(d)} TWh`)(d3.format(",.1~f")),
width,
height: 600
})