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:
parent
d416ae36c8
commit
af802822e6
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user