d3 / d3-sankey

Visualize flow between nodes in a directed acyclic network.

Home Page:https://observablehq.com/collection/@d3/d3-sankey

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

D3 Sankey customization

bilmakovskiyruslan opened this issue · comments

D3 Sankey provides limited customization of the Sankey chart (like node|link color (content), width, padding).

Default Sankey chart:
2

But what if I need to change node heights and center the nodes vertically? How I can do that?

My requirements:
1

Can anyone help me?

I had to fork the sankey lib and wiggle with the model a bit. You cannot do it natively.