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
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.