Skip to content

Commit d1c2beb

Browse files
committed
doc(marker): add relativeTo
apache/echarts#20166
1 parent cc4f64d commit d1c2beb

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

en/api/echarts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ Registers a theme, should be specified when [initialize the chart instance](~ech
235235

236236
## registerCustomSeries(Function)
237237

238-
> Since `6.0.0`
238+
{{ use: partial-version(version: '6.0.0') }}
239239

240240
Register a custom series. After registration, it can be used as [series-custom.type](option.html#series-custom.type) in [setOption](~api.html#echartsInstance.setOption).
241241

en/option/partial/mark-point.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,12 @@ X position according to container, in pixel.
167167

168168
Y position according to container, in pixel.
169169

170+
###${prefix} relativeTo('container' | 'coordinate')
171+
172+
{{ use: partial-version(version: '6.0.0') }}
173+
174+
Specify whether the positions of [x](~series-${seriesType}.markPoint.data.x) and [y](~series-${seriesType}.markPoint.data.y) are relative to the entire chart container (`'container'`, default) or the grid coordinate system (`'coordinate'`).
175+
170176
###${prefix} value(number)
171177

172178
Label value, which can be ignored.

zh/api/echarts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ echarts.registerMap('USA', usaJson, {
231231

232232
## registerCustomSeries(Function)
233233

234-
>`6.0.0` 开始支持
234+
{{ use: partial-version(version: '6.0.0') }}
235235

236236
```ts
237237
(type: string, renderItem: Function) => void

zh/option/partial/mark-point.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,12 @@ data: [{{ if: ${hasType} }}
167167

168168
相对容器的屏幕 y 坐标,单位像素。
169169

170+
###${prefix} relativeTo('container' | 'coordinate')
171+
172+
{{ use: partial-version(version: '6.0.0') }}
173+
174+
指定 [x](~series-${seriesType}.markPoint.data.x)[y](~series-${seriesType}.markPoint.data.y) 是相对于整个图表容器(`'container'`,默认值)还是直角坐标系(`'coordinate'`)而言的位置。
175+
170176
###${prefix} value(number)
171177

172178
标注值,可以不设。

0 commit comments

Comments
 (0)