Why my Sankey figure cannot be shown?

Dear all, I’m editing a Sankey figure code, but the figure cannot be shown, would you pls kindly take a look at the codes? (the nodes should be 5 rows * 11 columns, nodes with same type should be in same column)

Your referencing in the SVG draw was off.

 const {nodes, links} = sankey_T(data_T);

nodes and links holds the data you want to draw.

1 Like