Skip to content

Commit

Permalink
doc: add doc for apache/echarts#19228
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovilia committed Feb 4, 2024
1 parent cf42fef commit e8b9897
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 0 deletions.
48 changes: 48 additions & 0 deletions en/option/component/axis-common.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,54 @@ Whether to show the label of the min tick. Optional values: `true`, `false`, `nu

Whether to show the label of the max tick. Optional values: `true`, `false`, `null`. It is auto determined by default, that is, if labels are overlapped, the label of the max tick will not be displayed.

{{ if: ${componentType} === 'xAxis' }}

##${prefix} alignMinLabel(string) = null

Alignment of the label of the min tick. If set to be `null`, it's the same with other labels .

Options are:
+ `'left'`
+ `'center'`
+ `'right'`
+ `null` (default)

##${prefix} alignMaxLabel(string) = null

Alignment of the label of the max tick. If set to be `null`, it's the same with other labels. See [align](~${componentType}.axisLabel.align).

Options are:
+ `'left'`
+ `'center'`
+ `'right'`
+ `null` (default)

{{ /if }}

{{ if: ${componentType} === 'yAxis' }}

##${prefix} verticalAlignMinLabel(string) = null

Vertical alignment of the label of the min tick. If set to be `null`, it's the same with other labels. See [verticalAlign](~${componentType}.axisLabel.verticalAlign).

Options are:
+ `'top'`
+ `'middle'`
+ `'bottom'`
+ `null` (default)

##${prefix} verticalAlignMaxLabel(string) = null

Vertical alignment of the label of the max tick. If set to be `null`, it's the same with other labels. See [verticalAlign](~${componentType}.axisLabel.verticalAlign).

Options are:
+ `'top'`
+ `'middle'`
+ `'bottom'`
+ `null` (default)

{{ /if }}

##${prefix} hideOverlap(boolean)

<ExampleUIControlBoolean />
Expand Down
48 changes: 48 additions & 0 deletions zh/option/component/axis-common.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,54 @@ X 轴或者 Y 轴的轴线是否在另一个轴的 0 刻度上,只有在另一

是否显示最大 tick 的 label。可取值 `true`, `false`, `null`。默认自动判定(即如果标签重叠,不会显示最大 tick 的 label)。

{{ if: ${componentType} === 'xAxis' }}

##${prefix} alignMinLabel(string) = null

最小的坐标刻度标签的对齐方式。如果设置为 `null`,则和其他标签一致。参见 [align](~${componentType}.axisLabel.align)

可选:
+ `'left'`
+ `'center'`
+ `'right'`
+ `null` (default)

##${prefix} alignMaxLabel(string) = null

最大的坐标刻度标签的对齐方式。如果设置为 `null`,则和其他标签一致。参见 [align](~${componentType}.axisLabel.align)

可选:
+ `'left'`
+ `'center'`
+ `'right'`
+ `null` (default)

{{ /if }}

{{ if: ${componentType} === 'yAxis' }}

##${prefix} verticalAlignMinLabel(string) = null

最小的坐标刻度标签的对齐方式。如果设置为 `null`,则和其他标签一致。参见 [align](~${componentType}.axisLabel.verticalAlign)

可选:
+ `'top'`
+ `'middle'`
+ `'bottom'`
+ `null` (default)

##${prefix} verticalAlignMaxLabel(string) = null

最大的坐标刻度标签的对齐方式。如果设置为 `null`,则和其他标签一致。参见 [align](~${componentType}.axisLabel.verticalAlign)

可选:
+ `'top'`
+ `'middle'`
+ `'bottom'`
+ `null` (default)

{{ /if }}

##${prefix} hideOverlap(boolean)

<ExampleUIControlBoolean />
Expand Down

0 comments on commit e8b9897

Please sign in to comment.