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

setting the date in the X axis

1 Answer 56 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Joseph
Top achievements
Rank 1
Joseph asked on 27 Aug 2008, 01:42 AM
Hello:

I have a table with columns:  Morning, Afternoon,Evening,Date.  I'm planning to have a line graph to display data.  I would like to know how got get the date column of the table in the x axis of the graph.  any ideas?

1 Answer, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 27 Aug 2008, 09:28 AM
Hi Joseph,

We would suggest you to review this online example here that demonstrates how to display DateTime data on the numerical axis of the chart control -- the key is to convert the DateTime object to double value via the DateTime.ToOADate( ) method.

We have also attached a sample application for your convenience.


Kind regards,
Manuel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Chart (Obsolete)
Asked by
Joseph
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Share this question
or