Version: 3.4.0
I'm struggling to find out how to manage order of nodes in the sankey diagram. For example, this diagram:

is defined (source attached sankey-order.zip) in this order:
nodes:
links:
where the order on the diagram is:
Which doesn't reflect the source code. Is there any way to do this - provide some sort of order index or simply order by given order?
Thanks for any suggestion!
It seems like the order is based on values, I've changed all values to "1" and now it shows as:

Is there any way to change ordering, say by order in the source file or provided sortFn?
Any update on this?
+1 - Another option could be allowing layoutIterations to be set to 0. Allowing the user to sort the nodes
+1 Would love more control on how to change the ordering of the nodes.
+1 Any update on the issue ?
Hi everyone,I will follow this issue, sorry for letting you wait so long!
Hi everyone, I have fixed this problem, which will be released next version. Now nodes sort by the order in series.data and will not be changed even your resize the diagram. Thanks for your suggestions!
If there any problem after you try the new version, please reopen this issue.
这个问题,在修改了links里面的value值的时候排序又会发生改变了
This issue is not created using issue template so I'm going to close it. 🙊
Sorry for this, but it helps save our maintainers' time so that more developers get helped.
Feel free to create another issue using the issue template.
这个 issue 未使用 issue 模板 创建,所以我将关闭此 issue。
为此带来的麻烦我深表歉意,但是请理解这是为了节约社区维护者的时间,以更高效地服务社区的开发者群体。
如果您愿意,可以请使用 issue 模板重新创建 issue。
any updates on how to do this in 2019?
Hey @deqingli ,
"Now nodes sort by the order in series.data and will not be changed even your resize the diagram"
I think this is not true. I have reordered my data array to fit the order I want and it still does not work.
@iandvt What is this solution with layoutIterations? Anyway to disable this?
@jbadilla you can use layoutIterations: 0 to disable it, and apparently order is preserved.
Hey @deqingli ,
"Now nodes sort by the order in series.data and will not be changed even your resize the diagram"
I think this is not true. I have reordered my data array to fit the order I want and it still does not work.
@iandvt What is this solution with
layoutIterations? Anyway to disable this?
Hi @jbadilla, If you want the node ordered by the series.data, you can set layoutIterations: 0.
Most helpful comment
+1 Would love more control on how to change the ordering of the nodes.