Specific Bottom Axes

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
PatVdv
Newbie
Newbie
Posts: 3
Joined: Tue Jan 11, 2005 5:00 am
Location: Belgium

Specific Bottom Axes

Post by PatVdv » Tue Jan 11, 2005 5:04 pm

Hi all,

Is there a way to have a bottom axe like YearMonth

ie : 200401 to 200512

It seems that between 200412 and 200501 I have also 200413,...200499
instead of 200412, 200501

Thanks a lot

:?

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

Post by Marjan » Wed Jan 12, 2005 9:13 am

Hi.

Try setting your series XValues.DateTime property to True. The following code works fine here:

Code: Select all

  // Add some data (with *true* x-datetime values)
  Series1.AddXY(EncodeDate(2004,11,1),10);
  Series1.AddXY(EncodeDate(2004,12,15),3);
  Series1.AddXY(EncodeDate(2004,12,31),7);
  Series1.AddXY(EncodeDate(2005,1,2),5);
  Series1.AddXY(EncodeDate(2005,2,3),1);

  Series1.XValues.DateTime := True;
  Series1.GetHorizAxis.DateTimeFormat := 'YYYYMM';
  Series1.GetHorizAxis.Increment := DateTimeStep[dtOneMonth];
Marjan Slatinek,
http://www.steema.com

PatVdv
Newbie
Newbie
Posts: 3
Joined: Tue Jan 11, 2005 5:00 am
Location: Belgium

Post by PatVdv » Wed Jan 12, 2005 1:43 pm

Thanks a lot Marjan, I will try

Patrick

PatVdv
Newbie
Newbie
Posts: 3
Joined: Tue Jan 11, 2005 5:00 am
Location: Belgium

Post by PatVdv » Wed Jan 12, 2005 3:20 pm

Work as I would like.

Thanks again for your support

Patrick :D

Post Reply