C# chart with real time data
I already found some examples for drawing a chart with real time data in one of the links below in the comments. My question now is, can I also draw in real time things such as chart labels, axis and other related things?
Actually what I was looking for was to draw a chart for real-time data. Searching for real-time instead of dynamic data, I found my answer. Now I have another question. Is there a way to also add te开发者_如何学Goxt in the chart that will change dynamically as the chart draws?
You can use the .net charting controls
http://code.msdn.microsoft.com/mschart
As for updating the charts over time, just refresh the chart periodically.
You haven't specified whether it's WPF / WinForms or Silverlight, I'll give you a WPF/Silverlight answer.
There are free charting controls available like in WPF/Silverlight Toolkit or Visifire(not sure if it's free anymore). That + Databinding + (optionally) the MVVM pattern (which - for me personally makes things easier)
You can use an ObservableCollection to store data that's changing over time
- You can use the INotifyPropertyChanged interface to notify the GUI that the data has been updated
Today, In 2022, I use ScotPlot. It is fast and has tone of features.
精彩评论