建议.NET和Mono的跨平台线图库

时间:2022-05-17 02:27:37

I'm writing a cross platform datalogging application in C# so I use the .NET compiler for Windows and Mono for the Mac. I'm at the stage now where I'm building the GUI for my logging application, I have a plug in arcitecture so am reasonably flexible on what I use.

我正在用C#编写一个跨平台的数据记录应用程序,所以我使用.NET的.NET编译器和Mac的Mono。我现在正处于为我的日志记录应用程序构建GUI的阶段,我有一个arcitecture插件,所以我使用的是相当灵活的。

I'm looking for a charting library to initially plot simple line charts but I may need more complex charts in the future.

我正在寻找一个图表库来初步绘制简单的折线图,但我将来可能需要更复杂的图表。

I'm currently looking at ZedChart but the development stopped a couple of years ago.

我目前正在关注ZedChart,但几年前开发停止了。

To add to the complications, I'd like a native look and feel so I'm planning to use Windows.Forms on Windows and Cocoa# on the Mac - this may be the stumbling block?

为了增加复杂性,我想要一个原生的外观和感觉所以我打算在Windows上使用Windows.Forms和在Mac上使用Cocoa# - 这可能是绊脚石?

I'm not far enough down the line to stop using Windows.Forms or Cocoa# so I'm open to suggestions on a more elegant solution. I'm suspecting I may need to roll my own, this is not out of the question but I'd rather avoid this if there is something I can use straight away.

我还不够用来停止使用Windows.Forms或Cocoa#所以我愿意接受更优雅解决方案的建议。我怀疑我可能需要自己动手,这不是不可能的,但如果有什么我可以马上使用的话,我宁愿避免这种情况。

Does any one have any suggestions or recomendations?

有没有人有任何建议或推荐?

2 个解决方案

#1


I've used ZedGraph in the past in both WinForms applications and from within ASP.Net. It is quite stable, and as mentioned by m_oLogin, is relatively easy to add functionality to.

我以前在WinForms应用程序和ASP.Net中都使用过ZedGraph。它非常稳定,正如m_oLogin所提到的,相对容易添加功能。

Alternatively, you could try the Microsoft Chart Controls. They are based on a version of Dundas Charts, but are free. They can be used in both ASP.Net and WinForms applications. They do require .Net 3.5 however, so may not be entirely suitable for your use.

或者,您可以尝试Microsoft图表控件。它们基于Dundas Charts的版本,但是是免费的。它们可以在ASP.Net和WinForms应用程序中使用。但它们确实需要.Net 3.5,因此可能不完全适合您的使用。

#2


I'd either go with NPlot or ZedGraph, even though ZG's hasn't evolved recently. The code is cleaner and it's easier to add layers on top of it.

即使ZG最近没有进化,我也会选择NPlot或ZedGraph。代码更清晰,更容易在其上添加图层。

#1


I've used ZedGraph in the past in both WinForms applications and from within ASP.Net. It is quite stable, and as mentioned by m_oLogin, is relatively easy to add functionality to.

我以前在WinForms应用程序和ASP.Net中都使用过ZedGraph。它非常稳定,正如m_oLogin所提到的,相对容易添加功能。

Alternatively, you could try the Microsoft Chart Controls. They are based on a version of Dundas Charts, but are free. They can be used in both ASP.Net and WinForms applications. They do require .Net 3.5 however, so may not be entirely suitable for your use.

或者,您可以尝试Microsoft图表控件。它们基于Dundas Charts的版本,但是是免费的。它们可以在ASP.Net和WinForms应用程序中使用。但它们确实需要.Net 3.5,因此可能不完全适合您的使用。

#2


I'd either go with NPlot or ZedGraph, even though ZG's hasn't evolved recently. The code is cleaner and it's easier to add layers on top of it.

即使ZG最近没有进化,我也会选择NPlot或ZedGraph。代码更清晰,更容易在其上添加图层。