例如网上这个例子中,如何把“女儿”这个文字添加到连线上,谢谢
links: [
{
source: '节点2',
target: '节点1',
label: {
normal: {
show: true,
formatter:'女儿'
}
},
}
]
linkStyle:{
text:123
}
像这样加上就行了,我前几天也是写了一个,要适用于ie8,没办法用的2.0的
建议使用echarts3,echarts2中的力导向图没有提供在线上显示label的功能。附上echarts3关系图地址:echarts3关系图