Page 1 of 1

How do I know which series I am working with

Posted: Fri May 13, 2005 8:59 pm
by 9234539
Hi,

newbie question,

How do I know the series type from Series class? Thanks.

Posted: Mon May 16, 2005 10:14 pm
by 9234539
I figured out.

now new question,

How do I navigate through all the series, ex. Let's say I know

series* se;

How can I go to the prev/next series in the collection?

Thanks

Posted: Tue May 17, 2005 6:44 am
by Marjan
Hi.

How about this (using TeeChart .NET)

Code: Select all

Steema.TeeChart.Styles.Series s= tChart1.Series[1]; // second series
or if you want to cycle through all series i chart series list:

Code: Select all

foreach (Steema.TeeChart.Styles.Series s in tChart.Series)
{ s.FillSampleValues(10);
}

Posted: Tue May 17, 2005 2:18 pm
by 9234539
actually, can I get the index of the series in the series collection?

Posted: Tue May 17, 2005 3:06 pm
by narcis
Hi,
9234539 wrote:actually, can I get the index of the series in the series
collection?
Yes, you can use:

Code: Select all

tChart1.Series.IndexOf(line1);

Posted: Tue May 17, 2005 7:22 pm
by 9234539
great, tks :lol: