Gantt Chart, AddGanttColor and left axis

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Ralph
Newbie
Newbie
Posts: 4
Joined: Tue Jan 16, 2007 12:00 am

Gantt Chart, AddGanttColor and left axis

Post by Ralph » Thu Jan 18, 2007 7:26 am

Hello,

I´m having a problem with Gantt chart using "AddGanttColor" function.

When the chart displays, the left axis labels are randomly shown or it only shows the first series label.

How can I do to see all series labels in left axis?

I have been read this answer, but I think that it doesn´t work with the Standard 4.04 version (Delphi 7):
http://teechart.net/reference/modules.p ... rt6.delphi

Could anyone help me with this issue?

Another question, is it compatible the TeeChart Pro v4 VCL with Delphi 7?


Thanks in advance and best regards


P.S. Delphi 7 & TeeChart Standard 4.04 version

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

Post by Marjan » Thu Jan 18, 2007 7:40 am

Hi.

Using TeeChart v4 Standard the only solution (without using custom axis labels) would be to use only one Gannt series. Or alternatively, add another (for example horizontal bar) series to chart and use it only for displaying labels. Something like this:

Code: Select all

  // Series1 = horizontal bar series
  Series1.Add(0,'Label1',clNone);
  Series1.Add(2,'Label2',clNone);
  Series1.Add(1,'Label3',clNone);
  Series1.ShowInLegend := False;

  // Series2, Series3 .. two Gannt series
  Series2.AddGanttColor(1,2,0,'',clRed);
  Series3.AddGanttColor(3,4,2,'',clWhite);
  Series3.AddGanttColor(3,4,1,'',clYellow);
Another question, is it compatible the TeeChart Pro v4 VCL with Delphi 7?
You mean, does TeeChart v4 PRO have Delphi 7 packages ? No, I think it does not include Delphi 7 packages.
Marjan Slatinek,
http://www.steema.com

Ralph
Newbie
Newbie
Posts: 4
Joined: Tue Jan 16, 2007 12:00 am

Post by Ralph » Thu Jan 18, 2007 10:12 am

Hello Marjam,

thanks for your reply, I have solved the problem using only one Gantt series.

bests regards

Post Reply