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

Node without parents in TreeLayout

$
0
0

@cardis1 wrote:

Hi,

I'm using the TreeLayout and in my diagram, some nodes does not have any parent.
Currently, these nodes are at the first level, but I'd like to put them at the last level (like the LayeredDigraphLayout diagram).

Is it possible to have this behavior with the TreeLayout?

Now, I have this:

But I would like to have this:

Here my declaration:

$(go.TreeLayout, {
    angle: 90,
    alignment: go.TreeLayout.AlignmentCenterChildren,
    arrangement: go.TreeLayout.ArrangementHorizontal,
    layerSpacing: 200,
    nodeSpacing: 50,
    isRealtime: false,
    isOngoing: false,
    isInitial: true,
    layerStyle: go.TreeLayout.LayerUniform,
    treeStyle: go.TreeLayout.StyleLayered,
    compaction: go.TreeLayout.CompactionNone

});

Thank you

Posts: 7

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles