HowToMeetYou commented on issue #9757: 我猜你只是在setOption中加了curveness: 
Math.random()
URL: 
https://github.com/apache/incubator-echarts/issues/9757#issuecomment-454298614
 
 
   links就是setOption中的links,表示指向关系
   arr存放所有节点,arr数组其中一个数据
   如:arr[2] = {end: (...),endName: (...),obj: (...),rObjDetails: (...),start: 
(...),startName: (...)}
   links.push({
               'source': arr[i].start,
               'target': arr[i].end,
               'sourceName': arr[i].startName,
               'targetName': arr[i].endName,
               'id': arr[i].obj.id,
               'lineStyle': {
                 curveness: Math.random() * 1 + 0.5
               },
             })
   判断指向关系时要用id(表示唯一),因为source和target会有重名的情况

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to