How to do sorting on Horizontal axis .?

TeeChart for ActiveX, COM and ASP
Post Reply
daryl
Newbie
Newbie
Posts: 91
Joined: Thu Sep 09, 2004 4:00 am
Location: UK
Contact:

How to do sorting on Horizontal axis .?

Post by daryl » Wed May 02, 2007 12:45 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed May 02, 2007 1:22 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

daryl
Newbie
Newbie
Posts: 91
Joined: Thu Sep 09, 2004 4:00 am
Location: UK
Contact:

Post by daryl » Wed May 02, 2007 1:38 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed May 02, 2007 2:21 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

daryl
Newbie
Newbie
Posts: 91
Joined: Thu Sep 09, 2004 4:00 am
Location: UK
Contact:

Post by daryl » Wed May 02, 2007 2:30 pm

Posted Correct file pls check

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed May 02, 2007 2:42 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply