Re: TChart: sliding window??



CodeMachine wrote:
Hi All,

I want to have a sliding graph in a TChart (FastLine XY-graph).
By sliding I mean that after the TChart is filled up to the choosen maximum number of points, the oldest point is to be deleted and the new point added to the right of the chart.

I know I can do this myself by managing an external array of values, do the bookkeeping myself and stuff the whole array into the TChart for each new point, but this seems so wasteful. Can the TChart do this? Google gives no useful answers...


Thanks - Dirk


I tried that once-upon-a-time. That is managing it myself. It always crashed on decimal overflow after about 3 datapoint sets or so. Never figured out why.
.



Relevant Pages

  • Re: TChart: sliding window??
    ... I want to have a sliding graph in a TChart (FastLine XY-graph). ... By sliding I mean that after the TChart is filled up to the choosen maximum number of points, the oldest point is to be deleted and the new point added to the right of the chart. ... I know I can do this myself by managing an external array of values, do the bookkeeping myself and stuff the whole array into the TChart for each new point, but this seems so wasteful. ...
    (alt.comp.lang.borland-delphi)
  • TChart: sliding window??
    ... I want to have a sliding graph in a TChart. ... By sliding I mean that after the TChart is filled up to the choosen maximum number of points, the oldest point is to be deleted and the new point added to the right of the chart. ... I know I can do this myself by managing an external array of values, do the bookkeeping myself and stuff the whole array into the TChart for each new point, but this seems so wasteful. ...
    (alt.comp.lang.borland-delphi)