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 2021/09/21 03:12:52 UTC

[echarts-doc] branch master updated: add axis label hideOverlap doc

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 1c46f4d  add axis label hideOverlap doc
1c46f4d is described below

commit 1c46f4d14da0c54bd3f60901186459af5277008d
Author: pissang <bm...@gmail.com>
AuthorDate: Tue Sep 21 11:12:42 2021 +0800

    add axis label hideOverlap doc
---
 en/option/component/axis-common.md | 10 ++++++++++
 en/option/partial/item-style.md    |  2 +-
 zh/option/component/axis-common.md | 17 ++++++++++++++---
 zh/option/partial/item-style.md    |  2 +-
 4 files changed, 26 insertions(+), 5 deletions(-)

diff --git a/en/option/component/axis-common.md b/en/option/component/axis-common.md
index afb5317..1c6da63 100644
--- a/en/option/component/axis-common.md
+++ b/en/option/component/axis-common.md
@@ -143,6 +143,16 @@ Whether to show the label of the min tick. Optional values: `true`, `false`, `nu
 
 Whether to show the label of the max tick. Optional values: `true`, `false`, `null`. It is auto determined by default, that is, if labels are overlapped, the label of the max tick will not be displayed.
 
+##${prefix} hideOverlap(boolean)
+
+<ExampleUIControlBoolean />
+
+{{ use: partial-version(
+    version = "5.2.0"
+) }}
+
+Whether to hide overlapped labels.
+
 {{ use: partial-text-style(
     prefix = '#' + ${prefix},
     defaultColor = "'#333'"
diff --git a/en/option/partial/item-style.md b/en/option/partial/item-style.md
index c9220a3..fe6cba4 100644
--- a/en/option/partial/item-style.md
+++ b/en/option/partial/item-style.md
@@ -11,7 +11,7 @@ Graphic style of ${name}, `emphasis` is the style when it is highlighted, like b
 
 <ExampleUIControlColor />
 
-${name} color. {{ if: ${useColorPalatte} }}Color is taken from [option.color Palette](~color) by default. {{ /if }}{{ if: ${hasInherit} }}Can set to `'inherit'` in the `emphasis` state to disable color highlight.{{ /if }}
+${name} color. {{ if: ${useColorPalatte} }}Color is taken from [option.color Palette](~color) by default. {{ /if }}{{ if: ${hasInherit} }}Since 5.2.0, it can be set to `'inherit'` in the `emphasis` state to disable color highlight.{{ /if }}
 
 {{ use: partial-color-desc() }}
 
diff --git a/zh/option/component/axis-common.md b/zh/option/component/axis-common.md
index 4cd787b..b32bc76 100644
--- a/zh/option/component/axis-common.md
+++ b/zh/option/component/axis-common.md
@@ -125,27 +125,38 @@ X 轴或者 Y 轴的轴线是否在另一个轴的 0 刻度上,只有在另一
 
 刻度标签与轴线之间的距离。
 
-##${prefix} formatter(string|Function) = null
+##${prefix} formatter(string|Function)
 
 {{ use: axis-common-formatter-desc() }}
 
-##${prefix} showMinLabel(boolean) = null
+##${prefix} showMinLabel(boolean)
 
 <ExampleUIControlBoolean />
 
 是否显示最小 tick 的 label。可取值 `true`, `false`, `null`。默认自动判定(即如果标签重叠,不会显示最小 tick 的 label)。
 
-##${prefix} showMaxLabel(boolean) = null
+##${prefix} showMaxLabel(boolean)
 
 <ExampleUIControlBoolean />
 
 是否显示最大 tick 的 label。可取值 `true`, `false`, `null`。默认自动判定(即如果标签重叠,不会显示最大 tick 的 label)。
 
+##${prefix} hideOverlap(boolean)
+
+<ExampleUIControlBoolean />
+
+{{ use: partial-version(
+    version = "5.2.0"
+) }}
+
+是否隐藏重叠的标签。
+
 {{ use: partial-text-style(
     prefix = '#' + ${prefix},
     defaultColor = "'#333'"
 ) }}
 
+
 <!-- Overwrite color -->
 
 ##${prefix} color(Color|Function)
diff --git a/zh/option/partial/item-style.md b/zh/option/partial/item-style.md
index c7d57ff..a490a7b 100644
--- a/zh/option/partial/item-style.md
+++ b/zh/option/partial/item-style.md
@@ -11,7 +11,7 @@ ${name} 图形样式。
 
 <ExampleUIControlColor />
 
-${name}图形的颜色。{{ if: ${useColorPalatte} }} 默认从全局调色盘 [option.color](~color) 获取颜色。{{ /if }}{{ if: ${hasInherit} }}在`emphasis`状态中支持设置为`'inherit'`取消高亮颜色。{{ /if }}
+${name}图形的颜色。{{ if: ${useColorPalatte} }} 默认从全局调色盘 [option.color](~color) 获取颜色。{{ /if }}{{ if: ${hasInherit} }}从 5.2.0 开始支持在`emphasis`状态中支持设置为`'inherit'`取消高亮颜色。{{ /if }}
 
 {{ use: partial-color-desc() }}
 

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