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 2021/04/30 19:22:07 UTC

[echarts-doc] 06/10: doc: add tooltip to geo and geo.regions.

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/echarts-doc.git

commit b128e5176e8c4f62951c576fa5f7084d06a4db4b
Author: 100pah <su...@gmail.com>
AuthorDate: Tue Apr 27 16:06:59 2021 +0800

    doc: add tooltip to geo and geo.regions.
---
 en/option/component/geo.md          | 12 ++++++++++++
 en/option/partial/tooltip-common.md | 32 +++++++++++++++++++++++++++++---
 zh/option/component/geo.md          | 11 +++++++++++
 zh/option/partial/tooltip-common.md | 33 ++++++++++++++++++++++++++++++---
 4 files changed, 82 insertions(+), 6 deletions(-)

diff --git a/en/option/component/geo.md b/en/option/component/geo.md
index 4ded4a2..af1bc19 100644
--- a/en/option/component/geo.md
+++ b/en/option/component/geo.md
@@ -96,10 +96,22 @@ Style of selected region.
 
 {{ use: geo-region-state() }}
 
+{{ use: partial-tooltip-in-coords-item(
+    componentItemDesc: 'region',
+    noAxis: true
+) }}
+
+
+
+
 {{ use: partial-silent(
     prefix = "#"
 ) }}
 
+{{ use: partial-tooltip-in-coords(
+    noAxis = true
+) }}
+
 
 
 {{ target: geo-region-state }}
diff --git a/en/option/partial/tooltip-common.md b/en/option/partial/tooltip-common.md
index 0187f89..cbcd0c5 100644
--- a/en/option/partial/tooltip-common.md
+++ b/en/option/partial/tooltip-common.md
@@ -29,7 +29,8 @@ tooltip settings in the coordinate system component.
 {{ use: partial-tooltip-introduction() }}
 
 {{ use: partial-tooltip-coords-common(
-    prefix = '##'
+    prefix = '##',
+    noAxis = ${noAxis}
 ) }}
 
 {{ use: partial-tooltip-common(
@@ -39,6 +40,24 @@ tooltip settings in the coordinate system component.
 
 
 
+{{ target: partial-tooltip-in-component-item }}
+
+### tooltip(*)
+
+tooltip settings in this ${componentItemDesc}.
+
+{{ use: partial-tooltip-coords-common(
+    prefix = '###',
+    noAxis = ${noAxis}
+) }}
+
+{{ use: partial-tooltip-common(
+    scope = 'coordSysItem',
+    prefix = '###'
+) }}
+
+
+
 {{ target: partial-tooltip-in-series }}
 
 ## tooltip(*)
@@ -51,7 +70,6 @@ tooltip settings in this series.
 ) }}
 
 
-
 {{ target: partial-tooltip-in-series-data }}
 
 ### tooltip(*)
@@ -83,8 +101,14 @@ tooltip settings in this series data.
 
 <ExampleUIControlBoolean default="true" />
 
-Whether to show the tooltip component, including tooltip floating layer and [axisPointer](~tooltip.axisPointer).
+Whether to show the tooltip component.
 
+{{ if: !${noAxis} }}
+including tooltip floating layer and [axisPointer](~tooltip.axisPointer).
+{{ /if }}
+
+
+{{ if: !${noAxis} }}
 #${prefix} trigger(string) = 'item'
 
 <ExampleUIControlEnum options="item,axis,none" default="item" />
@@ -106,6 +130,7 @@ Options:
 
     Trigger nothing.
 
+
 #${prefix} axisPointer(Object)
 
 Configuration item for axisPointer.
@@ -158,6 +183,7 @@ It is valid when [axisPointer.type](~tooltip.axisPointer.type) is `'cross'`.
     defaultAnimationDurationUpdate = 200
 ) }}
 
+{{ /if }}
 
 
 {{ target: partial-tooltip-common }}
diff --git a/zh/option/component/geo.md b/zh/option/component/geo.md
index 211dd61..9593a5b 100644
--- a/zh/option/component/geo.md
+++ b/zh/option/component/geo.md
@@ -94,10 +94,21 @@ geo 区域的颜色也可以被 map series 所控制,参见 [series-map.geoInd
 
 {{ use: geo-region-state() }}
 
+{{ use: partial-tooltip-in-coords-item(
+    componentItemDesc: 'region',
+    noAxis: true
+) }}
+
+
+
+
 {{ use: partial-silent(
     prefix = "#"
 ) }}
 
+{{ use: partial-tooltip-in-coords(
+    noAxis = true
+) }}
 
 
 {{ target: geo-region-state }}
diff --git a/zh/option/partial/tooltip-common.md b/zh/option/partial/tooltip-common.md
index bedd5d6..011f63d 100644
--- a/zh/option/partial/tooltip-common.md
+++ b/zh/option/partial/tooltip-common.md
@@ -29,7 +29,8 @@
 {{ use: partial-tooltip-introduction() }}
 
 {{ use: partial-tooltip-coords-common(
-    prefix = '##'
+    prefix = '##',
+    noAxis = ${noAxis}
 ) }}
 
 {{ use: partial-tooltip-common(
@@ -39,6 +40,24 @@
 
 
 
+{{ target: partial-tooltip-in-coords-item }}
+
+### tooltip(*)
+
+本 ${componentItemDesc} 中特定的 tooltip 设定。
+
+{{ use: partial-tooltip-coords-common(
+    prefix = '###',
+    noAxis = ${noAxis}
+) }}
+
+{{ use: partial-tooltip-common(
+    scope = 'coordSysItem',
+    prefix = '###'
+) }}
+
+
+
 {{ target: partial-tooltip-in-series }}
 
 ## tooltip(Object)
@@ -51,7 +70,6 @@
 ) }}
 
 
-
 {{ target: partial-tooltip-in-series-data }}
 
 ### tooltip(*)
@@ -65,6 +83,7 @@
 
 
 
+
 {{ target: partial-tooltip-scope-tip }}
 
 {{ if: ${scope} === 'series' }}
@@ -83,8 +102,13 @@
 
 <ExampleUIControlBoolean default="true" />
 
-是否显示提示框组件,包括提示框浮层和 [axisPointer](~tooltip.axisPointer)。
+是否显示提示框组件。
 
+{{ if: !${noAxis} }}
+包括提示框浮层和 [axisPointer](~tooltip.axisPointer)。
+{{ /if }}
+
+{{ if: !${noAxis} }}
 #${prefix} trigger(string) = 'item'
 
 <ExampleUIControlEnum options="item,axis,none" default="item" />
@@ -106,6 +130,8 @@
 
     什么都不触发。
 
+
+
 #${prefix} axisPointer(Object)
 
 坐标轴指示器配置项。
@@ -162,6 +188,7 @@
     defaultAnimationDurationUpdate = 200
 ) }}
 
+{{ /if }}
 
 
 {{ target: partial-tooltip-common }}

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