Page 1 of 1

DBChart org.Chart nodes overlap and hide node

Posted: Wed Feb 25, 2009 2:37 pm
by 10551568
I have a problem with overlapping nodes in the org.chart TDBChart
TScart Pro VCL 8.04 on Delphi 2006

Using data in the org chart like


Index Text Series2
0 A -1
1 C1 0
2 G2 1
3 F2 1
4 B1 0
5 E2 4
6 D2 4
7 I3 6
8 H3 6

The node F2 will be hidden by E2 that is drawn exactly on top of F2
(hiding E2 via DBChart editor will reveal F2.) Increasing horizontal spacing does not help as
graph is centered on E2 (and F2 wich is hidden)
Also the graph is drawn so it looks like G2 has a connection to B1
due to the overlap.

How can I resolve this problem?

Kind regards
Lars

Posted: Fri Feb 27, 2009 10:06 am
by narcis
Hi Lars,

I've been able to reproduce the issue here and added it (TV52013901) to the defect list to be fixed. There's no workaround I can think of for now.

Posted: Fri Feb 27, 2009 10:23 am
by 10551568
I'm sorry to hear that..

I found one other thing
If the tree is very wide and shallow I have to make the DBChart
very wide but then the margin from the top of the component to
the root node increases as the width increases.

Is there a way to keep the top margin constant while changing the width of the component?

Also is it possible för the DBChart to resize itself to the correct size automatically.
Kind regards
Lars

Posted: Mon Mar 02, 2009 11:29 am
by yeray
Hi Lars,

I'm afraid that this is a new series and needs some improvements. And as you've noticed there is no property to get the series' width and I can't think an easy workaround to determine it.

I've added it to the wish list to be enhanced in further releases (TV52013914).

Posted: Fri Apr 17, 2009 11:48 am
by yeray
Hi Lars,

Also note that with TeeChart installer there is also provided TeeTree, that is a component thought to create more sophisticated designs like this.