C#中的图形 [英] Graph in C#

查看:138
本文介绍了C#中的图形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好
我有一个在数据库访问中保存了一些数据的项目,我想将这些数据绘制在graph(条形图)中.我尝试了许多代码来绘制图表并表示其上的数据,但是它不起作用.
请帮助我绘制条形图并从访问中绘制数据.

Hello
I have project that saved some data in database access and I want to draw these data in graph(Bar chart). I try many code to draw chart and represent the data on it but it doesn''t work.
Please can you help me to draw bar chart and plot tha data from access on it.

推荐答案

您的问题无法回答,因为我们无法理解您的代码外观就像读茶叶一样.尝试使用适用于.Net的免费Microsoft图表工具.

http://www.microsoft.com/downloads/details.aspx?FamilyId = 130F7986-BF49-4FE5-9CA8-910AE6EA442C& displaylang = zh_CN [
Your question is unanswerable because we can''t divine what you code looks like by reading tea leaves. Try using the free Microsoft charting stuff for .Net.

http://www.microsoft.com/downloads/details.aspx?FamilyId=130F7986-BF49-4FE5-9CA8-910AE6EA442C&displaylang=en[^]


据我记得,标准" C#工具箱没有图表控件,因此您要添加到应用程序中的控件必须是附加控件.因此,我们仍然不知道您使用的是什么图表.

请牢记这一点,我唯一可以建议的是以下内容.

当您将图表添加到表单中时,将在MyForm.designer.cs文件中添加一条线,其外观类似于
As far as I remember the ''standard'' C# toolbox doesn''t have a chart control, so the one you are adding to your app must be an addition. Therefore we still do not know what chart you are using.

Bearing this in mind the only thing that I can suggest is the following.

When you add the chart to your form a line will be added to the MyForm.designer.cs file that will look something like
SomeTypeOfChartClass whateverYouNamedYourChart;



如果您复制带下划线的粗体位(从文件而不是从此处)并将其粘贴到Google/Bing的搜索框中,我相信您会找到很多有用的信息.

从您到目前为止的要求看来,您似乎已经有点儿不了解了,等待被这里的成员spoon之以鼻并不会像您自己进行研究那样帮上大忙.

祝你好运! :)



If you copy the bold underlined bit (from your file, not from here) and paste it into the search box on Google/Bing, I''m sure that you will find lots of useful information.

From what you have asked so far, it would seem that you might be a little out of your depth, waiting to be spoonfed by the members here will not help you as much as doing your own research will.

Good luck! :)


我在c#中使用工具箱中的图表,我想从访问中读取数据并以条形图表示这些数据.我编写的代码是
字符串文本=从阅读中选择COUNT(ID)";
我希望结果显示在图表中.
I use chart from toolbox in c# and I want to read data from access and represent these data in bar chart.I write code which is
String text= "SELECT COUNT(ID) FROM Reading";
I want the reslut to display in chart.


这篇关于C#中的图形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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