change a series type at realtime

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
yair
Newbie
Newbie
Posts: 15
Joined: Wed Jan 16, 2008 12:00 am

change a series type at realtime

Post by yair » Thu Apr 24, 2008 11:26 am

I have a list of series which i attach to different charts at realtime.
I'd like to be able to change the type of a series after it was inserted into the chart (eg. from FastLine to Points), if possible using the same series object. (now I create a new series for each replacement and copy the attributes from the old one).
Also, I'd like to be able to do this without having to remove the series from the chart and inserting it back again (which changes it's index location seen in the Legend).
I've noticed you can do so using the tools, so i guess it's possible.
How do i come about this ?

Thanks,
Yair

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

Post by Narcís » Thu Apr 24, 2008 11:28 am

Hi Yair,

You can change series type using ChangeType method as shown here.
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

Post Reply