I'm using TeeChart v7.11 with Borland C++ Builder 2006. I'm trying to create a graph, with the fonction AddXY(X-Value, Y-Value), and sometime, two points are not joined, when they should be, and some other time, everything is ok. To make sure that my data was alright, I save my data in a text file that i imported in Exccel, and everything is all right.
Here an the code that i have to fill my graph
Code: Select all
fX = 0.0f;
increment = 0.002f;
for (iCtr = 0; iCtr < data->Count; iCtr++){
Graphique->Series[1]->AddXY(fX, data[iCtr]);
fX += increment;
}