You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/04/01 01:51:38 UTC

[GitHub] [echarts] yangmin4052 commented on issue #6811: 关系图graph支持两个data节点之间多条link,每个link代表一种关系,并可以筛选?

yangmin4052 commented on issue #6811:
URL: https://github.com/apache/echarts/issues/6811#issuecomment-811579547


   
   graphProto.addEdge = function (n1, n2, dataIndex) {
   ...
       // var key = n1.id + '-' + n2.id; 
       var key = n1.id + '-' + n2.id + dataIndex;
   ...
   }
   先把这里改了,在配合curveness实现不就好了
   比如
   link={
     ...
     lineStyle:{
       curveness: 0.2 * i/(length - 1) - 0.1
     }
     ...
   }


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org