Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Recommendations on plotting a graph

enter image description here

I need to draw a graph like the one shown above in my application. The values for Y axis is updated periodically which is obtained from an electronic device and X axis refers to time elapsed . By default, the viewing range of X axis is automatically updated (extends horizontally) as seconds elapse.

One thing I find pretty challenging right off the bat is, users can also manually set the range of X and Y axis, so I need to come up with a flexible way to handle that part.

Can I get some recommendations on handling the above requirements? I prefer WPF but Winforms is fine too. Are there any example projects which solves a problem similar to above? Or any third-party dlls I can use (for commercial purposes)?

like image 823
l46kok Avatar asked Oct 07 '22 19:10

l46kok


1 Answers

One way I'm considering switching to right now is simply embedding a web control in whatever type of application (winforms, wpf) and then using html/javascript to draw the graph using an opensource library such as : flotr2, Style Chart, jqPlot, Protovis and D3. The benefit of doing it this way is that if you decide to change platforms your graphing doesn't need to change.

Right now I'm using Dynamic Data Display, which is a WPF graphing library.

like image 198
N_A Avatar answered Oct 13 '22 12:10

N_A