Reverse x-axis (hight to low)

Thread is closed for posting
2 posts, 0 answers
  1. Fergus Bown
    Fergus Bown avatar
    9 posts
    Member since:
    Dec 2008

    Posted 29 Jan 2009 Link to this post

    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?

  2. Giuseppe
    Giuseppe avatar
    2363 posts

    Posted 30 Jan 2009 Link to this post

    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.

    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top