Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion en/option/series/sankey.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,17 @@ Note when [orient](~series-sankey.orient) is `vertical`, `nodeAlign` controls ve

<ExampleUIControlNumber default="32" min="0" max="100" step="1" />

The iterations of layout, which is used to iteratively optimize the position of the nodes and edges in the Sankey diagram to reduce the overlapping between nodes and edges. The default value is `32`. If you want the order of the nodes in the chart to be the same with the order in the original [data](~series-sankey.data), you can set the value to be `0`.
The iterations of layout, which is used to iteratively optimize the position of the nodes and edges in the Sankey diagram to reduce the overlapping between nodes and edges. The default value is `32`.

If you want to preserve the original order of nodes within each depth level while still using layout optimization, consider using [sortNodes](~series-sankey.sortNodes) instead of setting this value to `0`.

## sortNodes(boolean) = true

<ExampleUIControlBoolean default="true" />

Whether to sort nodes within each depth level during layout collision resolution.

By default, nodes are automatically sorted based on their computed position to reduce edge crossings and improve layout readability. If set to `false`, the original order of nodes defined in [data](~series-sankey.data) is preserved within each depth level, while the layout algorithm still performs the other layout optimization.

## orient(string) = 'horizontal'

Expand Down