TGantt Series

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Friis
Newbie
Newbie
Posts: 23
Joined: Mon May 07, 2012 12:00 am

TGantt Series

Post by Friis » Mon Sep 10, 2012 7:46 am

Hi,

Is it possible to add text "inside" a Gantt figure similar to the figure I have attached?
Attachments
GanttExample.JPG
GanttExample.JPG (5.88 KiB) Viewed 3657 times

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TGantt Series

Post by Yeray » Mon Sep 10, 2012 8:45 am

Hi,

Yes, you can simply make the marks visible and transparent:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.View3D:=false;

  with Chart1.AddSeries(TGanttSeries) as TGanttSeries do
  begin
    FillSampleValues(5);
    Pointer.Size:=10;

    Marks.Visible:=true;
    Marks.Transparent:=true;
    Marks.Font.Color:=clWhite;
  end;
end;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply