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)
https://observablehq.com/d/52835d0f6f235322

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