TLineSeries with TeeChart2010

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
FredrikOstlund
Newbie
Newbie
Posts: 4
Joined: Thu Jan 13, 2011 12:00 am

TLineSeries with TeeChart2010

Post by FredrikOstlund » Sat Feb 05, 2011 6:03 pm

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

FredrikOstlund
Newbie
Newbie
Posts: 4
Joined: Thu Jan 13, 2011 12:00 am

Re: TLineSeries with TeeChart2010

Post by FredrikOstlund » Sun Feb 06, 2011 11:20 am

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

FredrikOstlund
Newbie
Newbie
Posts: 4
Joined: Thu Jan 13, 2011 12:00 am

Re: TLineSeries with TeeChart2010

Post by FredrikOstlund » Sun Feb 06, 2011 11:22 am

Oh, I'm using the latest (Feb 2011) Pro version of TeeChart.

FredrikOstlund
Newbie
Newbie
Posts: 4
Joined: Thu Jan 13, 2011 12:00 am

Re: TLineSeries with TeeChart2010

Post by FredrikOstlund » Sun Feb 06, 2011 6:18 pm

Found the problem. Include files had to go at the top in c++ builder.

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

Re: TLineSeries with TeeChart2010

Post by Yeray » Mon Feb 07, 2011 6:22 pm

Hi Fredrik,

I'm glad to hear you've found it.
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