Chart的问题
With TheChart do
begin
AnimatedZoom:=True;
AnimatedZoomSteps:=4;
//此处实现添加随机数到chart里
for t:=0 to SeriesCount-1 do
With Series[t] do
FillSampleValues(NumSampleValues);
UndoZoom;
end;
//--------------- Timer控件控制: ---------------------
With TheChart do
begin
for t:=0 to SeriesCount-1 do
With Series[t] do
begin
if not (pubI = 0) then
Delete(0);
AddXY( pubI,Random(100)-50,'',clTeeColor);
end;
end;
inc(pubI);
问题:
我不想用随即数,就用AddXY( pubI,Random(100)-50,'',clTeeColor)来实现
但是效果非常差劲,不仅Series看不见,而且,x坐标就显示一个了,
怎么实现不和数据库绑定而且实现移动的效果呢?