TGantt Problem
Posted: Fri Nov 09, 2012 3:00 pm
Hi,
When using the code below, the legend does not indicate the red color - Is this a bug or am I doing something wrong...??
When using the code below, the legend does not indicate the red color - Is this a bug or am I doing something wrong...??
Code: Select all
begin
Chart1.Legend.Visible := true;
Chart1.Legend.Alignment := laBottom;
Chart1.Legend.LegendStyle := lsSeries;
with Chart1.AddSeries(TGanttSeries.Create(self)) as TGanttSeries do
begin
ParentChart := Chart1;
Title := 'ItemNumber 040170';
ShowInLegend := true;
//ColorEachPoint := false;
with Chart1[Chart1.SeriesCount-1] as TGanttSeries do
begin
Pointer.VertSize:=10;
AddGanttcolor(now,now+1,-1,'',clred);
end;
end;
end;