Page 1 of 1

Move a dynamically allocated FastLIneSeries BEHIND another FastLineSeries

Posted: Fri Jul 18, 2025 4:44 pm
by 16476515
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);
}

Re: Move a dynamically allocated FastLIneSeries BEHIND another FastLineSeries

Posted: Mon Jul 21, 2025 6:14 am
by yeray
Hello,

You can change the series order with the ExchangeSeries method:

Code: Select all

  TChart1->ExchangeSeries(1,2);