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;