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 e6c8652  fix the return value of convertToPixel and convertFromPixel 
from string to number
     new c710c0a  Merge pull request #220 from tudou330121/master
e6c8652 is described below

commit e6c8652feb3317a18258441af3c45da148ed2cc3
Author: zhongyunya <[email protected]>
AuthorDate: Thu Jan 27 18:03:39 2022 +0800

    fix the return value of convertToPixel and convertFromPixel from string to 
number
---
 zh/api/echarts-instance.md | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/zh/api/echarts-instance.md b/zh/api/echarts-instance.md
index 0e8f269..769886b 100644
--- a/zh/api/echarts-instance.md
+++ b/zh/api/echarts-instance.md
@@ -503,9 +503,9 @@ ECharts 中的事件有两种,一种是鼠标事件,在鼠标点击某个图
         gridName?: string
     },
     // 要被转换的值。
-    value: Array|string
+    value: Array|number
     // 转换的结果为像素坐标值,以 echarts 实例的 dom 节点的左上角为坐标 [0, 0] 点。
-) => Array|string
+) => Array|number
 ```
 
 转换坐标系上的点到像素坐标值。
@@ -580,9 +580,9 @@ chart.convertToPixel({seriesId: 'k2'}, [128.3324, 89.5344]);
         gridName?: string
     },
     // 要被转换的值,为像素坐标值,以 echarts 实例的 dom 节点的左上角为坐标 [0, 0] 点。
-    value: Array|string
+    value: Array|number
     // 转换的结果,为逻辑坐标值。
-) => Array|string
+) => Array|number
 ```
 
 转换像素坐标值到逻辑坐标系上的点。是 [convertToPixel](~echartsInstance.convertToPixel) 的逆运算。

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

Reply via email to