graph edgeSymbol设置为[null,arrow] ,node为长方形时,箭头显示的位置不对。
箭头y应该在node 的边上。
option = {
title: {
text: 'Graph 简单示例'
},
tooltip: {},
animationDurationUpdate: 1500,
animationEasingUpdate: 'quinticInOut',
series : [
{
type: 'graph',
layout: 'none',
symbolSize: 50,
roam: true,
label: {
normal: {
show: true
}
},
edgeSymbol: [null, 'arrow'],
edgeLabel: {
normal: {
textStyle: {
fontSize: 20
}
}
},
data: [{
name: '节点1',
x: 300,
y: 300
}, {
name: '节点2',
x: 800,
y: 300,
symbolSize:[50,200]
}],
// links: [],
links: [{
source: 0,
target: 1,
symbolSize: [5, 20],
label: {
normal: {
show: true
}
}
}]
}
]
};
目前 graphGL 的箭头位置是根据节点的包围圆来定位的,所以非正圆的 symbol 都会有这个问题
这个问题以后不考虑修改了么,好多人遇到这个问题,不用箭头的时候连线是正常的,加了箭头就有 偏差
请问下箭头的颜色跟着线条默认颜色改变的,高亮时箭头颜色可以跟着线条高亮颜色改变嘛
@xiliangzhou6216 我也遇到了这个问题,你解决了吗
@djlxiaoshi 这是个bug吧,也没人修
Most helpful comment
请问下箭头的颜色跟着线条默认颜色改变的,高亮时箭头颜色可以跟着线条高亮颜色改变嘛