Clear All Series method

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

Clear All Series method

Post by odissey1 » Mon Dec 08, 2008 8:48 pm

Hi,
To clear all series in a chart I frequently use
for i:=0 to Chart1.SeriesCount-1 do Chart1.Clear;

Is there some analog of that code like
Chart1.ClearAllSeries;

regards,
odissey1

wwp3321
Newbie
Newbie
Posts: 60
Joined: Wed Jul 02, 2003 4:00 am

Post by wwp3321 » Tue Dec 09, 2008 1:13 am

You can use Chart1.RemoveAllSeries() .

odissey1
Newbie
Newbie
Posts: 35
Joined: Thu Oct 23, 2003 4:00 am

Post by odissey1 » Tue Dec 09, 2008 2:05 am

8574101 wrote:You can use Chart1.RemoveAllSeries() .
I want to keep and re-use series for a new data. 'RemoveAllSeries' wipes off all existing series.

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

Post by Narcís » Tue Dec 09, 2008 12:16 pm

Hi odissey1,

I'm afraid not, such method doesn't exist. You should use Clear in a loop as you already do.
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

odissey1
Newbie
Newbie
Posts: 35
Joined: Thu Oct 23, 2003 4:00 am

Post by odissey1 » Tue Dec 09, 2008 6:54 pm

narcis wrote:Hi odissey1,

I'm afraid not, such method doesn't exist. You should use Clear in a loop as you already do.
I suspected that. I typically have 5-6 charts in the project each having several series. Every time I reload data all charts need to be 'reset' so such procedure would be useful.

Please consider this for a wishlist.

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

Post by Narcís » Wed Dec 10, 2008 9:05 am

Hi odissey1,

Yes, I have added this to the wish-list.
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