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
HOW CAN WE CHANGE THE POSITION OF SERIES DURING RUN TIME
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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:
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 |
Instructions - How to post in this forum |