How to reorder the item in axis-X? I would like the show the sequence in "New, First Call, Follow up, Keep In View, Sold, Close, Failed".
(Please refer to attached file.)
Is it possible to set the datacolumn for axis-Y ?
3 Answers, 1 is accepted
0
Ves
Telerik team
answered on 31 Mar 2010, 10:02 AM
Hello Jun Ting,
RadChart will display the items according to their initial order in the underlying datasource. So, you need to sort the data in the desired order before sending it to the chart.
All the best,
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.
I have attached a small example, showing how to sort the X axis labels in grouping scenario.
The Y axis datacolumn is the column, which provides the values for the bars - in my example it is set in this line:
RadChart1.DataManager.ValuesYColumns = new string[] { "Count" };
If you need to provide your own text labels for Y axis items -- you will have to wire the BeforeLayout event, loop on the axis items and modify their text: axisItem.TextBlock.Text = "my text";
Kind regards,
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.