Change labels on X-axis

Thread is closed for posting
4 posts, 0 answers
  1. amrutha anil
    amrutha anil avatar
    8 posts
    Member since:
    Jan 2010

    Posted 02 Feb 2010 Link to this post

    I am doing a program (C#) to display the chart according to the user selected values.For example display status of the staff members who are available.Unlike the default value 1,2,3..I wanted to change the labels in the X-axis to Available,off etc.How can I change the values of x-axis?(retrieve value from an array)
  2. Ves
    Ves avatar
    2926 posts

    Posted 05 Feb 2010 Link to this post

    Hi Amrutha Anil,

    You can set the XAxis.DataLabelsColumn property with the name of the column/field, which contains the labels you need to show. You can find an example here.

    Best regards,
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  3. Nick Jones
    Nick Jones avatar
    18 posts
    Member since:
    Jun 2009

    Posted 18 Feb 2010 Link to this post

    I've been through this article.  What are you to do if the datatype is a date?

    If you use the example below it comes back with a run time error, "Unable to cast object of type 'System.DateTime' to type 'System.String'.  Can you manipluate the date fromat.  The wizard you have seems to be able to do this with long/short date formats.


    RadChart1.PlotArea.XAxis.DataLabelsColumn =



  4. Ves
    Ves avatar
    2926 posts

    Posted 19 Feb 2010 Link to this post

    Hi Nick,

    I have placed a detailed post on DateTime support in RadChart in the other forum thread you have started.

    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top