zl2fxy commented on issue #6811:
URL: https://github.com/apache/echarts/issues/6811#issuecomment-2580117306
> graphProto.addEdge = function (n1, n2, dataIndex) { ... var 键 = n1.id +
'-' + n2.id; var 键 = n1.id + '-' + n2.id + '-' + dataIndex; ... }
先把源码的这里改了,再在自己实现的时候将curveness实现不就好了 比如 link={ ... lineStyle:{ curveness: 0.2 *
i/(length - 1) - 0.1 } ... }
不过对source和target有点要求,不能既有source->target,也有target->source,否则curveness需要用另外的计算方式
随机连线不好看,我写了个算法
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]