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

ForceDirectedLayout doesn't seem to do the job as intended

$
0
0

@MementoMori78 wrote:

Hello to everyone.
I’ve started to learn your library several days ago to discover if it’s able to meet my project needs.
Everything was great - Nodes&Links formatting, layouts, high flexibility. Detailed API documentation helped me a lot. But after I’ve tried to load to my diagram a bigger amount of data (~5000 rows representing links between entities) diagram didn’t appear to look not as I’ve intended:
1. Layout looks messy overall
2. More than a half of the links aren’t connected. Which is incorrect due to the data model.
I’ve already tried to tweak maxIterations property value.
maxIterations: 1000


maxIterations: 1500

So, what is the question:
How do i make the diagram look more like https://gojs.net/latest/samples/incrementalTree.html , but in bigger scale with no separate nodes?

let diagram = (go.Diagram, me.domNode.id, { initialContentAlignment: go.Spot.Center, layout: (go.ForceDirectedLayout, {maxIterations: 1500})
});

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles