Series Position

TeeChart for ActiveX, COM and ASP
Post Reply
DMC
Newbie
Newbie
Posts: 9
Joined: Thu Nov 04, 2004 5:00 am
Location: Clermont-Fd
Contact:

Series Position

Post by DMC » Thu Oct 12, 2006 2:13 pm

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 ?

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

Post by Narcís » Fri Oct 13, 2006 10:20 am

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.
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 ?
We forgot to update this information but the version available is v7.0.1.1.
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

DMC
Newbie
Newbie
Posts: 9
Joined: Thu Nov 04, 2004 5:00 am
Location: Clermont-Fd
Contact:

Post by DMC » Fri Oct 13, 2006 12:12 pm

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.

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

Post by Narcís » Fri Oct 13, 2006 1:54 pm

Hi Frédéric,

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
i will be the position of TChart1.Series(i) in the chart.
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

DMC
Newbie
Newbie
Posts: 9
Joined: Thu Nov 04, 2004 5:00 am
Location: Clermont-Fd
Contact:

Post by DMC » Thu Oct 19, 2006 4:02 pm

Hi Narcis,

Thanks for your answer. This is just what I want :D .

Post Reply