public Void Add(Steema.TeeChart.Styles.Series)

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
SPS
Newbie
Newbie
Posts: 18
Joined: Wed Jun 29, 2005 4:00 am

public Void Add(Steema.TeeChart.Styles.Series)

Post by SPS » Mon Jul 09, 2007 11:55 am

dear,

I Have the folowing problem, I'm using the same data for more types of charts and have the folowing construction:

First of all I have my custom series class defined as:

public class CustomSeries : Steema.TeeChart.Styles.Series
{...}


I fill this with data using functions like: Add(datetime, double)..

And next I would like to insert this data in one of my fastline series...



// Create fastline
Steema.TeeChart.Styles.FastLine fastLine = new Steema.TeeChart.Styles.FastLine();

// Add my custom series (CustomSeries : Steema.TeeChart.Styles.Series
)
fastLine.Add(cvp.CustomSeries);

// And add it to our chart control
this.teeChartControl.Series.Add(fastLine);


The problem:
As soon I add my custom serie to fastchart the data is not presented in fastline but does exists in cvp.CustomSeries

Please help,

Danny

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Mon Jul 09, 2007 1:25 pm

Hello!

You might need to cast your object to the series type, e.g.

Code: Select all

fastLine.Add((Steema.TeeChart.Styles.Series)cvp.CustomSeries); 
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

SPS
Newbie
Newbie
Posts: 18
Joined: Wed Jun 29, 2005 4:00 am

Post by SPS » Mon Jul 09, 2007 1:32 pm

That worked,

Tanks.

Post Reply