Page 1 of 1

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

Posted: Mon Jul 09, 2007 11:55 am
by 9637567
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

Posted: Mon Jul 09, 2007 1:25 pm
by Chris
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); 

Posted: Mon Jul 09, 2007 1:32 pm
by 9637567
That worked,

Tanks.