Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Controlling distance between nodes in ForceDirectedLayout

$
0
0

@Tany wrote:

Hi,
I use ForceDirectedLayout to show nodes and links.
I tried to set
defaultElectricCharge:150,
defaultSpringLength:100,
infinityDistance: 10
maxIteration : 500

And the result i got (after setting Diagram.autoScale to go.Diagram.Uniform) is as show in the picture :

How can i shorten the distance between the nods (gray dots)

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles