reference sankey.js code: https://vizhub.com/nitanagdeote/08c92db1cae14eca9488acaeefca3d18?edit=files&file=sankey.js