You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by ov...@apache.org on 2021/02/22 04:37:26 UTC

[echarts-doc] 01/01: doc: update markLine.data.xAxis and yAxis

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

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

commit 2413c9e3ff4e77e32b5f05547ce9343fa835ae4d
Author: Ovilia <zw...@gmail.com>
AuthorDate: Mon Feb 22 12:36:45 2021 +0800

    doc: update markLine.data.xAxis and yAxis
    
    Relates apache/echarts#14314 apache/echarts#14300
---
 zh/option/partial/mark-line.md | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/zh/option/partial/mark-line.md b/zh/option/partial/mark-line.md
index 58ef467..a6cfb74 100644
--- a/zh/option/partial/mark-line.md
+++ b/zh/option/partial/mark-line.md
@@ -269,6 +269,46 @@ data: [
 
 相对容器的屏幕 y 坐标,单位像素。
 
+#${prefix} xAxis(number|string)
+
+x 值为给定值的标记线,仅对数据值是一项的设置有效。例如:
+
+```
+data: [{
+    name: 'X 轴值为 100 的竖直线',
+    xAxis: 100
+}]
+```
+
+或对于 `'time'` 类型的 xAxis,可以设置为:
+
+```
+{
+    name: 'X 轴值为 "2020-01-01" 的竖直线',
+    xAxis: '2020-01-01'
+}]
+```
+
+#${prefix} yAxis(number|string)
+
+Y 值为给定值的标记线,仅对数据值是一项的设置有效。例如:
+
+```
+data: [{
+    name: 'Y 轴值为 100 的水平线',
+    yAxis: 100
+}]
+```
+
+或对于 `'time'` 类型的 yAxis,可以设置为:
+
+```
+{
+    name: 'Y 轴值为 "2020-01-01" 的水平线',
+    yAxis: '2020-01-01'
+}]
+```
+
 #${prefix} value(number)
 
 标注值,可以不设。


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