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

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


The following commit(s) were added to refs/heads/release by this push:
     new af8662b  add clip option in line,bar,custom,lines,scatter series
af8662b is described below

commit af8662bb45838879554b0e6af11ce7e85487f244
Author: pissang <[email protected]>
AuthorDate: Fri Sep 27 10:55:52 2019 +0800

    add clip option in line,bar,custom,lines,scatter series
---
 cn/option/partial/clip.md    | 15 +++++++++++++++
 cn/option/partial/version.md |  3 +++
 cn/option/series/bar.md      |  4 ++++
 cn/option/series/custom.md   |  5 +++++
 cn/option/series/line.md     |  5 +++--
 cn/option/series/lines.md    |  4 ++++
 cn/option/series/scatter.md  |  4 ++++
 en/option/partial/clip.md    | 15 +++++++++++++++
 en/option/partial/version.md |  3 +++
 en/option/series/bar.md      |  4 ++++
 en/option/series/custom.md   |  5 +++++
 en/option/series/line.md     |  5 +++--
 en/option/series/lines.md    |  4 ++++
 en/option/series/scatter.md  |  4 ++++
 14 files changed, 76 insertions(+), 4 deletions(-)

diff --git a/cn/option/partial/clip.md b/cn/option/partial/clip.md
new file mode 100644
index 0000000..98245af
--- /dev/null
+++ b/cn/option/partial/clip.md
@@ -0,0 +1,15 @@
+{{ target: partial-clip }}
+
+#${prefix|default('#')} clip(boolean) = ${defaultClip|default(true)}
+
+{{ use: partial-version(version='4.4.0') }}
+
+是否裁剪超出坐标系部分的图形,具体裁剪效果根据系列决定:
+
++ 散点图:忽略中心点超出坐标系的图形,但是不裁剪单个图形
++ 柱状图:裁掉所有超出坐标系的部分,但是依然保留柱子的宽度
++ 折线图:裁掉所有超出坐标系的折线部分,拐点图形的逻辑按照散点图处理
++ 路径图:裁掉所有超出坐标系的部分
++ 自定义系列:裁掉所有超出坐标系的部分
+
+除了自定义系列,其它系列的默认值都为 true,及开启裁剪,如果你觉得不想要裁剪的话,可以设置成 false 关闭。
\ No newline at end of file
diff --git a/cn/option/partial/version.md b/cn/option/partial/version.md
new file mode 100644
index 0000000..43e4cf0
--- /dev/null
+++ b/cn/option/partial/version.md
@@ -0,0 +1,3 @@
+{{ target: partial-version }}
+
+> 从 ${version} 开始支持
\ No newline at end of file
diff --git a/cn/option/series/bar.md b/cn/option/series/bar.md
index fabf1e2..c921456 100644
--- a/cn/option/series/bar.md
+++ b/cn/option/series/bar.md
@@ -139,6 +139,10 @@
     hasType=true
 )}}
 
+{{use:partial-clip(
+    prefix="#"
+) }}
+
 {{use:partial-z-zlevel(
     prefix="#",
     componentName="柱状图"
diff --git a/cn/option/series/custom.md b/cn/option/series/custom.md
index 93d4b51..1f4feeb 100644
--- a/cn/option/series/custom.md
+++ b/cn/option/series/custom.md
@@ -431,6 +431,11 @@ renderItem 函数的第二个参数。
 )}}
 
 
+{{use:partial-clip(
+    prefix="#",
+    defaultClip=false
+) }}
+
 {{use:partial-z-zlevel(
     prefix="#",
     componentName="自定义图"
diff --git a/cn/option/series/line.md b/cn/option/series/line.md
index 4470a52..f1a91d2 100644
--- a/cn/option/series/line.md
+++ b/cn/option/series/line.md
@@ -61,8 +61,9 @@
 ## connectNulls(boolean) = false
 是否连接空数据。
 
-## clipOverflow(boolean) = true
-是否对超出部分裁剪,默认裁剪。
+{{use:partial-clip(
+    prefix="#"
+) }}
 
 ## step(string|boolean) = false
 
diff --git a/cn/option/series/lines.md b/cn/option/series/lines.md
index 0b66f03..848184c 100644
--- a/cn/option/series/lines.md
+++ b/cn/option/series/lines.md
@@ -185,6 +185,10 @@ ECharts 2.x 里会用地图上的 `markLine` 去绘制迁徙效果,在 ECharts
     seriesType="lines"
 )}}
 
