user579674
user579674

Reputation: 2169

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 text in the chart that will change dynamically as the chart draws?

Upvotes: 2

Views: 17316

Answers (3)

BHP
BHP

Reputation: 526

Today, In 2022, I use ScotPlot. It is fast and has tone of features.

Upvotes: 0

Maciek
Maciek

Reputation: 19893

You haven't specified whether it's WPF / WinForms or Silverlight, I'll give you a WPF/Silverlight answer.

  1. 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)

  2. You can use an ObservableCollection to store data that's changing over time

  3. You can use the INotifyPropertyChanged interface to notify the GUI that the data has been updated

Upvotes: 1

James Gaunt
James Gaunt

Reputation: 14783

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.

Upvotes: 4

Related Questions