codecamp

ECharts中与图例组件相关的行为(action)

action.legend   |  *

图例组件相关的行为,必须引入图例组件后才能使用。

action.legend.legendSelect   |  Action

选中图例。

dispatchAction({
type: 'legendSelect',
// 图例名称
name: string
})

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

指定与取消ECharts数据图形高亮
显示和隐藏ECharts提示框
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定