使用 Windows Form 的 .Net 4 中的图表和绘图
我在 Visual Studio 2010 中使用 Windows Form 和 .Net 4。我需要做一些交叉图,并且希望有一些功能,如光标和放大和缩小。
我尝试使用 ZedGraph,但无法将其控制器添加到工具箱。不知道是我操作错误还是不兼容。
您有什么建议吗?
谢谢你!
I am using Windows Form and .Net 4 in Visual Studio 2010. I need to do some cross-plots, and would like to have a few features, as cursor and zoom in and out.
I tried to use ZedGraph, however I was not able to add its controller to the toolbox. I don't know if I have done something wrong or if it is not compatible.
Do you have any suggestions?
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,我假设您使用的是 WinForms(而不是 WPF)。
ZedGraph.dll
(如果需要,还可找到ZedGraph.Web.dll
)ZedGraphControl
是否已出现在Components
下。此控件可以添加到表单的设计布局中。
或者,添加引用后,您可以使用以下代码将图形添加到表单中:
First, I'll assume you are using WinForms (as opposed to WPF).
ZedGraph.dll
(alsoZedGraph.Web.dll
if needed)ZedGraphControl
has appeared underComponents
This control can be added to the design layout of a form.
Alternatively, once you have the reference added, you can add a graph to a form in code with the following: