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
TLineSeries with TeeChart2010
-
- Newbie
- Posts: 4
- Joined: Thu Jan 13, 2011 12:00 am
Re: TLineSeries with TeeChart2010
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
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
-
- Newbie
- Posts: 4
- Joined: Thu Jan 13, 2011 12:00 am
Re: TLineSeries with TeeChart2010
Oh, I'm using the latest (Feb 2011) Pro version of TeeChart.
-
- Newbie
- Posts: 4
- Joined: Thu Jan 13, 2011 12:00 am
Re: TLineSeries with TeeChart2010
Found the problem. Include files had to go at the top in c++ builder.
Re: TLineSeries with TeeChart2010
Hi Fredrik,
I'm glad to hear you've found it.
I'm glad to hear you've found it.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |