Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Auto layout of organisational tree looks odd (Read 3598 times)
jokedst
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Nov 13th, 2006
Auto layout of organisational tree looks odd
Nov 13th, 2006 at 1:48pm
Print Post  
I have an organizational hierarchy, a strict tree that I am trying to get to look good, using WebChart. The problem is that when I let the engine lay out the nodes it just makes a mess of it all...

It's about 100 nodes, all having a parent, and it's usually not a very deep, just 3-4 levels. The graph looks all garbled (I'd post a image if this forum allowed it) with lines running across it everywhere.

Is there any setting so I can tell it it's a tree? And can I get the arrows to go in straight lines instead of crossing the screen diagonally? I'll try to illustrate: Wink

node
|
+----+----+
|    |    |
node node node


Something like that would be great! I've looked but not found anything Sad
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Auto layout of organisational tree looks odd
Reply #1 - Nov 13th, 2006 at 1:58pm
Print Post  
Hi,

What TreeLayout settings do you use? Type=Bordered and ArrowStyle=Cascading3 should arrange the tree as shown in your ASCII art Wink

Stoyan
  
Back to top
 
IP Logged
 
jokedst
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Nov 13th, 2006
Re: Auto layout of organisational tree looks odd
Reply #2 - Nov 13th, 2006 at 3:23pm
Print Post  
Wow! Thanks! Smiley Exactly what I needed!
It's still a bit while though (~20 screens), but that'll just have to do...

Unless there is some other nice feature to make it push some subtrees down a bit?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Auto layout of organisational tree looks odd
Reply #3 - Nov 13th, 2006 at 5:22pm
Print Post  
You might use a combination of several different tree layout types.

E.g. arrange all subtrees from level 3 with the same settings as in the DirTree sample project, possibly using a negative LevelDistance - that will make the boxes' X coordinates to overlap a bit. Then call child.AttachTo(subtreeRoot) for all child items in all the subtrees, and finally run the original TreeLayout using the KeepGroupLayout setting.

That would make the lower levels of the tree occupy less space horizontally, but more space vertically.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint