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

Date On x Axis

1 Answer 89 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Srinivasarao
Top achievements
Rank 1
Srinivasarao asked on 16 Nov 2010, 03:20 PM
I   want  to  display   Date   on  x-axis of  my chart.
I my database  My date is in the format of DateTime. The column Name is Date..
I  had written the code as    
chart1.PloatArea.XAxis.DataLabelsColumn="Date";

But  it  is giving  
an error message  saying  that  unable to cast System.DateTime   to System.String
Provide me solution  for that

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 17 Nov 2010, 05:55 PM
Hi Srinivasarao,

Check out the following blog post that elaborates on the matter: Displaying Incremental DateTime Values in the X-Axis of RadChart.

Greetings,
Steve
the Telerik team
See What's New in Telerik Reporting in Q3 2010 on Wednesday, November 17, 11am Eastern Time: Register here>>
Tags
General Discussions
Asked by
Srinivasarao
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or