节点的边好像并没有被突出显示
配置项如下
option = {
title: {
text: 'Graph 简单示例'
},
tooltip: {},
animationDurationUpdate: 1500,
animationEasingUpdate: 'quinticInOut',
series : [
{
type: 'graph',
layout: 'none',
symbolSize: 50,
roam: true,
focusNodeAdjacency: true,
data: [{
name: '节点1',
x: 300,
y: 300
},{
name: '节点3',
x: 550,
y: 100
}],
// links: [],
links: [{
source: '节点1',
target: '节点3'
}],
itemStyle: {
emphasis: {
color: 'blue'
}
},
lineStyle: {
normal: {
opacity: 0.9,
width: 2,
curveness: 0
},
emphasis: {
color: 'blue'
}
}
}
]
};