You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by su...@apache.org on 2020/03/06 22:59:25 UTC

[incubator-echarts-doc] branch master updated: fix: add toolbox dataZoom filterMode.

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

sushuang 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 ef8e521  fix: add toolbox dataZoom filterMode.
ef8e521 is described below

commit ef8e5218c1d38a4edbc863002256708912fdd8fd
Author: 100pah <su...@gmail.com>
AuthorDate: Sat Mar 7 02:25:58 2020 +0800

    fix: add toolbox dataZoom filterMode.
---
 en/option/component/data-zoom.md | 12 ++++--------
 en/option/component/toolbox.md   |  3 +++
 zh/option/component/data-zoom.md | 15 ++++++---------
 zh/option/component/toolbox.md   |  3 +++
 4 files changed, 16 insertions(+), 17 deletions(-)

diff --git a/en/option/component/data-zoom.md b/en/option/component/data-zoom.md
index 4acd613..29e68b4 100644
--- a/en/option/component/data-zoom.md
+++ b/en/option/component/data-zoom.md
@@ -37,10 +37,6 @@ A single chart instance can contains several `dataZoom` components, each of whic
 
 **✦ How dataZoom componets operates axes and data ✦**
 
-Generally `dataZoom` component zoom or roam coordinate system through data filtering and set the windows of axes internally.
-
-Its behaviours vary according to filtering mode settings ([dataZoom.filterMode](~dataZoom.filterMode)).
-
 {{use: partial-data-zoom-filterMode}}
 
 Moreover, when `min`, `max` of an axis is set (e.g., `yAxis: {min: 0, max: 400}`), this extent of the axis will not be modified by the behaviour of dataZoom of other axis any more.
@@ -212,10 +208,6 @@ Specify which [angleAxis](~angleAxis) is/are controlled by the `${dataZoomName}`
 
 ## filterMode(string) = 'filter'
 
-Generally `dataZoom` component zoom or roam coordinate system through data filtering and set the windows of axes internally.
-
-Its behaviours vary according to filtering mode settings ([dataZoom.filterMode](~dataZoom.filterMode)).
-
 {{use: partial-data-zoom-filterMode}}
 
 
@@ -334,6 +326,10 @@ Take a scenario as an example. When we are using dynamic data (update data perio
 
 {{target: partial-data-zoom-filterMode}}
 
+Generally `dataZoom` component zoom or roam coordinate system through data filtering and set the windows of axes internally.
+
+Its behaviours vary according to filtering mode settings ([dataZoom.filterMode](~dataZoom.filterMode)).
+
 Possible values:
 
 + 'filter': data that outside the window will be **filtered**, which may lead to some changes of windows of other axes. For each data item, it will be filtered if one of the relevant dimensions is out of the window.
diff --git a/en/option/component/toolbox.md b/en/option/component/toolbox.md
index a4c6876..9fd11ca 100644
--- a/en/option/component/toolbox.md
+++ b/en/option/component/toolbox.md
@@ -191,6 +191,9 @@ Color of button text.
 Data area zooming, which only supports rectangular coordinate by now.
 {{ use: feature-common(title="data area zooming") }}
 
+#### filterMode(string) = 'filter'
+The same meaning as [dataZoom.filterMode](~dataZoom.filterMode).
+
 #### xAxisIndex(number|Array|boolean)
 Defines which [xAxis](~xAxis) should be controlled. By default, it controls all x axes. If it is set to be `false`, then no x axis is controlled. If it is set to be then it controls axis with axisIndex of `3`. If it is set to be `[0, 3]`, it controls the x-axes with axisIndex of `0` and `3`.
 
diff --git a/zh/option/component/data-zoom.md b/zh/option/component/data-zoom.md
index 78c45f4..64f3ad5 100644
--- a/zh/option/component/data-zoom.md
+++ b/zh/option/component/data-zoom.md
@@ -37,11 +37,7 @@
 
 **✦ dataZoom 组件如何影响轴和数据 ✦**
 
-`dataZoom` 的运行原理是通过 `数据过滤` 以及在内部设置轴的显示窗口来达到 `数据窗口缩放` 的效果。
-
-数据过滤模式([dataZoom.filterMode](~dataZoom.filterMode))的设置不同,效果也不同。
-
-{{use: partial-data-zoom-filterMode (galleryViewPath=${galleryViewPath})}}
+{{use: partial-data-zoom-filterMode}}
 
 另外,如果在任一个数轴上设置了 `min`、`max`(如设置 `yAxis: {min: 0, max: 400}`),那么这个数轴无论如何也不会被其他数轴的 dataZoom 行为影响了。
 
@@ -204,10 +200,7 @@ option: {
 
 ## filterMode(string) = 'filter'
 
-`dataZoom` 的运行原理是通过 `数据过滤` 来达到 `数据窗口缩放` 的效果。数据过滤模式的设置不同,效果也不同。
-
-{{use: partial-data-zoom-filterMode (galleryViewPath=${galleryViewPath})}}
-
+{{use: partial-data-zoom-filterMode}}
 
 
 ## start(number) = 0
@@ -324,6 +317,10 @@ option: {
 
 {{target: partial-data-zoom-filterMode}}
 
+`dataZoom` 的运行原理是通过 `数据过滤` 以及在内部设置轴的显示窗口来达到 `数据窗口缩放` 的效果。
+
+数据过滤模式([dataZoom.filterMode](~dataZoom.filterMode))的设置不同,效果也不同。
+
 可选值为:
 
 + 'filter':当前数据窗口外的数据,被 **过滤掉**。即 **会** 影响其他轴的数据范围。每个数据项,只要有一个维度在数据窗口外,整个数据项就会被过滤掉。
diff --git a/zh/option/component/toolbox.md b/zh/option/component/toolbox.md
index 8cbc649..037518d 100644
--- a/zh/option/component/toolbox.md
+++ b/zh/option/component/toolbox.md
@@ -189,6 +189,9 @@ optionToContent: function(opt) {
 数据区域缩放。目前只支持直角坐标系的缩放。
 {{ use: feature-common(title="数据区域缩放") }}
 
+#### filterMode(string) = 'filter'
+与 [dataZoom.filterMode](~dataZoom.filterMode) 含义和取值相同。
+
 #### xAxisIndex(number|Array|boolean)
 指定哪些 [xAxis](~xAxis) 被控制。如果缺省则控制所有的x轴。如果设置为 `false` 则不控制任何x轴。如果设置成 `3` 则控制 axisIndex 为 `3` 的x轴。如果设置为 `[0, 3]` 则控制 axisIndex 为 `0` 和 `3` 的x轴。
 #### yAxisIndex(number|Array|boolean)


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