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

wangzx 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 0cfc08fd fix(legend): remove `legendId`/`legendIndex`/`legendName` 
parameters from `legendSelect`/`legendUnSelect`/`legendToggleSelect` actions 
(resolves apache/echarts#21025)
0cfc08fd is described below

commit 0cfc08fd439cd2de272388512ca79c2a52c31758
Author: plainheart <[email protected]>
AuthorDate: Sun Jun 15 19:56:28 2025 +0800

    fix(legend): remove `legendId`/`legendIndex`/`legendName` parameters from 
`legendSelect`/`legendUnSelect`/`legendToggleSelect` actions (resolves 
apache/echarts#21025)
---
 en/api/action.md | 30 +++---------------------------
 zh/api/action.md | 33 ++++++---------------------------
 2 files changed, 9 insertions(+), 54 deletions(-)

diff --git a/en/api/action.md b/en/api/action.md
index c628667d..158b8e0e 100644
--- a/en/api/action.md
+++ b/en/api/action.md
@@ -138,15 +138,7 @@ Selects legend.
 dispatchAction({
     type: 'legendSelect',
     // legend name
-    name: string,
-
-    // The following parameters are supported since v5.6.0
-    // the id of target legend component
-    legendId: string,
-    // the index of target legend component
-    legendIndex: number,
-    // the name of target legend component
-    legendName: string
+    name: string
 })
 ```
 
@@ -159,15 +151,7 @@ Unselects the legend.
 dispatchAction({
     type: 'legendUnSelect',
     // legend name
-    name: string,
-
-    // The following parameters are supported since v5.6.0
-    // the id of target legend component
-    legendId: string,
-    // the index of target legend component
-    legendIndex: number,
-    // the name of target legend component
-    legendName: string
+    name: string
 })
 ```
 
@@ -179,15 +163,7 @@ Toggles legend selecting state.
 dispatchAction({
     type: 'legendToggleSelect',
     // legend name
-    name: string,
-
-    // The following parameters are supported since v5.6.0
-    // the id of target legend component
-    legendId: string,
-    // the index of target legend component
-    legendIndex: number,
-    // the name of target legend component
-    legendName: string
+    name: string
 })
 ```
 
diff --git a/zh/api/action.md b/zh/api/action.md
index 6bc90072..fcb825e4 100644
--- a/zh/api/action.md
+++ b/zh/api/action.md
@@ -137,15 +137,7 @@ dispatchAction({
 dispatchAction({
     type: 'legendSelect',
     // 图例名称
-    name: string,
-
-    // 下列参数自 v5.6.0 起开始支持
-    // 图例组件ID
-    legendId: string,
-    // 图例组件索引
-    legendIndex: number,
-    // 图例组件名称
-    legendName: string
+    name: string
 })
 ```
 
@@ -158,15 +150,7 @@ dispatchAction({
 dispatchAction({
     type: 'legendUnSelect',
     // 图例名称
-    name: string,
-
-    // 下列参数自 v5.6.0 起开始支持
-    // 图例组件ID
-    legendId: string,
-    // 图例组件索引
-    legendIndex: number,
-    // 图例组件名称
-    legendName: string
+    name: string
 })
 ```
 
@@ -174,19 +158,12 @@ dispatchAction({
 
 ### legendToggleSelect(Action)
 切换图例的选中状态。
+
 ```ts
 dispatchAction({
     type: 'legendToggleSelect',
     // 图例名称
-    name: string,
-
-    // 下列参数自 v5.6.0 起开始支持
-    // 图例组件ID
-    legendId: string,
-    // 图例组件索引
-    legendIndex: number,
-    // 图例组件名称
-    legendName: string
+    name: string
 })
 ```
 
@@ -194,6 +171,7 @@ dispatchAction({
 
 ### legendAllSelect(Action)
 将图例全选。
+
 ```ts
 dispatchAction({
     type: 'legendAllSelect',
@@ -212,6 +190,7 @@ dispatchAction({
 
 ### legendInverseSelect(Action)
 将图例反选。
+
 ```ts
 dispatchAction({
     type: 'legendInverseSelect',


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

Reply via email to