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

Reorder the sequence of Bar Chart

3 Answers 89 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Jun Ting
Top achievements
Rank 1
Jun Ting asked on 28 Mar 2010, 10:50 AM
hi,

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

Sort by
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.
0
Jun Ting
Top achievements
Rank 1
answered on 09 Apr 2010, 11:24 AM
Hi, how to set the datacolumn for axis-Y?

When i add a new column for sorting (Data Type is int) ? I can't get the correct result.
0
Ves
Telerik team
answered on 14 Apr 2010, 09:19 AM
Hello Jun Ting,

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.
Tags
Chart (Obsolete)
Asked by
Jun Ting
Top achievements
Rank 1
Answers by
Ves
Telerik team
Jun Ting
Top achievements
Rank 1
Share this question
or