Gantt chart - marks above Gantt bar

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
HSTee
Newbie
Newbie
Posts: 2
Joined: Mon Apr 05, 2004 4:00 am
Location: Denmark

Gantt chart - marks above Gantt bar

Post by HSTee » Sun May 16, 2004 12:42 pm

Moving some old Gantt charting code...

From: D6 + TeeChartPro 5.02
To: D7.1 + TeeChartPro 7.0

...it looks like the TSeriesMarks.ArrowLength semantics has changed during the transition to TCP7.0. (or indeed TCP 6.0)

In the old TCP5 chart I set a property value of 22 pixels in order to move the marks *above* the individual Gantt bars!

Under TeeChartPro 7.0 the marks seems to be centered vertically directly on top of the Gantt bars, so if I'm showing a small Gantt bar, it may be completely covered by the mark on top. The ArrowLength property is still there, only it has no apparent effect.

Is there any way to vertically move the marks above the Gantt bars in TCP 7.0?

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Mon May 17, 2004 8:46 am

Hi.

True. For some series types (thos with YMandatory set to False) marks arrow length is not used for offsetting series marks. A workaround to this problem is to set the series YMandatory value to True or alternatively, manually reposition all series marks vertically (add extra pixels to individual series mark position y coordinates).
Marjan Slatinek,
http://www.steema.com

HSTee
Newbie
Newbie
Posts: 2
Joined: Mon Apr 05, 2004 4:00 am
Location: Denmark

Post by HSTee » Mon May 17, 2004 8:51 pm

YMandatory:=TRUE did the trick.

Thanks Marjan!

Post Reply