EVENT: legendselected
action.legend. legendUnSelect
Action
取消选中图例。
dispatchAction({
type: ‘legendUnSelect’,
// 图例名称
name: string
})
EVENT: legendunselected
action.legend. legendToggleSelect
Action
切换图例的选中状态。
dispatchAction({
type: ‘legendToggleSelect’,
// 图例名称
name: string
})
EVENT: legendselectchanged
action.legend. legendScroll
Action
控制图例的滚动。当 legend.type 为 ‘scroll’ 时有效。
dispatchAction({
type: ‘legendScroll’,
scrollDataIndex: number,
legendId: string
})
EVENT: legendscroll
action. tooltip
any
提示框组件相关的行为,必须引入提示框组件后才能使用。
action.tooltip. showTip
Action
显示提示框。
显示提示框。
有下面两种使用方式。
1 指定在相对容器的位置处显示提示框,如果指定的位置无法显示则无效。
dispatchAction({
type: ‘showTip’,
// 屏幕上的 x 坐标
x: number,
// 屏幕上的 y 坐标
y: number
echarts API-离线图表知识点一
![](https://img-home.csdnimg.cn/images/20240711042549.png)