Telerik Silverlight Chart need Xcategory value

2 posts, 0 answers
  1. Prabakaran
    Prabakaran avatar
    1 posts
    Member since:
    Aug 2012

    Posted 28 Aug 2012 Link to this post

    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
  2. Peshito
    Admin
    Peshito avatar
    496 posts

    Posted 30 Aug 2012 Link to this post

    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.

  3. DevCraft banner
Back to Top