Help with datetime axis labels, EXTREMELY URGENT.

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Klesk
Newbie
Newbie
Posts: 6
Joined: Thu Feb 26, 2004 5:00 am

Help with datetime axis labels, EXTREMELY URGENT.

Post by Klesk » Thu Mar 16, 2006 12:43 pm

Hi.

This problem might have been covered before, if so I appolagise for asking again, but I don't have the time to search properly. My boss is flying to europe the day after tommorow, and our prototype needs to be finished by then.

Here's my problem:

Basically I have an integer variable. This variable holds a total seconds.
In other words it could have for example 14000 seconds.
How do I get TeeChart to display this as hh:mm:ss, I have tried numerous things without any success.

Any help would be of great value to me.

Thank you.

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 Mar 16, 2006 1:06 pm

Hi Klesk,

I'm afraid Microsoft's .NET Framework doesn't have any built-in method for that nor has TeeChart. So you'll have to implement your own method class for that.

However, if you are retrieving your values from an SQL database it may help using what's told in the URL below.

http://www.knowdotnet.com/articles/hoursminseconds.html

To display DateTime values in TeeChart I strongly suggest you to read Tutorial 4 - Axis Control. You'll find the tutorials 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

Klesk
Newbie
Newbie
Posts: 6
Joined: Thu Feb 26, 2004 5:00 am

Post by Klesk » Thu Mar 16, 2006 1:21 pm

Unfortunately I generate the values myself.

I tried using the TimeSpan object, and I kept on adding one second to it.
I don't think the TimeSpan object can be places in a series though.

Thanks, I will go look at that tutorial, perhaps I find something in there I can use.

Thanks again.

Post Reply