tomshanley / d3-sankey-circular

A fork of the d3-sankey library to allow circular links.
MIT License
89 stars 41 forks source link

Allow for variable width nodes #8

Open tomshanley opened 6 years ago

tomshanley commented 6 years ago

Update the API for nodeWidth to accept a function that returns a number for width Notes: still accept number for backwards compatibility update the scaleSankeySize function that sets a node's x0 and x1, based on dx (ie nodeWidth)