TLineSeries with TeeChart2010
Posted: 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
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