我怎样才能在WindowsForms上显示图形? [英] How could i display a Graph on WindowsForms?

查看:118
本文介绍了我怎样才能在WindowsForms上显示图形?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是c#的初学者,所以你可以帮助我。起初,我通过一个COM端口从RS422到USB转换器获得一些数据,现在我想在屏幕上显示正确的COM-Port图形。
我的问题:
我如何在WindowsForms上显示图表?



对不起,我的英语。



M.Spitz

解决方案

图表。您可以使用它绘制不同类型的图表。



以下是教程



这是

这是一篇不错的文章,内容是example 来自StackOverflow。





基本上这些步骤是:
$ b



  1. 为要绘制的每一行创建一个系列。


编辑:3.查看TaW评论

编辑2):在这里你可以找到所有不同的图表类型



这里如何使用它们。

当您点击系列图表的属性窗口时,您会看到Series-Properties。在那里你还可以找到属性: ChartType ,如果你愿意,可以用鼠标点击。


i am a beginner at c#, so you could help me. At first, i get some data from a RS422 to USB converter over a COM Port and now i want to display over the right COM-Port the graph on the Screen. My Question: How could i display the Graph on my WindowsForms ?

Sorry for my english.

M.Spitz

解决方案

There is a nice tool un Windows Forms called Chart. You can draw graphs of different kind with it.

Here is a Tutorial

Here is a Video that shows how to use it.

Here is a nice post with an example from StackOverflow.

Have fun exploring it.

Basically the steps are:

  1. Create a Series for each line you want to draw.

  2. Add the values from your array or list to the series.

EDIT: 3. See comment by TaW

EDIT 2) : here you find all different chart types that can be displayed.

and here how to use them.

When you click in the property window of the chart on Series you get the Series-Properties. There you can also find the property: ChartType and set it by a mouse click if you want to.

这篇关于我怎样才能在WindowsForms上显示图形?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