Problem with datetime-axis, days have just 12 hrs ?!

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
helmut ess
Newbie
Newbie
Posts: 7
Joined: Mon Nov 06, 2006 12:00 am
Contact:

Problem with datetime-axis, days have just 12 hrs ?!

Post by helmut ess » Thu Jan 11, 2007 3:28 pm

Hi there,

using tChart for .Net for a winCe Pocket-framework application I use the bottom-axis as a datetime-axis when I zoom in the series an the timesteps turn from days to hours the pm - times are displayed as 06:00 and 12:00. (not as expected 18:00 and 00:00 )
What's my mistake?
I did it like this:

...
aXAxis.Increment = Utils.DateTimeStep[(int)DateTimeSteps(TwoHours)];
aXAxis.Labels.DateTimeFormat = "hh:mm";
...

Thanks for help.

Helmut

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

Post by Narcís » Thu Jan 11, 2007 5:50 pm

Hi Helmut,

Instead of:

Code: Select all

aXAxis.Labels.DateTimeFormat = "hh:mm"; 
Try using:

Code: Select all

aXAxis.Labels.DateTimeFormat = "HH:MM"; 
That way I obtain labels as you request.
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

helmut ess
Newbie
Newbie
Posts: 7
Joined: Mon Nov 06, 2006 12:00 am
Contact:

Problem with datetime-axis, days have just 12 hrs ?!

Post by helmut ess » Fri Jan 12, 2007 7:16 am

Thank you for your quick help.

Helmut

Post Reply