Page 1 of 1

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

Posted: Thu Jan 11, 2007 3:28 pm
by 9792995
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

Posted: Thu Jan 11, 2007 5:50 pm
by narcis
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.

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

Posted: Fri Jan 12, 2007 7:16 am
by 9792995
Thank you for your quick help.

Helmut