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

Assigning nodes to layers and columns in LayeredDigraphLayout

$
0
0

@leilanim wrote:

Hi there,

I'm currently evaluating GoJS to see if it fits our company's needs. We can potentially have hundreds of nodes linking to 1 - 3 nodes, and those 1 - 3 nodes could also link out to another large set of nodes.

I'm wondering if it's possible to customize LayeredDigraphLayout to not have those hundreds of nodes stack into one single column, and instead to be more spread out amongst layers/columns, similar to GridLayout, but perhaps a bit more staggered to allow for complicated link routing.

Graph using LayeredDigraphLayout:

TreeLayout's breadth limit option is pretty much what I'm looking for, but since nodes can have multiple parents and multiple children, some of which are shared amongst each other, I cannot use TreeLayout.

I've tried overriding assignLayers(), but it seems to only override the layer properties, and not the columns, which results in a layout that looks like a really tall staircase.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles