You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by de...@apache.org on 2020/01/19 07:31:37 UTC
[incubator-echarts-doc] branch master updated: update sankey doc
This is an automated email from the ASF dual-hosted git repository.
deqingli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-doc.git
The following commit(s) were added to refs/heads/master by this push:
new 9ef634f update sankey doc
9ef634f is described below
commit 9ef634f04c546fa256258a6c5519b686c281a935
Author: deqingli <an...@gmail.com>
AuthorDate: Sun Jan 19 15:31:18 2020 +0800
update sankey doc
---
en/option/series/sankey.md | 6 +-----
zh/option/series/sankey.md | 9 ++++-----
2 files changed, 5 insertions(+), 10 deletions(-)
diff --git a/en/option/series/sankey.md b/en/option/series/sankey.md
index a04bf1a..46141b1 100644
--- a/en/option/series/sankey.md
+++ b/en/option/series/sankey.md
@@ -48,11 +48,7 @@ The gap between any two regtangles in each column of the Sankey diagram.
## layoutIterations(number) = 32
-The iterations of layout, which is used to continuously optimize the positions of nodes in Sankey diagram, decreasing the overlapping between nodes and edges.
-
-The default iterations of layout: `32`.
-
-The test shows that iterations of layout could not be less than the default value.
+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`.
## orient(string) = 'horizontal'
diff --git a/zh/option/series/sankey.md b/zh/option/series/sankey.md
index 451791c..795313c 100644
--- a/zh/option/series/sankey.md
+++ b/zh/option/series/sankey.md
@@ -20,7 +20,9 @@
<br>
**排序:**
-如果想指定结果的纵向顺序,那么可以把 [layoutIterations](~series-sankey.layoutIterations) 设为 `0`,此时纵向的顺序依照数据在 [links](~series-sankey.links) 中出现的顺序。
+
+如果想指定每层节点的顺序是按照 [data](~series-sankey.data) 中的顺序排列的。可以设置 [layoutIterations](~series-sankey.layoutIterations) 为 `0`。
+
## type(string) = 'sankey'
@@ -54,11 +56,8 @@
## layoutIterations(number) = 32
-布局的迭代次数,用来不断优化图中节点的位置,以减少节点和边之间的相互遮盖。
-
-默认布局迭代次数:`32`。
+布局的迭代次数,目的是不断迭代优化图中节点和边的位置,以减少节点和边之间的相互遮盖,默认值是 `32`。如果希望图中节点的顺序是按照原始 [data](~series-sankey.data) 中的顺序排列的,可设该值为 `0`。
-经测试,布局迭代次数不要低于默认值。
## orient(string) = 'horizontal'
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org