How Can I Change source series in program

TeeChart for ActiveX, COM and ASP
Post Reply
Jameh2020
Newbie
Newbie
Posts: 25
Joined: Fri Apr 08, 2005 4:00 am

How Can I Change source series in program

Post by Jameh2020 » Tue Feb 05, 2008 4:48 am

Hi
i have three lines series
and one moving average line depend on the first line

now i need to change the moving average period
and i need to change the moving average source series from line 1 to line 2 or line 3

all this in code

can you help me
thanks

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

Post by Yeray » Tue Feb 05, 2008 8:56 am

Hi Jameh2020,

You can change function period as follows:

Code: Select all

TChart1.Series(FunctionIndex).FunctionType.Period = NewPeriodValue
You can assign a function source as follows:

Code: Select all

TChart1.Series(FunctionIndex).DataSource = TChart1.Series(SourcesIndex)
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