带有实时数据的 C# 图表
我已经在评论中的以下链接之一中找到了一些使用实时数据绘制图表的示例。我现在的问题是,我还可以实时绘制图表标签、轴和其他相关的东西吗?
实际上我想要的是绘制实时数据的图表。通过搜索实时数据而不是动态数据,我找到了答案。现在我有另一个问题。有没有办法在图表中添加文本,这些文本会随着图表的绘制而动态变化?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以使用 .net 图表控件
http://code.msdn.microsoft.com/mschart
至于随着时间的推移更新图表,只需定期刷新图表即可。
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.
你还没具体说明是WPF/WinForms还是Silverlight,我给你一个WPF/Silverlight的答案。
有免费的图表控件可用,例如 WPF/Silverlight Toolkit 或 Visifire(不确定它是否是免费的)。 + 数据绑定 + (可选)MVVM 模式(对我个人而言,这使事情变得更容易)
您可以使用 ObservableCollection 来存储随时间变化的数据
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
今天,2022 年,我使用 ScotPlot。它速度快并且具有特色功能。
Today, In 2022, I use ScotPlot. It is fast and has tone of features.