based on http://mashe.hawksey.info/2013/03/sankey-your-google-spreadsheet-data-d3js/