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

Change labels on X-axis

3 Answers 141 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
amrutha anil
Top achievements
Rank 1
amrutha anil asked on 03 Feb 2010, 05:22 AM
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)
Thanks

3 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 05 Feb 2010, 03:29 PM
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,
Ves
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.
0
Nick Jones
Top achievements
Rank 1
answered on 18 Feb 2010, 03:55 PM
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 =

"OrderDate"

 

0
Ves
Telerik team
answered on 19 Feb 2010, 08:01 AM
Hi Nick,

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


Sincerely,
Ves
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.
Tags
Chart (obsolete as of Q1 2013)
Asked by
amrutha anil
Top achievements
Rank 1
Answers by
Ves
Telerik team
Nick Jones
Top achievements
Rank 1
Share this question
or