Cannot change data source from function

TeeChart for ActiveX, COM and ASP
Post Reply
Paul2
Newbie
Newbie
Posts: 7
Joined: Fri Feb 17, 2006 12:00 am

Cannot change data source from function

Post by Paul2 » Fri Feb 24, 2006 6:49 pm

I have a chart with three series. Series(2) I set as a function, to be equal to series(0). Now I want to change it back to manual, but changes made to it in the Edit window are not saved - it keeps reverting back to = series(0), regardless of what data I put into it at runtime.

Even setting series(2).datasource = "manual" at run time does not help - series(2) continues to contain the same data as series(0).

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Mar 02, 2006 7:39 am

Hi,

yes, you're correct, it's a bug which has been added down our defect list, and a fix for it will be considered to inclusion for the next maintenance releases.
A workaround is to set the Series to "manual" via code, I've test it using the following code with the latest Teechart Pro v7 and worked fine :

Code: Select all

With TChart1.Series(2)
    .DataSource = "manual"
    .CheckDataSource
    .Clear
    .AddXY 0, 10, "", clTeeColor
    .AddXY 1, 12, "", clTeeColor
End Sub

Paul2
Newbie
Newbie
Posts: 7
Joined: Fri Feb 17, 2006 12:00 am

Post by Paul2 » Thu Mar 02, 2006 2:13 pm

Thank you.

Like I said, for me, setting datasource = manual at run time did not fix the problem, but I did not make the CheckDataSource call. That must be the difference.

I did fix it by deleting the series and creating a new one.

Post Reply