HOW CAN WE CHANGE THE POSITION OF SERIES DURING RUN TIME

TeeChart for ActiveX, COM and ASP
Post Reply
Aravind
Newbie
Newbie
Posts: 75
Joined: Fri Nov 15, 2002 12:00 am

HOW CAN WE CHANGE THE POSITION OF SERIES DURING RUN TIME

Post by Aravind » Wed Jul 05, 2006 1:18 pm

For example i have drawn the chart with 3 series a, b,c

plotted series position are a,b,c using advance graph functionality i change the position b to c now the position are a,c ,b

how can this be achieved using the code ...

pls advise me
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 Jul 05, 2006 2:37 pm

Hi Aravind,

Use ExchangeSeries(Series1, Series2: Integer) method. This method changes the Series order, swapping one Series Z position with another. The Chart repaints to reflect the new Series order. It accesses TChart.SeriesList property. Example:

Code: Select all

Private Sub Command1_Click()
    TChart1.ExchangeSeries 0, 1
End Sub
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