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

RadChart Binding with DataTable

1 Answer 221 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Abdul
Top achievements
Rank 2
Abdul asked on 29 Nov 2010, 02:10 PM
Dear Team,

I have a DataTable object containing 4 columns... I want to bind it to RadChart, and I need to display column no.1 that is date column on the x-axis. please tell me complete steps what i need to perform... when I bind datatable it displays series against 2,3,4 th columns but displays 1,2,3,4... on x-axis.
Thanks

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 01 Dec 2010, 04:50 PM
Hi Abdul,

You can find a sample project attached that has RadChart databound to DataTable where XAxis Labels are of type DateTime.
Here are some notes regarding the project: DateTime values should be converted to their OLE Automation equivalents using ToOADate(). RadChart.XAxis.Appearance.ValueFormat property provides means to format X axis labels. In this case it is set to ShortDate.
You can set custom axis range after setting AutoScale property of the axis to false.
The Xaxis labels are rotated by -45 degrees for better readability using LabelAppearance.RotationAngle property.

Kind regards,
Evgenia
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Chart (Obsolete)
Asked by
Abdul
Top achievements
Rank 2
Answers by
Evgenia
Telerik team
Share this question
or