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 2020/02/25 06:12:56 UTC

[incubator-echarts-doc] 01/03: add doc for apache/incubator-echarts#11843

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

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

commit 7760524065033036f928b6a3e850daea959bfaaf
Author: Ovilia <zw...@gmail.com>
AuthorDate: Mon Feb 24 16:56:39 2020 +0800

    add doc for apache/incubator-echarts#11843
---
 en/option/partial/mark-line.md | 21 ++++++++++++++++++++-
 zh/option/partial/mark-line.md | 15 ++++++++++++++-
 2 files changed, 34 insertions(+), 2 deletions(-)

diff --git a/en/option/partial/mark-line.md b/en/option/partial/mark-line.md
index 4ded112..1a8947d 100644
--- a/en/option/partial/mark-line.md
+++ b/en/option/partial/mark-line.md
@@ -138,6 +138,18 @@ Positions of labels can be:
 + `'start'` starting point of the line.
 + `'middle'` middle point of the line.
 + `'end'` ending point of the line.
+
+Since version 4.7.0, more label positions are supported: `'start'`, `'middle'`, `'end'`, `'insideStartTop'`, `'insideStartBottom'`, `'insideMiddleTop'`, `'insideMiddleBottom'`, `'insideEndTop'`, `'insideEndBottom'`.
+
+`'insideMiddleBottom'` is the same as `'middle'`. Position is as the following chart.
+
+The distance between labels and mark lines can be set with [label.distance](~series-${seriesType}.markLine.label.distance).
+
+~[800x500](${galleryViewPath}bar-markline&reset=1&edit=1)
+
+#${prefix} distance(number|Array)
+The distance between labels and mark lines. If it's an array, then the first element is the horizontal distance, and the second element is the vertical distance. If it's a number, then the horizontal and vertical disntances are the same.
+
 #${prefix} formatter(string|Function)
 {{ use: partial-1d-data-label-formatter }}
 
@@ -201,7 +213,14 @@ Label of this data item, which will be merged with `label` of starting point and
 {{ use: mark-line-label(
     prefix='#'+${prefix}
 ) }}
-##${prefix} emphasis(Object)
+
+#${prefix} emphasis(Object)
+##${prefix} lineStyle(Object)
+{{ use: partial-line-style(
+    prefix="##"+${prefix},
+    hasCurveness=true
+) }}
+##${prefix} label(Object)
 {{ use: mark-line-label(
     prefix='##'+${prefix}
 ) }}
diff --git a/zh/option/partial/mark-line.md b/zh/option/partial/mark-line.md
index f72e02e..cbabdb6 100644
--- a/zh/option/partial/mark-line.md
+++ b/zh/option/partial/mark-line.md
@@ -137,11 +137,24 @@ data: [
 {{ target: mark-line-label }}
 #${prefix} show(boolean) = ${defaultShowLabel|default(true)}
 是否显示标签。
+
 #${prefix} position(string) = 'end'
 标签位置,可选:
 + `'start'` 线的起始点。
 + `'middle'` 线的中点。
-+ `'end'`   线的结束点。
++ `'end'` 线的结束点。
+
+4.7.0 版本起,支持更多标签位置:`'start'`, `'middle'`, `'end'`, `'insideStartTop'`, `'insideStartBottom'`, `'insideMiddleTop'`, `'insideMiddleBottom'`, `'insideEndTop'`, `'insideEndBottom'`。
+
+其中,`'insideMiddleBottom'` 等同于 `'middle'`。具体位置参见下图。
+
+文字与线的间距可以通过 [label.distance](~series-${seriesType}.markLine.label.distance) 调整。
+
+~[800x500](${galleryViewPath}bar-markline&reset=1&edit=1)
+
+#${prefix} distance(number|Array)
+标签与线之间的间距。如果是数组,第一项为横向间距,第二项为纵向间距。如果是数字,则表示横向纵向使用相同的间距。
+
 #${prefix} formatter(string|Function)
 {{ use: partial-1d-data-label-formatter }}
 


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