How do I know which series I am working with

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Fang
Newbie
Newbie
Posts: 66
Joined: Wed Oct 13, 2004 4:00 am

How do I know which series I am working with

Post by Fang » Fri May 13, 2005 8:59 pm

Hi,

newbie question,

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

Fang
Newbie
Newbie
Posts: 66
Joined: Wed Oct 13, 2004 4:00 am

Post by Fang » Mon May 16, 2005 10:14 pm

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

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Tue May 17, 2005 6:44 am

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);
}
Marjan Slatinek,
http://www.steema.com

Fang
Newbie
Newbie
Posts: 66
Joined: Wed Oct 13, 2004 4:00 am

Post by Fang » Tue May 17, 2005 2:18 pm

actually, can I get the index of the series in the series collection?

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

Post by Narcís » Tue May 17, 2005 3:06 pm

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);
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

Fang
Newbie
Newbie
Posts: 66
Joined: Wed Oct 13, 2004 4:00 am

Post by Fang » Tue May 17, 2005 7:22 pm

great, tks :lol:

Post Reply