我需要使用sqldatabase在asp.net中创建MSChart [英] I need to create MSChart in asp.net with sqldatabase
问题描述
HI,
我是MS Chart的新手,但我想要一个带数据库的图表。我在网上发现了很多文章,但我的要求不同。
在我的数据库中,我有UserTAT表,其列名是INTAT,OUTTAT,PASSTAT
,这些列只包含整数值。喜欢这个。
表名: - UserTAT
栏目名称:INTAT OUTTAT PASSTAT
行值:2 4 10
4 6 20
现在我想要x-aisx和列值中的列名在y-asix。请帮我解决这个问题。请检查图像链接以查看我想要的图表类型。帮助。
http://rashtriyasakshartamission.com/chartsample.png
谢谢
I am new in MS Chart but i want to a chart with database. I found many article on net but my requirement is different.
In My database I have table "UserTAT" and its Column Name is "INTAT" , "OUTTAT" , "PASSTAT"
and these column contain only integer value. like this.
Table Name: - UserTAT
Column Name: INTAT OUTTAT PASSTAT
Row Value : 2 4 10
4 6 20
Now i want to column name in x-aisx and column value in y-asix. Please Help me to solve this problem. Please check image link to see chart type i want. Help.
http://rashtriyasakshartamission.com/chartsample.png
Thanks
推荐答案
ASP.NET动态图表控件
ASP.NET MVC图表控件 [ ^ ]
使用ASP.NET网页(Razor)在图表中显示数据 [ ^ ]
新的Microsoft Chart Co Web和Windows窗体应用程序的控件 [ ^ ]
希望它有所帮助。
ASP.NET Dynamic Charting Controls
ASP.NET MVC Chart Control[^]
Displaying Data in a Chart with ASP.NET Web Pages (Razor)[^]
New Microsoft Chart Controls for Web and Windows Forms Applications[^]
hope it helped.
我假设你使用设计视图来建立你的图表
首先,你需要知道有图表并且有系列。
首先将图表对象放在webform上,然后调整大小,然后使用属性F4绘制它。设计图表后,可以构建系列,即数据点。首先,首先添加手动数据点以了解如何构建系列。
当图表看起来不错时,现在可以将数据附加到图表中。 />
现在你转到页面后面的代码,并参考图表,在其中创建一个新系列,然后将该系列添加到图表中。
下面的链接显示如何编写系列代码,并将其附加到图表上。
http://www.mschartcontrol.blogspot.com/ [ ^ ]
I assume your using the design view to build your chart
First, you need to know that there is the chart and there are series.
You place the chart object on your webform first, and size it, and then paint it, using the properties F4. When you have designed your chart, then you can build series, which are the data points. So start with adding manual data points first to learn how to build a series.
When you chart looks good, now you can attach your data to the chart.
So now you go to the code behind page, and make a reference to the chart, in which you create a new series, and then add the series to the chart.
The link below shows how to write code for series, and attach it to the chart.
http://www.mschartcontrol.blogspot.com/[^]
这篇关于我需要使用sqldatabase在asp.net中创建MSChart的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!