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

Telerik Silverlight Chart need Xcategory value

1 Answer 42 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Prabakaran
Top achievements
Rank 1
Prabakaran asked on 28 Aug 2012, 06:33 AM
I have used Telerik.Windows.Controls.Charting.dll for creating Bar charts in visual studio 2008. And the Runtime version of the dll is v2.0.50727 and version of the dll is 2009.1.312.1020..

While creating new DataPoints, i am getting DateTime and double value types only in the Xvalue property. As well as I am not getting the Xcategory in the Datapoint creation. 

I need to use string values in X-Axis. Kindly help me in this regard.

Thank & Regards,
Prabakaran.P

1 Answer, 1 is accepted

Sort by
0
Peshito
Telerik team
answered on 30 Aug 2012, 08:26 AM
Hi Prabakaran,

The only way of passing  DateTime string values to your XAxis  is by manually setting custom strings as a TickPoints Labels. You may find this demonstrated in our help topic.

Alternatively if you want to use the XValue property which is of type double, you will have to convert your values to OLE Automation dates first: see DateTime.ToOADate().

More about DateTime support can be found here:
http://www.telerik.com/help/silverlight/radchart-features-datetime-support.html

Hope this helps.

Regards,
Peshito
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Chart
Asked by
Prabakaran
Top achievements
Rank 1
Answers by
Peshito
Telerik team
Share this question
or