阅读(2322) (0)

ECharts关系图设置

2017-08-28 18:24:03 更新

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 事件。