Cloning a chart

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
seanmurphy
Newbie
Newbie
Posts: 48
Joined: Fri Mar 12, 2004 5:00 am

Cloning a chart

Post by seanmurphy » Tue Aug 08, 2006 12:08 pm

D6 Teechart 7.06
I've a Teechart on which I create several hundred Tlineseries at run time.

I'd like to clone the chart and series, and display chart-2 with say only a selection ofthe series visible.

I'm using---

for x:=0 to 600 do
begin
chartseries[x] := TLineSeries.Create(Chart);
Chart.AddSeries(chartseries[x]);

I've tried chart2.addseries(chartseries[x]); but that doesn't seem to work.

Any pointers appreciated.

thanks
Sean

Pep
Site Admin
Site Admin
Posts: 3299
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Aug 08, 2006 1:40 pm

Hi Sean,

follow this link to see how to one Chart to another.

Post Reply