Move a dynamically allocated FastLIneSeries BEHIND another FastLineSeries

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Bill Anderson
Newbie
Newbie
Posts: 1
Joined: Fri Oct 02, 2015 12:00 am

Move a dynamically allocated FastLIneSeries BEHIND another FastLineSeries

Post by Bill Anderson » Fri Jul 18, 2025 4:44 pm

Hello Steema,

I have a C++Builder 10.3/ Steema TeeChart VCL Pro) program with 10 FastLine Series set at design/compile time.
I also dynamically allocate a new FastLineSeries1 during program run, and add that series to my TChart1 (see code below).
This new FastLineSeries1 unfortuantely ALWAYS plots ON TOP of my existing FastLine Series.

How do I get this new dynamically allocated FastLineSeries1 to plot BEHIND all my other existing FastLine Series
(ie MOVE this dynamically allocated FastLineSeries1 FROM FRONT TO BACK)?

Thank you.
Bill Anderson

Code: Select all

FastLineSeries1 = new TFastLineSeries(TChart1);
TChart1->AddSeries(FastLineSeries1);
for (xx=FirstPlotSampleNum; xx <= LastPlotSampleNum; xx++)
{
    TChart1->FastLineSeries1->AddXY((double)xx,
                                    (double)yy,
                                    "",
                                    clMagenta);
}

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

Re: Move a dynamically allocated FastLIneSeries BEHIND another FastLineSeries

Post by Yeray » Mon Jul 21, 2025 6:14 am

Hello,

You can change the series order with the ExchangeSeries method:

Code: Select all

  TChart1->ExchangeSeries(1,2);
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