Date repeat

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
alexiat
Newbie
Newbie
Posts: 10
Joined: Fri Nov 15, 2002 12:00 am

Date repeat

Post by alexiat » Wed May 07, 2008 2:27 pm

Delphi 2007, VCL.

I dropped a chart on a form and added a line series. In my code I have:

series1.xvalues.datetime := true;
chart1.bottomaxis.datetimeformat := 'm/d h:mm';
series1.addxy(EncodeDate(2008,4,23),27);
series1.addxy(EncodeDate(2008,4,30),30);
series1.addxy(EncodeDate(2008,5,1),24);

If I do this all works well. However, if I change the datetimeformat to 'm/d' then each day repeats twice; i.e. 4/23 - 4/23 - 4/24 - 4/25 etc.

Can someone please tell me what I need to set to make this not happen.

Thanks.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed May 07, 2008 2:35 pm

Hi alexiat,

You need to set bottom axis Increment to one day. For more information on how to do that please reat Tutorial 4 - Axis Control. Tutorials can be found at TeeChart's program group.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

alexiat
Newbie
Newbie
Posts: 10
Joined: Fri Nov 15, 2002 12:00 am

Post by alexiat » Thu May 08, 2008 3:01 pm

Thank you. I guess I missed that in the tutorial. I knew it had to be something easy!

Post Reply