Page 1 of 1

How to do sorting on Horizontal axis .?

Posted: Wed May 02, 2007 12:45 pm
by 9524108
enclosed the sample project
i would like to sort/custom order on the horizontal axis
how can this be done ..?

Pls reply asap


thx
aravind

Posted: Wed May 02, 2007 1:22 pm
by narcis
Hi Aravind,

You can sort series as we already told you here.

However, this doesn't seem to correspond to the project you sent. Could you please check the project you sent and let us know what are you looking for exactly?

Thanks in advance.

Posted: Wed May 02, 2007 1:38 pm
by 9524108
i dnt need sorting on the series , i need to sort on the horizontal axis

for example if my horizontal axis is shown with 3 labels a, b & c

i want to change to c,b,a or c,a, b or a,c, b .. ( i am not sorting on series , )
in the sample project

chart 1 : shows a, b
in chart 2 shows b,a

Posted: Wed May 02, 2007 2:21 pm
by narcis
Hi daryl,

In that case, the only solution I can think of is using custom labels as shown in the example at All Features\Welcome!\Axes\Labels\Custom labels in the features demo.
in the sample project

chart 1 : shows a, b
in chart 2 shows b,a
I can't see that in the last example you sent.

Posted: Wed May 02, 2007 2:30 pm
by 9524108
Posted Correct file pls check

Posted: Wed May 02, 2007 2:42 pm
by narcis
Hi daryl,

Thanks for the example.

As I told you before, if you want to sort bottom axis labels but NOT sort series x values you should use custom labels.

Another option is using OnGetAxisLabel event. You can find an example here.