How do i draw graphs with C# + zedgraph

  • Context: C# 
  • Thread starter Thread starter Ian_Brooks
  • Start date Start date
  • Tags Tags
    Graphs
Click For Summary

Discussion Overview

The discussion revolves around implementing a 2D graphing program in C# for a thesis project, specifically focusing on real-time plotting of data received wirelessly via Bluetooth. The data includes directional motion, acceleration, elevation changes, and ECG readings. Participants explore various tools and resources for achieving this functionality.

Discussion Character

  • Exploratory
  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant seeks advice on how to implement a real-time 2D graphing program using C# and asks if ZedGraph is a suitable choice, requesting tutorials and resources.
  • Another participant shares their experience with a similar project that involved recording accelerometer and ECG data, mentioning the use of a VB6 program with the NTGRAPH component for graphing.
  • Some participants suggest considering ActiveX components used in Excel for drawing graphs as an alternative approach.
  • One participant mentions that there are good samples available on CodeProject for implementing graphing in C#.

Areas of Agreement / Disagreement

Participants express various suggestions and experiences regarding graphing tools, but there is no consensus on a single approach or tool to use. Multiple competing views remain on the best method for implementing the graphing functionality.

Contextual Notes

Participants discuss different programming environments and components (ZedGraph, NTGRAPH, ActiveX) without resolving which is definitively the best option for the user's needs. The discussion reflects a range of experiences and suggestions without a clear agreement on the optimal solution.

Who May Find This Useful

This discussion may be useful for individuals working on similar projects involving real-time data visualization in C#, particularly those interested in exploring various graphing libraries and components.

Ian_Brooks
Messages
127
Reaction score
0
For my thesis project i'll soon want to draw 2D graphs based on input data coming wirelessly via bluetooth. The signals will be directional motion, acceleration, change in elevation and finally some added data on ECG, heart rate etc.

As I'm planning on having a C# GUI user interface - how would I implement a 2D graphing program?

What I need is a means of plotting the graph in real time and have it scroll across as the data comes in. It can then refresh and show the most recent plots of the data. Should I use zedgraph? Where can I find useful tutorials/resources/ etc?
Thanks in advance
 
Last edited:
Technology news on Phys.org
Ian_Brooks said:
For my thesis project i'll soon want to draw 2D graphs based on input data coming wirelessly via bluetooth. The signals will be directional motion, acceleration, change in elevation and finally some added data on ECG, heart rate etc.

As I'm planning on having a C# GUI user interface - how would I implement a 2D graphing program?

What I need is a means of plotting the graph in real time and have it scroll across as the data comes in. It can then refresh and show the most recent plots of the data.


Should I use zedgraph? Where can I find useful tutorials/resources/ etc?



Thanks in advance

http://zedgraph.org/wiki/index.php?title=Sample_Graphs ?
 
Ian_Brooks said:
For my thesis project i'll soon want to draw 2D graphs based on input data coming wirelessly via bluetooth. The signals will be directional motion, acceleration, change in elevation and finally some added data on ECG, heart rate etc.


As I'm planning on having a C# GUI user interface - how would I implement a 2D graphing program?

What I need is a means of plotting the graph in real time and have it scroll across as the data comes in. It can then refresh and show the most recent plots of the data.


Should I use zedgraph? Where can I find useful tutorials/resources/ etc?



Thanks in advance

Hi
I developed a quite similar project based on a datalogger recording an xyz accelerometer
data (12 bits, 240 samples/sec) plus 3 ECG channels (12 bits, 960 samples/sec) on an 2GB SD card and wrote a VB6 program using the NTGRAPH component for the graphs.
The result was quite OK.
Sonnen
 
Ian_Brooks said:
For my thesis project i'll soon want to draw 2D graphs based on input data coming wirelessly via bluetooth. The signals will be directional motion, acceleration, change in elevation and finally some added data on ECG, heart rate etc.

As I'm planning on having a C# GUI user interface - how would I implement a 2D graphing program?

What I need is a means of plotting the graph in real time and have it scroll across as the data comes in. It can then refresh and show the most recent plots of the data.


Should I use zedgraph? Where can I find useful tutorials/resources/ etc?



Thanks in advance

Have you considered using the same active x components which are used to draw graphs in excel?
 
John Creighto said:
Have you considered using the same active x components which are used to draw graphs in excel?

No, just used the NTGraph Active X Control.
 
this is an easy ,if you have good ability in c#
codeproject have good sample of that and you can get your way through that
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 23 ·
Replies
23
Views
15K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 6 ·
Replies
6
Views
5K
Replies
3
Views
4K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 6 ·
Replies
6
Views
6K
Replies
13
Views
19K