DateTime Axis Formatting

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
madup
Newbie
Newbie
Posts: 28
Joined: Fri Oct 07, 2005 4:00 am

DateTime Axis Formatting

Post by madup » Sun Nov 05, 2006 11:40 pm

I have run into a small possible bug.
If I set the DateTime Format for 'nn:ss.zz' if the first value of the fraction of a second is less than 1, the label on the axis is incorrect
example: value 1:12.264 will display 01:12.26
if the value would be 1:12.064 it will display as 01:12.64

If I set the format to 'nn:ss.zzz' I get for
1:12.264 01:12.264
1:12.064 01:12.264

By extending the formatting string I get the correct values. I was trying to
reduce the length of the label on the axis, for cases where I need to add hours.

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

Post by Narcís » Mon Nov 06, 2006 3:21 pm

Hi madup,

I could reproduce the problem here and added it to our defect list (TV52011872) to be fixed for future releases. In the meantime, you could try solving this problem in the OnGetAxisLabel event, manually modifying LabelText parameter.
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

Post Reply