Skip to content

Commit

Permalink
doc: add missing doc for legend.lineStyle.inactiveWidth and inactiveC…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovilia committed Dec 21, 2023
1 parent 93da3b4 commit 25450d7
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 14 deletions.
31 changes: 24 additions & 7 deletions en/option/component/legend.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,19 +129,13 @@ Besides, it can be set to `'single'` or `'multiple'`, for single selection and m

## inactiveColor(Color) = '#ccc'

<ExampleUIControlColor default="#ccc" />

Legend color when not selected.

## inactiveBorderColor(Color) = '#ccc'

<ExampleUIControlColor default="#ccc" />

Legend border color when not selected.

## inactiveBorderWidth(Color) = 'auto'

<ExampleUIControlColor default="#ccc" />
## inactiveBorderWidth(number|'auto'|'inherit') = 'auto'

Legend border width when not selected. If it is `'auto'`, the border width is set to be 2 if there is border width in the series, 0 elsewise. If it is `'inherit'`, it always takes the border width of the series.

Expand Down Expand Up @@ -219,6 +213,18 @@ Icon of the legend.
prefix = "##"
) }}

### inactiveColor(Color) = '#ccc'

Legend color when not selected.

### inactiveBorderColor(Color) = '#ccc'

Legend border color when not selected.

### inactiveBorderWidth(number|'auto'|'inherit') = 'auto'

Legend border width when not selected. If it is `'auto'`, the border width is set to be 2 if there is border width in the series, 0 elsewise. If it is `'inherit'`, it always takes the border width of the series.

### symbolRotate(number|string) = 'inherit'

Rotation of the symbol, which can be `number | 'inherit'`. If it's `'inherit'`, `symbolRotate` of the series will be used.
Expand All @@ -227,6 +233,10 @@ Rotation of the symbol, which can be `number | 'inherit'`. If it's `'inherit'`,

Text style of legend.

{{ use: partial-simple-text-style(
prefix: '###'
) }}

{{ use: partial-component-common-style(
componentName = 'legend',
prefix = '#',
Expand Down Expand Up @@ -515,3 +525,10 @@ ${name} line style. If its children have values as `'inherit'`, the values are i
defaultShadowOffsetY = 0
) }}

##${prefix} inactiveColor(Color) = '#ccc'

Legend line stroke color when not selected.

##${prefix} inactiveWidth(number) = 2

Legend line stroke width when not selected.
32 changes: 25 additions & 7 deletions zh/option/component/legend.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,19 +212,13 @@ formatter: function (name) {

## inactiveColor(Color) = '#ccc'

<ExampleUIControlColor default="#ccc" />

图例关闭时的颜色。

## inactiveBorderColor(Color) = '#ccc'

<ExampleUIControlColor default="#ccc" />

图例关闭时的描边颜色。

## inactiveBorderWidth(Color) = 'auto'

<ExampleUIControlColor default="#ccc" />
## inactiveBorderWidth(number|'auto'|'inherit') = 'auto'

图例关闭时的描边粗细。如果为 `'auto'` 表示:如果系列存在描边,则取 2,如果系列不存在描边,则取 0。如果为 `'inherit'` 则表示:始终取系列的描边粗细。

Expand Down Expand Up @@ -317,10 +311,26 @@ data: [{

图形旋转角度,类型为 `number | 'inherit'`。如果为 `'inherit'`,表示取系列的 `symbolRotate`

### inactiveColor(Color) = '#ccc'

图例关闭时的颜色。

### inactiveBorderColor(Color) = '#ccc'

图例关闭时的描边颜色。

### inactiveBorderWidth(number|'auto'|'inherit') = 'auto'

图例关闭时的描边粗细。如果为 `'auto'` 表示:如果系列存在描边,则取 2,如果系列不存在描边,则取 0。如果为 `'inherit'` 则表示:始终取系列的描边粗细。

### textStyle(Object)

图例项的文本样式。

{{ use: partial-simple-text-style(
prefix: '###'
) }}

{{ use: partial-component-common-style(
componentName = '图例',
prefix = '#',
Expand Down Expand Up @@ -610,3 +620,11 @@ ${name}图形中线的样式,用于诸如折线图图例横线的样式设置
defaultShadowOffsetY = 0
) }}

##${prefix} inactiveColor(Color) = '#ccc'

图例关闭时的线条描边颜色。

##${prefix} inactiveWidth(number) = 2

图例关闭时的线条宽度。

0 comments on commit 25450d7

Please sign in to comment.