ricklupton / d3-sankey-diagram

Sankey diagram for d3
https://ricklupton.github.io/d3-sankey-diagram
MIT License
107 stars 35 forks source link

Is it possible to use the params data to move nodes #32

Open ludi81 opened 2 years ago

ludi81 commented 2 years ago

Hi,

In the original d3-sankey it is possible to store specific position of each nodes, as you can see in https://sankey.csaladen.es/.

The data structure uses the following format:

params":[0.5,0.25,0,0,0],"fixedlayout":[[400.5,218.78016596921236],[0,497.0588235294118],[0,61.70588235294119],[587.25,0],[195.75,274.87527492724956],[790,0],[581.75,0]]}

Can this be used in the d3-sankey-diagram?

ioanachi commented 2 years ago

Hello,

I am interested in this too. Can nodes skip a column without having a link to the nodes in the next column?

Thank you!