+{{use:partial-clip(
+    prefix="#"
+) }}
+
 {{use:partial-z-zlevel(
     prefix="#",
     componentName="线图"
diff --git a/cn/option/series/scatter.md b/cn/option/series/scatter.md
index 1155f9a..8203d33 100644
--- a/cn/option/series/scatter.md
+++ b/cn/option/series/scatter.md
@@ -137,6 +137,10 @@
     hasType=true
 )}}
 
+{{use:partial-clip(
+    prefix="#"
+) }}
+
 {{use:partial-z-zlevel(
     prefix="#",
     componentName="散点图"
diff --git a/en/option/partial/clip.md b/en/option/partial/clip.md
new file mode 100644
index 0000000..47ef368
--- /dev/null
+++ b/en/option/partial/clip.md
@@ -0,0 +1,15 @@
+{{ target: partial-clip }}
+
+#${prefix|default('#')} clip(boolean) = ${defaultClip|default(true)}
+
+{{ use: partial-version(version='4.4.0') }}
+
+If clip the overflow on the coordinate system. Clip results varies between 
series:
+
++ Scatter:Ignore the symbols exceeds the coordinate system. Not clip the 
graphics.
++ Bar:Clip all the overflowed. With bar width kept.
++ Line:Clip the overflowed line.
++ Lines: Clip all the overflowed.
++ Custom: Clip all the olverflowed.
+
+All these series have default value `true` except custom series. Set it to 
`false` if you don't want to clip.
\ No newline at end of file
diff --git a/en/option/partial/version.md b/en/option/partial/version.md
new file mode 100644
index 0000000..3b437e1
--- /dev/null
+++ b/en/option/partial/version.md
@@ -0,0 +1,3 @@
+{{ target: partial-version }}
+
+> Since ${version}
\ No newline at end of file
diff --git a/en/option/series/bar.md b/en/option/series/bar.md
index 68bfa1f..4cc8793 100644
--- a/en/option/series/bar.md
+++ b/en/option/series/bar.md
@@ -128,6 +128,10 @@ The style setting of the text label in a single bar.
     hasType=true
 )}}
 
+{{use:partial-clip(
+    prefix="#"
+) }}
+
 {{use:partial-z-zlevel(
     prefix="#",
     componentName="bar chart"
diff --git a/en/option/series/custom.md b/en/option/series/custom.md
index d314f49..7f8ba35 100644
--- a/en/option/series/custom.md
+++ b/en/option/series/custom.md
@@ -433,6 +433,11 @@ Value of data item.
 )}}
 
 
+{{use:partial-clip(
+    prefix="#",
+    defaultClip='false'
+) }}
+
 {{use:partial-z-zlevel(
     prefix="#",
     componentName="custom series"
diff --git a/en/option/series/line.md b/en/option/series/line.md
index ee49a81..727ea05 100644
--- a/en/option/series/line.md
+++ b/en/option/series/line.md
@@ -60,8 +60,9 @@ The effect of the below example could be seen through stack 
switching of [toolbo
 ## connectNulls(boolean) = false
 Whether to connect the line across null points.
 
-## clipOverflow(boolean) = true
-Whether to clip the overflowing part, which defaults to clip.
+{{use:partial-clip(
+    prefix="#"
+) }}
 
 ## step(string|boolean) = false
 Whether to show as a step line. It can be `true`, `false`. Or `'start'`, 
`'middle'`, `'end'`. Which will configure the turn point of step line.
diff --git a/en/option/series/lines.md b/en/option/series/lines.md
index e5bca3c..fbd49c1 100644
--- a/en/option/series/lines.md
+++ b/en/option/series/lines.md
@@ -162,6 +162,10 @@ The line style of this data item.
     seriesType="lines"
 )}}
 
+{{use:partial-clip(
+    prefix="#"
+) }}
+
 {{use:partial-z-zlevel(
     prefix="#",
     componentName="lines graph"
diff --git a/en/option/series/scatter.md b/en/option/series/scatter.md
index 06038db..3cc9d91 100644
--- a/en/option/series/scatter.md
+++ b/en/option/series/scatter.md
@@ -137,6 +137,10 @@ the style setting about single data point(bubble).
     hasType=true
 )}}
 
+{{use:partial-clip(
+    prefix="#"
+) }}
+
 {{use:partial-z-zlevel(
     prefix="#",
     componentName="scatter chart"


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

Reply via email to