Only ploting straight line
Posted: Tue Jan 04, 2011 8:08 pm
Hi,
I've just upgraded to TeeChart Pro 2010.v2010.01.11004. Installed it under BCB Pro XE, and tried the following.
Create an New Form. Drag a TChart to the form. Add a TFastLineSeries to TChart1. Add the following
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
for(int i = 0; i < 101; i++)
Series1->AddXY(i, i * i, "", clRed);
}
When I run this, this only gives me a straight line centered at Y = 0.0 for some reason. Apparently all the Y values are 0.0. I've tried the same code under BCB 2010 and TChart 8, I get the correct result.
Where is the problem?
Thanks
I've just upgraded to TeeChart Pro 2010.v2010.01.11004. Installed it under BCB Pro XE, and tried the following.
Create an New Form. Drag a TChart to the form. Add a TFastLineSeries to TChart1. Add the following
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
for(int i = 0; i < 101; i++)
Series1->AddXY(i, i * i, "", clRed);
}
When I run this, this only gives me a straight line centered at Y = 0.0 for some reason. Apparently all the Y values are 0.0. I've tried the same code under BCB 2010 and TChart 8, I get the correct result.
Where is the problem?
Thanks