c# - How to draw graph using chart in .net windows forms based on time(seconds) -


my requirement draw graph using chart control in .net(windows form or wpf) in c# or vb.net update data serial port.the graph should show received data , plot load value(y axis) against time(x axis).the interval should in seconds , should keep on moving left in ecg or oscilloscope.

i made graph not scaling second intervals , not moving , redrawing left.

i don't think there built in chart function. guess need split up.

>make array, hold data points.

>then use timer, , ontimerevent method, put next data point in array, , move along, deleting last one.

>and refresh--delete , add--all chart data points array values

timer: http://msdn.microsoft.com/en-us/library/393k7sb1(v=vs.110).aspx

sorry can't think of simple way


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -