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
howto CloneChartSeries with TFastLineSeries?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi odissey1,
You can do something like this:
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 |
Instructions - How to post in this forum |
Hi Narcis,
well I´m a little bit speechless
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 !!!!
well I´m a little bit speechless
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 !!!!
Greetz Dominik
http://www.logview.info
http://www.logview.info