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

Reverse x-axis (hight to low)

1 Answer 119 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Fergus Bown
Top achievements
Rank 1
Fergus Bown asked on 29 Jan 2009, 03:59 PM
How do I program the chart to order the x-axis so that high values are on the left hand side, to low values on the right?

thanks

1 Answer, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 30 Jan 2009, 11:02 AM
Hi Fergus Bown,

Unfortunately RadChart does not provide support for reversing the XAxis item order and it would not be possible to achieve the desired functionality.

You can handle the BeforeLayout server side event and customize the axis item labels like this:

foreach (ChartAxisItem axisItem in RadChart1.PlotArea.XAxis.Items) 
    //... 
    axisItem.TextBlock.Text = "Custom"

but this will not change the underlying axis item values i.e. they will still be ordered from low to high and this only changes the visual appearance of the items.


Greetings,
Manuel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Chart (Obsolete)
Asked by
Fergus Bown
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Share this question
or