Captain Matthew Henry Energy Flow Sankey diagram

Is it possible to draw sankey diagram with both vertical nodes and horizontal nodes in the same diagram using d3?

You can use D3 to create anything in SVG, Canvas, etc., so yes this is possible (in the technical sense).

But D3 won’t produce this type of diagram for you automatically, and the d3-sankey module doesn’t understand this type of diagram. So I expect it would either involve a lot of manual layout, or inventing some new layout algorithm if you want it automated.

1 Like