Page 1 of 1

howto CloneChartSeries with TFastLineSeries?

Posted: Fri Jun 15, 2007 1:39 pm
by 9334475
Hi,

CloneChartSeries function works fine with TChartSeries. e.g.
NewSeries:=CloneChartSeries(Series1);

But same function won't work with TFastLineSeries.

What is the best way to clone TFastLineSeries?

Regards,
odissey1

Posted: Fri Jun 15, 2007 2:18 pm
by narcis
Hi odissey1,

You can do something like this:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
var MyFastLine: TFastLineSeries;
begin
    Chart1.AddSeries(CloneChartSeries(Series1));
    MyFastLine := (Chart1[Chart1.SeriesCount-1] as TFastLineSeries);
end;

Posted: Thu Jul 19, 2007 6:07 am
by 9349911
Hi Narcis,

well I´m a little bit speechless :D
We develope an application which records serial data from chargers. So you have series like voltage and current.
And with our old engine we tought a long long time how to implement a function for curve comparison. And now I found this little piece of code. It solved our long term problem within 10 minutes.

I´m very amazed. Thx !!!!