Home > Back-end >  The use of controls TeeChart
The use of controls TeeChart

Time:10-24

In a real-time system GUI, use TeeChart controls, using several series to display the data, using the series - & gt; AddY (data) to draw, but the memory consumption has been constantly increased, up to a little information on the Internet, the data has been accumulated in the TeeChart, need to put the AutoRepaint attribute set to false, manual drawing, but found that after use the LineTo function display line is only for a short period, then disappeared,
I try to use the series - & gt; Clear () to remove the data, perform memory will have significantly lower, but the series of the Chart also shows, after is not clear, the statement before the series does not exist, to define it? In addition, there is a free function, this is to be used, with the clear
Now my series created are directly on the Chart graphic window set out one by one, by using c + + Builder, so a lot of online AddSeries are used to create a series of methods will work, also please which can give some example,

CodePudding user response:

Whether can show only the part of data, or show only the data in a certain length of time;

So you can delete the previous data behind add

For example:
 

Double xx;
Sleep (1);
If (SDis1 - & gt; XValues - & gt; Count> 200)
SDis1 - & gt; Delete (0, 1, true);

Xx=SDis1 - & gt; XValues - & gt; The Count.//SDis1 - & gt; XValues - & gt; The Last ().

SDis1 - & gt; AddXY (xx + 1, C [0], xpoit, clRed);

CodePudding user response:

TLineSeries * SDis1;
  • Related