Copy series settings?

TeeChart for ActiveX, COM and ASP
Post Reply
David P
Newbie
Newbie
Posts: 4
Joined: Tue May 06, 2008 12:00 am

Copy series settings?

Post by David P » Fri Feb 13, 2009 2:15 pm

Hi,

Is there a way to copy all the settings at once (except data) from one series to another?

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Fri Feb 13, 2009 2:44 pm

Hi David,

You could clone the series with something like this:

Code: Select all

TChart1.CloneSeries 0
And then you should clean the new series' value list with:

Code: Select all

TChart1.Series(TChart1.SeriesCount - 1).Clear
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

David P
Newbie
Newbie
Posts: 4
Joined: Tue May 06, 2008 12:00 am

Post by David P » Fri Feb 13, 2009 3:44 pm

Thanks, that helped!

The hand distance and offset properties doesn't seem to get copied, though.

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Mon Feb 16, 2009 2:31 pm

Hi David,

Yes, you are right. I've added it to the wish list to be fixed in further releases (TV52013867).
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply