how to change order ofseries in using javascript?

TeeChart for ActiveX, COM and ASP
Post Reply
SVMan
Newbie
Newbie
Posts: 15
Joined: Wed Jul 26, 2006 12:00 am

how to change order ofseries in using javascript?

Post by SVMan » Mon Nov 27, 2006 7:06 pm

Hi,

Can someone let me know how to programmatically change the order of the series being displayed using javascript? I do not want to use the arrow buttons provided by the advanced chart options as I need to maintain some other portion of my code to maintain the order changed by the user.

Thanks in advance,

Ravi

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

Post by Narcís » Tue Nov 28, 2006 8:54 am

Hi Ravi,

You can use TChart1.ExchangeSeries(Series1, Series2) method. This method changes the Series order, swapping one Series Z position with another.
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