Page 1 of 1

Specific Bottom Axes

Posted: Tue Jan 11, 2005 5:04 pm
by 9340544
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

:?

Posted: Wed Jan 12, 2005 9:13 am
by Marjan
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];

Posted: Wed Jan 12, 2005 1:43 pm
by 9340544
Thanks a lot Marjan, I will try

Patrick

Posted: Wed Jan 12, 2005 3:20 pm
by 9340544
Work as I would like.

Thanks again for your support

Patrick :D