How to bring a line series to front?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
CT
Newbie
Newbie
Posts: 12
Joined: Fri Nov 15, 2002 12:00 am
Location: Germany
Contact:

How to bring a line series to front?

Post by CT » Thu Jun 23, 2005 7:08 am

I got a chart with many line series. Now I want to bring one of these series into front. I've moved the series in the SeriesList to the top, have repainted it and so on. But nothing will work.
How can I do that?

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 Jun 23, 2005 8:03 am

Hi CT,

You should use ExchangeSeries:

Code: Select all

procedure TForm1.Button1Click(Sender: TObject);
begin
  Chart1.ExchangeSeries(Series1,Series2);
  //or
  //Chart1.ExchangeSeries(0,1);
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
Image Image Image Image Image Image
Instructions - How to post in this forum

CT
Newbie
Newbie
Posts: 12
Joined: Fri Nov 15, 2002 12:00 am
Location: Germany
Contact:

Post by CT » Thu Jun 23, 2005 8:55 am

I tried that, but the series does not come to front.

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 Jun 23, 2005 9:05 am

Hi CT,

How are you using it? In the example I posted, Series1 is initally back series and Series2 is front series. Using ExchangeSeries I switch their positions. If you can get it working could you please send an example we can run "as-is" to reproduce the problem here?

You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.

BTW: Which TeeChart version are you using?
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