Page 1 of 1

Series Position

Posted: Thu Oct 12, 2006 2:13 pm
by 9524776
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 ?

Posted: Fri Oct 13, 2006 10:20 am
by narcis
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.

Posted: Fri Oct 13, 2006 12:12 pm
by 9524776
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.

Posted: Fri Oct 13, 2006 1:54 pm
by narcis
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.

Posted: Thu Oct 19, 2006 4:02 pm
by 9524776
Hi Narcis,

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