This is an automated email from the ASF dual-hosted git repository.

ovilia pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-doc.git


The following commit(s) were added to refs/heads/master by this push:
     new 25450d74 doc: add missing doc for legend.lineStyle.inactiveWidth and 
inactiveColor apache/echarts#19412
25450d74 is described below

commit 25450d7487e1a404d181ceaadb0df58abf94cb29
Author: Ovilia <[email protected]>
AuthorDate: Thu Dec 21 18:28:26 2023 +0800

    doc: add missing doc for legend.lineStyle.inactiveWidth and inactiveColor 
apache/echarts#19412
---
 en/option/component/legend.md | 31 ++++++++++++++++++++++++-------
 zh/option/component/legend.md | 32 +++++++++++++++++++++++++-------
 2 files changed, 49 insertions(+), 14 deletions(-)

diff --git a/en/option/component/legend.md b/en/option/component/legend.md
index 52f391c3..112a8cfd 100644
--- a/en/option/component/legend.md
+++ b/en/option/component/legend.md
@@ -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.
 
@@ -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.
@@ -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 = '#',
@@ -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.
diff --git a/zh/option/component/legend.md b/zh/option/component/legend.md
index 53d89667..f936f40f 100644
--- a/zh/option/component/legend.md
+++ b/zh/option/component/legend.md
@@ -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'` 
则表示:始终取系列的描边粗细。
 
@@ -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 = '#',
@@ -610,3 +620,11 @@ ${name}图形中线的样式,用于诸如折线图图例横线的样式设置
     defaultShadowOffsetY = 0
 ) }}
 
+##${prefix} inactiveColor(Color) = '#ccc'
+
+图例关闭时的线条描边颜色。
+
+##${prefix} inactiveWidth(number) = 2
+
+图例关闭时的线条宽度。
+


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to