You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2020/08/28 04:43:43 UTC

[incubator-echarts-doc] 01/02: add orient doc in funnel

This is an automated email from the ASF dual-hosted git repository.

shenyi pushed a commit to branch 4.9.0
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-doc.git

commit 9c12af66e7efa0309fc44ede0f278cecf67a11a2
Author: pissang <bm...@gmail.com>
AuthorDate: Fri Aug 28 12:38:24 2020 +0800

    add orient doc in funnel
---
 en/option/series/funnel.md | 55 ++++++++++++++++------------------------------
 zh/option/series/bar.md    |  2 +-
 zh/option/series/funnel.md | 54 +++++++++++++++------------------------------
 3 files changed, 38 insertions(+), 73 deletions(-)

diff --git a/en/option/series/funnel.md b/en/option/series/funnel.md
index 28d975d..376964d 100644
--- a/en/option/series/funnel.md
+++ b/en/option/series/funnel.md
@@ -30,6 +30,11 @@ The mapped width from maximum data value [max](~series-funnel.max).
 
 It can be absolute pixel and also the percentage of [layout width](~series-funnel.width).
 
+
+## orient(string) = 'vertical'
+
+Orient of funnel,Can be `'vertical'` or `'horizontal'`.
+
 ## sort(string|Function) = 'descending'
 Data sorting, which can be whether `'ascending'`, `'descending'`, `'none'`(in data order) or a function, which is the same as `Array.prototype.sort(function (a, b) { ... })`;
 
@@ -182,45 +187,23 @@ The label configuration of a single data item.
 Label position.
 
 **Options: **
-+ `'left'`
-
-    Left side of funnel chart. The corresponding trapezoid would be related to through [visual guide line](~series-funnel.labelLine).
-
-+ `'right'`
-
-   Right side of funnel chart. The corresponding trapezoid would be related to through [visual guide line](~series-funnel.labelLine).
-
-+ `'inside'`
-
-    Inside the trapezoid of funnel chart.
-
-+ `'insideRight'`
-
-    Right inside the trapezoid of funnel chart.
-
-+ `'insideLeft'`
-
-    Left inside the trapezoid of funnel chart.
-
-+ `'leftTop'`
-
-    Top-left of funnel chart.
-
-+ `'leftBottom'`
-
-    Bottom-left of funnel chart.
-
-+ `'rightTop'`
-
-    Top-right side of funnel chart.
-
-+ `'rightBottom'`
-
-    Bottom-right side of funnel chart.
-
++ `'left'`Left side of funnel chart. Available when [orient](~series-funnel.orient) is `'vertical'`.
++ `'right'` Right side of funnel chart. Available when [orient](~series-funnel.orient) is `'horizontal'`.
++ `'top'` Top side of funnel chart. Available when [orient](~series-funnel.orient) is `'vertical'`.
++ `'bottom'` Bottom side of funnel chart. Available when [orient](~series-funnel.orient) is `'vertical'`.
++ `'inside'`Inside the trapezoid of funnel chart.
++ `'insideRight'`Right inside the trapezoid of funnel chart.
++ `'insideLeft'`Left inside the trapezoid of funnel chart.
++ `'leftTop'`Top-left of funnel chart.
++ `'leftBottom'`Bottom-left of funnel chart.
++ `'rightTop'`Top-right side of funnel chart.
++ `'rightBottom'`Bottom-right side of funnel chart.
 + `'inner'` equals to `'inside'`.
 + `'center'` equals to `'inside'`.
 
+[labelLine](~series-funnel.labelLine) can be used to guide to the corresponding trapezoid when label is not inside.
+
+
 {{ /if }}
 {{ if: ${formatter} }}
 #${prefix} formatter(string|Function)
diff --git a/zh/option/series/bar.md b/zh/option/series/bar.md
index 543f9a5..338e05b 100644
--- a/zh/option/series/bar.md
+++ b/zh/option/series/bar.md
@@ -109,7 +109,7 @@ option = {
 
 仅对极坐标系柱状图有效。
 
-~[800x500](${galleryViewPath}doc-example/polar-roundCap&reset=1&edit=1)
+~[800x500](${galleryViewPath}polar-roundCap&reset=1&edit=1)
 
 ## label(Object)
 {{use:partial-label-desc}}
diff --git a/zh/option/series/funnel.md b/zh/option/series/funnel.md
index 66db66d..f357a9e 100644
--- a/zh/option/series/funnel.md
+++ b/zh/option/series/funnel.md
@@ -64,6 +64,10 @@ option = {
 
 可以是绝对的像素大小,也可以是相对[布局宽度](~series-funnel.width)的百分比。
 
+## orient(string) = 'vertical'
+
+漏斗图朝向,支持配置为`'vertical'`或者`'horizontal'`。
+
 ## sort(string|Function) = 'descending'
 
 <ExampleUIControlEnum options="none,descending,ascending" default="descending" />
@@ -232,45 +236,23 @@ option = {
 标签的位置。
 
 **可选:**
-+ `'left'`
-
-    漏斗图左侧,通过[视觉引导线](~series-funnel.labelLine)连到相应的梯形。
-
-+ `'right'`
-
-    漏斗图右侧,通过[视觉引导线](~series-funnel.labelLine)连到相应的梯形。
-
-+ `'inside'`
-
-    漏斗图梯形内部。
-
-+ `'insideRight'`
-
-    漏斗图梯形内部右侧。
-
-+ `'insideLeft'`
-
-    漏斗图梯形内部左侧。
-
-+ `'leftTop'`
-
-     漏斗图左侧上部。
-
- + `'leftBottom'`
-
-     漏斗图左侧下部。
-
- + `'rightTop'`
-
-     漏斗图右侧上部。
-
- + `'rightBottom'`
-
-     漏斗图右侧下部。
-
++ `'left'` 漏斗图左侧,[orient](~series-funnel.orient) 为`'vertical'`时有效。
++ `'right'` 漏斗图右侧,[orient](~series-funnel.orient) 为`'vertical'`时有效。
++ `'top'` 漏斗图上侧,[orient](~series-funnel.orient) 为`'horizontal'`时有效。
++ `'bottom'` 漏斗图下侧,[orient](~series-funnel.orient) 为`'horizontal'`时有效。
++ `'inside'` 漏斗图梯形内部。
++ `'insideRight'` 漏斗图梯形内部右侧。
++ `'insideLeft'` 漏斗图梯形内部左侧。
++ `'leftTop'` 漏斗图左侧上部。
++ `'leftBottom'`  漏斗图左侧下部。
++ `'rightTop'`  漏斗图右侧上部。
++ `'rightBottom'`  漏斗图右侧下部。
 + `'inner'` 同 `'inside'`。
 + `'center'` 同 `'inside'`。
 
+在不是配置为内部的时候标签可以通过[视觉引导线](~series-funnel.labelLine)连到相应的梯形。
+通过[视觉引导线](~series-funnel.labelLine)连到相应的梯形。
+
 {{ /if }}
 {{ if: ${formatter} }}
 #${prefix} formatter(string|Function)


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