problems with TGanttSeries and LeftAxis Labels
Posted: Tue Dec 04, 2012 10:08 am
Hi,
When making the code below, The marks seems to interfere with the LeftAxis Labels. I have attached a figure illustraing the problem. How can I avoid that??
When making the code below, The marks seems to interfere with the LeftAxis Labels. I have attached a figure illustraing the problem. How can I avoid that??
Code: Select all
procedure TForm10.FormShow(Sender: TObject);
var
I: Integer;
begin
Chart1.View3D := false;
with Chart1.AddSeries(TGanttSeries.Create(self)) as TGanttSeries do
begin
ParentChart := Chart1;
ShowInLegend := true;
XValues.Order:=loNone;
ShowInLegend := false;
Marks.visible := true;
Marks.Transparent := true;
Xvalues.DateTime := true;
end;
for I := 0 to 9 do
with Chart1[Chart1.SeriesCount -1] as TGanttSeries do
begin
Pointer.VertSize:=10;
AddGanttcolor(now-5-i,now-5+i,i div 2,'',clred);
end;
chart1.BottomAxis.SetMinMax(now-5,now+10);
end;