From e8b989706ce4b0e3602b9952540eabb563bd3565 Mon Sep 17 00:00:00 2001 From: Ovilia Date: Sun, 4 Feb 2024 17:10:58 +0800 Subject: [PATCH] doc: add doc for apache/echarts#19228 --- en/option/component/axis-common.md | 48 ++++++++++++++++++++++++++++++ zh/option/component/axis-common.md | 48 ++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) diff --git a/en/option/component/axis-common.md b/en/option/component/axis-common.md index 6faaf9ff..43bd3897 100644 --- a/en/option/component/axis-common.md +++ b/en/option/component/axis-common.md @@ -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) diff --git a/zh/option/component/axis-common.md b/zh/option/component/axis-common.md index 92053155..6e77e9e6 100644 --- a/zh/option/component/axis-common.md +++ b/zh/option/component/axis-common.md @@ -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)