Home > Back-end >  Let chart always shows the latest 100 points
Let chart always shows the latest 100 points

Time:09-19

I saw on the BBS has the same problem but no solution, get to the point, no matter use what method, let chart always shows the latest 100 points, for you may be a few minutes can I but has spent more than a week haven't solved, so beg you please give some detailed program! Thank you!! Compare the urgent need,

CodePudding user response:

A Series?

When the data quantity is greater than or equal to 100, remove the front point of the Series, create and add new on OK

 if (FormAnalysis - & gt; SeriesCurrentValue - & gt; The Count () & gt; 
=100){
FormAnalysis - & gt; SeriesCurrentValue - & gt; Delete (0, 1, true);
}
FormAnalysis - & gt; SeriesCurrentValue - & gt; AddY (dbl_Value, DateTimeToStr (Now ()), clLime);
  • Related