在图表上需要任何帮助 [英] Need any help on Charts

查看:59
本文介绍了在图表上需要任何帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在获取图表方面遇到很多麻烦
从sql表显示数据.这是我使用的代码:

Hi,

I''m having alot of trouble getting my chart
to display data form a sql table. This is the code I used:

clsConnection sqlconn = new clsConnection();
                SqlCommand sqlcomm = new SqlCommand();

                sqlcomm.Connection = sqlconn.connection;
                sqlcomm.CommandType = CommandType.StoredProcedure;
                sqlcomm.CommandText = "ElectricityData.LP_Chart_EDIS_Status";
                SqlDataReader sqlread = sqlcomm.ExecuteReader(CommandBehavior.CloseConnection);

                chtLoadProfile.DataBindTable(sqlread, "DateTime");

                sqlcomm.Close();
                sqlread.Close();


我基本上只想要
的一列"DateTime" 图表的底部和左侧的其他值"列.

目前,它显示了一些数据,但也仅是
在图表中显示一个条形图

请提供任何帮助...


All I basicly want is the one column "DateTime" at
the bottum of chart and other colum "Value" at the left.

At the moment it shows some of the data, but also only
shows one bar in the chart

Please any help would be appriciated...

推荐答案

您想让我们说什么?您知道您正在调用Clone而不是在sqlcomm上关闭吗?我怀疑这是您的问题,但它对我跳了出来.

您所说的某些数据"是什么意思?您是否在调试器中查看过并验证了那里的数据何时未显示?这是什么样的图表?您如何按照自己的方式进行配置?您需要说明您做了什么,期望什么,期望为什么以及看到了什么.
What do you want us to say ? You do realise you''re calling Clone and not Close on sqlcomm ? I doubt that is your issue, but it jumps out at me.

What do you mean by ''some of the data'' ? Have you looked in the debugger, and verified that there''s data there that is not showing when it should ? What sort of chart is this ? What have you done to configure it in the way you want it to be ? You need to explain what you''ve done, what you expect, and why you expect it, and what you see.


这篇关于在图表上需要任何帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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