mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-11-20 02:18:20 +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",
|
.force("link",
|
||||||
d3.forceLink(links)
|
d3.forceLink(links)
|
||||||
.id(d => d.id)
|
.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("charge", d3.forceManyBody())
|
||||||
.force("center", d3.forceCenter());
|
.force("center", d3.forceCenter());
|
||||||
|
Loading…
Reference in New Issue
Block a user