Dynamic/Moving Graphs plotting libraries/framework in C#

2.4k views Asked by At

Which will be better to plot the dynamic or moving graphs( like ECG or dynamically changing data) in C#. I concluded two library framework using Open GL

     - Open TK 
     - TaoFramework 
     - FreeGlut

Which One I should chose and Is there a dedicated library (.netcharting library) for plotting graphs which supports Moving Graphs in C#.

thnx

2

There are 2 answers

3
The Fiddler On

(Disclaimer: I am the author of OpenTK and have used the library to plot EOG, OCT and various other animated datasets before.)

Do you need a UI? (Buttons, checkboxes, menus?) In that case, your best bet is OpenTK (GLControl) combined with Windows.Forms for the UI elements. If you simply wish to display waveforms, you can also use OpenTK (GameWindow) which also runs on mobile phones and tablets.

A quick google search on "opentk graph" or "opentk plot" returns multiple relevant results:

FreeGlut would let you create an OpenGL window, but then you'd have to use OpenTK or Tao to draw into it, so this is not very useful on its own.

Tao hasn't had a release for close to a decade now and is quite outdated (OpenGL v2.1 only, whereas OpenTK supports v4.5). There is very little reason to start a new project using Tao at this point.

0
banavalikar On

It is very easy. You have to use slope point form i.e.

y - y1 = m * (x - x1)

Refer my example code in C# here.