Reusable sankey component built with d3