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 2019/12/25 14:25:02 UTC

[incubator-echarts-doc] branch master updated: add edge shape doc of the tree

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 1cd1447  add edge shape doc of the tree
1cd1447 is described below

commit 1cd144743c4b6707b6d1bf030f631f28d5ba4ecd
Author: deqingli <an...@gmail.com>
AuthorDate: Wed Dec 25 22:24:36 2019 +0800

    add edge shape doc of the tree
---
 en/option/series/tree.md | 14 ++++++++++++++
 zh/option/series/tree.md | 14 ++++++++++++++
 2 files changed, 28 insertions(+)

diff --git a/en/option/series/tree.md b/en/option/series/tree.md
index 95a98b1..c557b6b 100644
--- a/en/option/series/tree.md
+++ b/en/option/series/tree.md
@@ -61,6 +61,20 @@ The direction of the `orthogonal` layout in the tree diagram. That means this co
 ) }}
 
 
+# edgeShape(string) = 'curve'
+
+The shape of the edge which is under the tree `orthogonal layout`. There are two types of shape, curve and polyline, the corresponding values are `'curve'` and `'polyline'`.
+
+** Note: This configuration item is only valid under the `orthogonal layout`. Errors will be reported in the development environment under the `radial layout`. **
+
+
+## edgeForkPosition(string) = '50%'
+
+This is the position where the polyline branches in the subtree when the shape of the edge is a polyline in the `orthogonal layout`. The position here refers to the percentage of the distance between the bifurcation point and the parent node of the subtree to the height of the entire subtree. The default value is `'50%'`, which can be between ['0', '100%'].
+
+** Note: This configuration item is only valid when `edgeShape = 'curve'`. **
+
+
 ## roam(boolean|string) = false
 {{ use: partial-roam }}
 
diff --git a/zh/option/series/tree.md b/zh/option/series/tree.md
index 3dc8389..52c783a 100644
--- a/zh/option/series/tree.md
+++ b/zh/option/series/tree.md
@@ -61,6 +61,20 @@
 ) }}
 
 
+## edgeShape(string) = 'curve'
+
+树图在 `正交布局` 下,边的形状。分别有曲线和折线两种,对应的取值是 `curve` 和 `polyline`.
+
+**注意:该配置项只在 `正交布局` 下有效,在经向布局下的开发环境中会报错。**
+
+
+## edgeForkPosition(string) = '50%'
+
+正交布局下当边的形状是折线时,子树中折线段分叉的位置。这里的位置指的是分叉点与子树父节点的距离占整个子树高度的百分比。默认取值是 `'50%'`,可以是 ['0', '100%'] 之间。
+
+**注意:该配置项只有在 `edgeShape = 'curve'` 时才有效。**
+
+
 ## roam(boolean|string) = false
 {{ use: partial-roam }}
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org