Skip to content

Commit

Permalink
add doc for apache/echarts#20129
Browse files Browse the repository at this point in the history
  • Loading branch information
plainheart committed Dec 28, 2024
1 parent 0e7a43d commit fbc7270
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 10 deletions.
35 changes: 30 additions & 5 deletions en/api/action.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,12 @@ Selects legend.
dispatchAction({
type: 'legendSelect',
// legend name
name: string
name: string,

// The following parameters are supported since v5.6.0
legendId: string,
legendIndex: number,
legendName: string
})
```

Expand All @@ -151,7 +156,12 @@ Unselects the legend.
dispatchAction({
type: 'legendUnSelect',
// legend name
name: string
name: string,

// The following parameters are supported since v5.6.0
legendId: string,
legendIndex: number,
legendName: string
})
```

Expand All @@ -163,7 +173,12 @@ Toggles legend selecting state.
dispatchAction({
type: 'legendToggleSelect',
// legend name
name: string
name: string,

// The following parameters are supported since v5.6.0
legendId: string,
legendIndex: number,
legendName: string
})
```

Expand All @@ -174,7 +189,12 @@ Selects all legends.

```ts
dispatchAction({
type: 'legendAllSelect'
type: 'legendAllSelect',

// The following parameters are supported since v5.6.0
legendId: string,
legendIndex: number,
legendName: string
})
```

Expand All @@ -185,7 +205,12 @@ Inverses all legends.

```ts
dispatchAction({
type: 'legendInverseSelect'
type: 'legendInverseSelect',

// The following parameters are supported since v5.6.0
legendId: string,
legendIndex: number,
legendName: string
})
```

Expand Down
50 changes: 45 additions & 5 deletions zh/api/action.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,15 @@ dispatchAction({
dispatchAction({
type: 'legendSelect',
// 图例名称
name: string
name: string,

// 下列参数自 v5.6.0 起开始支持
// 图例组件ID
legendId: string,
// 图例组件索引
legendIndex: number,
// 图例组件名称
legendName: string
})
```

Expand All @@ -150,7 +158,15 @@ dispatchAction({
dispatchAction({
type: 'legendUnSelect',
// 图例名称
name: string
name: string,

// 下列参数自 v5.6.0 起开始支持
// 图例组件ID
legendId: string,
// 图例组件索引
legendIndex: number,
// 图例组件名称
legendName: string
})
```

Expand All @@ -162,7 +178,15 @@ dispatchAction({
dispatchAction({
type: 'legendToggleSelect',
// 图例名称
name: string
name: string,

// 下列参数自 v5.6.0 起开始支持
// 图例组件ID
legendId: string,
// 图例组件索引
legendIndex: number,
// 图例组件名称
legendName: string
})
```

Expand All @@ -172,7 +196,15 @@ dispatchAction({
将图例全选。
```ts
dispatchAction({
type: 'legendAllSelect'
type: 'legendAllSelect',

// 下列参数自 v5.6.0 起开始支持
// 图例组件ID
legendId: string,
// 图例组件索引
legendIndex: number,
// 图例组件名称
legendName: string
})
```

Expand All @@ -182,7 +214,15 @@ dispatchAction({
将图例反选。
```ts
dispatchAction({
type: 'legendInverseSelect'
type: 'legendInverseSelect',

// 下列参数自 v5.6.0 起开始支持
// 图例组件ID
legendId: string,
// 图例组件索引
legendIndex: number,
// 图例组件名称
legendName: string
})
```

Expand Down

0 comments on commit fbc7270

Please sign in to comment.