Hi,
I have a little question on a 2D Gantt Chart.
When you have more than one serie painted at the same chart point / area , is there a way to know which serie is front ?
I know that you can use : TChart.ExchangeSeries to permut two series but i'd like to know their order before. To resume, a sort of ZOrder for 2D ...
Thanks in Advance.
Fred CHASSAGNE - DELTA MU Conseil.
PS : By the way, i 've upgraded in 7.0.1.1 and AboutBox shows 7.0.0.8, Is it just a constant wich is not updated or the download version wich is still 7.0.0.8 ?
Series Position
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Fred,
You can use TeeChart's OnClickSeries event to retrieve the clicked series ValueIndex and thus know the series order. Another option would be just looping in the series collection, knowing the series index should be enough to get the information you want.
You can use TeeChart's OnClickSeries event to retrieve the clicked series ValueIndex and thus know the series order. Another option would be just looping in the series collection, knowing the series index should be enough to get the information you want.
We forgot to update this information but the version available is v7.0.1.1.PS : By the way, i 've upgraded in 7.0.1.1 and AboutBox shows 7.0.0.8, Is it just a constant wich is not updated or the download version wich is still 7.0.0.8 ?
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 |
Hi Narcis,
Thanks for your answer.
The looping solution seems good to me but i don't see which property check to know the graphical series order.
Can i be sure that, in a serie collection, series are often drawn in the same order ? And if this is true, Is the Series(0) drawn first (behind) or last (front) ?
Thanks in advance.
Frédéric CHASSAGNE - DELTA MU Conseil.
Thanks for your answer.
The looping solution seems good to me but i don't see which property check to know the graphical series order.
Can i be sure that, in a serie collection, series are often drawn in the same order ? And if this is true, Is the Series(0) drawn first (behind) or last (front) ?
Thanks in advance.
Frédéric CHASSAGNE - DELTA MU Conseil.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Frédéric,
TChart1.Series(0) is drawn first (behind), so if you make a loop like this:
i will be the position of TChart1.Series(i) in the chart.
TChart1.Series(0) is drawn first (behind), so if you make a loop like this:
Code: Select all
For i = 0 To TChart1.Series.Count - 1
Next
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 |