howto CloneChartSeries with TFastLineSeries?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
odissey1
Newbie
Newbie
Posts: 35
Joined: Thu Oct 23, 2003 4:00 am

howto CloneChartSeries with TFastLineSeries?

Post by odissey1 » Fri Jun 15, 2007 1:39 pm

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

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

Post by Narcís » Fri Jun 15, 2007 2:18 pm

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

moelski
Advanced
Posts: 212
Joined: Mon Apr 23, 2007 12:00 am
Location: Germany
Contact:

Post by moelski » Thu Jul 19, 2007 6:07 am

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 !!!!

Post Reply