Im developing one GUI in C#.Net under WPF.Actually its an application for serial communication with the embedded device,I want to show a line chart with the frequently recieved data.And also I should provide an option to save those charts and to give an option to print it.How can I draw this dynamically with the support of free libraries or softwares?
Im developing one GUI in C#.Net under WPF.Actually its an application for serial communication
Share
I use Dynamic Data Display for all my WPF charting needs. It supports saving the charts, is very quick, provides seamless zooming and panning.
Namespace: xmlns:d3=”http://research.microsoft.com/DynamicDataDisplay/1.0″
XAML:
C# Code: Converter used
C# Code: Clearing Graph and Creating line graph, Here my StockasticProcessPoint is a structure with a field “DateTime t” and a field “Double value”.
With this, you should be able to plot a chart in WPF. Adding data live when it comes back from the serial port should be no problem. You can also look at the binding examples from DynamicDataDisplay.