Skip to content

Commit

Permalink
doc: update markLine.data.xAxis and yAxis
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovilia committed Feb 22, 2021
1 parent 9254c9d commit 2413c9e
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions zh/option/partial/mark-line.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

标注值,可以不设。
Expand Down

0 comments on commit 2413c9e

Please sign in to comment.