Page 1 of 1

Gantt Chart, AddGanttColor and left axis

Posted: Thu Jan 18, 2007 7:26 am
by 6393861
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

Posted: Thu Jan 18, 2007 7:40 am
by Marjan
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.

Posted: Thu Jan 18, 2007 10:12 am
by 6393861
Hello Marjam,

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

bests regards