delphirenderingteechart

low rendering with the big data in teechart pro vcl


i use teechart pro vcl for plot charts from input data. i read data from comport and add points to TFastlineseries with this code :

var
  a : integer;
  b : double;
-----------------------------
With Dbchart1.Series[0] Do
Begin
   Series0.AddXY(a, b, '', clTeeColor);
end;

i have very simple 2d or sometimes 3d colorfully graphs with more than 100000 points. but after 20000 points the rendering gets very slow and in some place it will be stop. what can i do!? is there any algorithm for improve this situation?


Solution

  • Turn off drawing all the points.

      Series0.DrawAllPoints := false;
    

    From Real-time charting in TeeChart VCL:

    TFastLineSeries introduces several properties for fast drawing

    The PDF also mentions how to delete from a series in real time.