I'm working with a Line Series graph and my problem is that I'm only getting a display of what looks to be 256 of the 512 points that I am sending to my graph to show.
I have two x and y arrays of double, both contain 512 points. I've added a stringgrid to show that all the points are being added to the graph using the code below. However, the data points stop plotting at roughly 1/2 the array (which I'm guessing is 256).
Using the following code:
Code: Select all
for i := 0 to 511 do
begin
x := xVal[i];
y := yVal[i];
AddXY(xVal[i],yVal[i]);
if (SeriesIndex = 0) and (chart.Name = 'DisplayChart') then
begin
Mainform.ChartGrid1.Cells[0,i-fc] := Format('%.3f',[x]);
Mainform.ChartGrid1.Cells[1,i-fc] := Format('%.3f',[y]);
end;
end;
end;