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

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -