ECharts关系图设置

2018-09-25 13:45 更新

action.graph   |  *


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

action.graph.focusNodeAdjacency   |  Action


将指定的节点以及其所有邻接节点高亮。

dispatchAction({
type: 'focusNodeAdjacency',
// 使用 seriesId 或 seriesIndex 或 seriesName 来定位 series.
seriesId: 'xxx',
seriesIndex: 0,
seriesName: 'nnn',
// 使用 dataIndex 来定位节点。
dataIndex: 12
})

最后会抛出 focusNodeAdjacency 事件。

action.graph.unfocusNodeAdjacency   |  Action


取消指定的节点以及其所有邻接节点高亮。

dispatchAction({
type: 'unfocusNodeAdjacency',
// 使用 seriesId 或 seriesIndex 或 seriesName 来定位 series.
seriesId: 'xxx',
seriesIndex: 0,
seriesName: 'nnn'
})

最后会抛出 unfocusNodeAdjacency 事件。


以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号