Ovilia commented on code in PR #500:
URL: https://github.com/apache/echarts-doc/pull/500#discussion_r3144656890


##########
en/option/series/sankey.md:
##########
@@ -77,7 +77,21 @@ 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 
[sort](~series-sankey.sort) and set it to `null` instead of setting this value 
to `0`.
+
+## sort(string) = 'desc'
+
+<ExampleUIControlEnum options="desc,null" />
+
+Whether to sort nodes within each depth level during layout collision 
resolution.
+
+By default, this option is `'desc'`, which preserves the previous behavior. 
When `sort` is `undefined`, the default option still makes it behave as 
`'desc'`.

Review Comment:
   `which preserves the previous behavior` can be omitted because the 
developers reading the doc may have no idea what *the previous* means without 
the concept of your PR. And you may add some hints that `'desc'` sorts the data 
in descending order.



##########
zh/option/series/sankey.md:
##########
@@ -80,7 +80,19 @@ const option = 
{"tooltip":{"trigger":"item","triggerOn":"mousemove"},"series":[{
 
 <ExampleUIControlNumber default="32" min="0" max="100" step="1" />
 
-布局的迭代次数,目的是不断迭代优化图中节点和边的位置,以减少节点和边之间的相互遮盖,默认值是 `32`。如果希望图中节点的顺序是按照原始 
[data](~series-sankey.data) 中的顺序排列的,可设该值为 `0`。
+布局的迭代次数,目的是不断迭代优化图中节点和边的位置,以减少节点和边之间的相互遮盖,默认值是 `32`。如果希望在保持布局优化的同时,保留每一层节点在 
[data](~series-sankey.data) 中的原始顺序,建议使用 [sort](~series-sankey.sort) 并将其设为 
`null`,而不是将此值设为 `0`。
+
+## sort(string) = 'desc'
+
+<ExampleUIControlEnum options="desc,null" />
+
+是否在布局碰撞解决过程中对每一层内的节点进行排序。
+
+默认值是 `'desc'`,这会保持之前的行为。当 `sort` 为 `undefined` 时,也会因默认值而按 `'desc'` 处理。

Review Comment:
   Chinese version should be changed accordingly.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to