1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-12-26 01:18:21 +01:00

add streng force to link

This commit is contained in:
lxsang 2021-02-18 18:07:25 +01:00
parent d416ae36c8
commit af802822e6

View File

@ -63,7 +63,8 @@ $(document).ready(function () {
.force("link",
d3.forceLink(links)
.id(d => d.id)
.distance(d => 2.0 / d.score)
.distance(d => 1.0 / d.score)
.strength(d => d.score)
)
.force("charge", d3.forceManyBody())
.force("center", d3.forceCenter());