Page 1 of 1

Help with datetime axis labels, EXTREMELY URGENT.

Posted: Thu Mar 16, 2006 12:43 pm
by 8123961
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.

Posted: Thu Mar 16, 2006 1:06 pm
by narcis
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.

Posted: Thu Mar 16, 2006 1:21 pm
by 8123961
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.