dynamic - Removing Points From the Start of a Chart When Past a Certain Size in C# -


i writing data chart com port during run time. such, chart dynamically updating gets increasingly bigger, scale changes making line smaller , smaller. wish stop deleting points off front of chart after it's big.

            if (chartmain.series.points.count() >= 120)             {                 chartmain.series[0].points.removeat(0);             } 

i need deletes first point after size scale remains same. however, not work in it's current form , unsure in how approach problem. can point me in right direction? thank in advance.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -