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

Toggling between standard tree and a radial tree

$
0
0

@EvilProfesseur wrote:

Hi, I'm trying to give the user the ability to switch between different kinds of views. The diagram shows a tree structure, but I want it to organize itself radially if the user so desires. I adapted the code from this example but while the nodes rearrange themselves, they immediately return to the standard tree view (with some changes, like rotated labels). How can I stop this from happening?

My guess is that TreeLayout forces automatic redraw to place everything according to its specs, so I thought that maybe I have to change the layout (like I'm already doing, when switching between Tree and Grid), but the example given above has no layout initialized.

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6965

Trending Articles