This is a migrated thread and some comments may be shown as answers.

Date values on Xaxis

1 Answer 174 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Filipe Peixinho
Top achievements
Rank 1
Filipe Peixinho asked on 30 Nov 2007, 08:11 PM
I think it's a dumb question but I must put it here because I think I tried everything to get this done without success.
Is there some kind of trick we must do to be able to show Datetime (shor date for now) values below the XAxis on a spline chart?
I have a datatable wth two fields (Day and Value) and I'm trying to do a databing with this table and everything shows well except the date values. All I get is values between 1899 and 1900.
I already checked if the data is arriving well and it is.
Can some one help me on this one?

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 05 Dec 2007, 08:24 AM
Hi Filipe,

To add dates to an axis or chart item, values must be converted to OleAutomation types.  Use the DateTime ToOADate() function for this purpose.  Please visit also this article for more info:
http://www.telerik.com/help/RadChart/v3_NET2/?chrtSetCustomXAxisYAxis%20items.html

All the best,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Chart (Obsolete)
Asked by
Filipe Peixinho
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or