Page 1 of 1

How to bring a line series to front?

Posted: Thu Jun 23, 2005 7:08 am
by 8439897
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?

Posted: Thu Jun 23, 2005 8:03 am
by narcis
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;

Posted: Thu Jun 23, 2005 8:55 am
by 8439897
I tried that, but the series does not come to front.

Posted: Thu Jun 23, 2005 9:05 am
by narcis
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?