prepare sankey diagram