Page 1 of 1

TLineSeries with TeeChart2010

Posted: Sat Feb 05, 2011 6:03 pm
by 16458357
Hi,

I have serious problems with the TLineSeries in the new TeeChart for VCL. Using AddXY to add a point does not work properly. The following code snippet shows an empty plot:

void __fastcall TForm1::FormCreate(TObject *Sender) {

for (double i = 0; i < 10; i++) {
Series1->AddXY(2 * i, i);
}
}


Furthermore, the following snipper raises an EAccessException.

void __fastcall TForm1::FormCreate(TObject *Sender) {

Series1->Clear();
}


As does the following:

void __fastcall TForm1::FormCreate(TObject *Sender)
{
Series1->FillSampleValues(100);
double max = Series1->MaxYValue();
}


Is the TLineSeries completely broken, or am I doing something wrong? I'm using TeeChart 2010, C++ builder XE and Windows Vista.

best regards

Fredrik Östlund

Re: TLineSeries with TeeChart2010

Posted: Sun Feb 06, 2011 11:20 am
by 16458357
Hi again,

an update:

I found the AddXY not working under c++ is already known:
http://www.teechart.net/support/viewtop ... dxy#p51484

However, the fix given there does not work either.

Also, the following functions raises exceptions:
* Series1->Color = clRed;
* Chart1->Title->Caption = "asfsdf";
* Chart1->Title->Color = clRed;


Does not raise exception, but does not do anything:
Series1->SeriesColor = clRed;

I did not test systematically, but it seems a whole lot is not working. A bit too much even, which makes me suspect that there is something wrong with my setup. Could anyone test if the given code works? If there is a problem with TeeChart 2010, is there any way of getting an older version?

best regards

Fredrik Östlund

Re: TLineSeries with TeeChart2010

Posted: Sun Feb 06, 2011 11:22 am
by 16458357
Oh, I'm using the latest (Feb 2011) Pro version of TeeChart.

Re: TLineSeries with TeeChart2010

Posted: Sun Feb 06, 2011 6:18 pm
by 16458357
Found the problem. Include files had to go at the top in c++ builder.

Re: TLineSeries with TeeChart2010

Posted: Mon Feb 07, 2011 6:22 pm
by yeray
Hi Fredrik,

I'm glad to hear you've found it.