我如何在asp.net应用程序的应用程序中添加图形 [英] how can i add a graphs in our application in asp.net application

查看:69
本文介绍了我如何在asp.net应用程序的应用程序中添加图形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用c#在asp.net中创建折线图,因此在x轴上将显示时间,在y轴上将显示货币.出价和要价两个值将在图中的红色和蓝色两行显示.该图从数据库中获取值,并每秒更新一次,因此该图应该是连续的.

i want to create a line graph in asp.net using c# so in x-axis it will show the time, in y-axis it show the currency. two values bid and ask are to be shown by the two line red and blue in the graph. the graph takes the values from database and also update itself after every second so that the graph should be continuous. how is it possible?

推荐答案

最明显的方法之一是将Microsoft Chart Control用于ASP.NET:
http://www.microsoft.com/en-us/download/details.aspx? id = 14422 [^ ],
http://www.asp.net/community/control-gallery/Item.aspx? i = 3110 [ ^ ],
http://www.asp.net/web-forms/videos/net-4/chart/aspnet-4-quick-hit-chart-control [
One of the most apparent ways is using Microsoft Chart Control for ASP.NET:
http://www.microsoft.com/en-us/download/details.aspx?id=14422[^],
http://www.asp.net/community/control-gallery/Item.aspx?i=3110[^],
http://www.asp.net/web-forms/videos/net-4/chart/aspnet-4-quick-hit-chart-control[^].

—SA


您好,

浏览以下文章:
绘制折线图 [使用C#为WebForms创建折线图. [ ^ ]

对于连续更新,您可以使用Substitution Control,这将有助于获取更新的数据.
请阅读以下文章以获取更多信息:
http://msdn.microsoft.com/en-us/library/ms228212.aspx [ ^ ]
http://www.dotnetfunda.com/tutorials/controls/substitution.aspx [ ^ ]

您还可以使用XMLHTTPRequest,这将命中数据库以获取更新的数据.您可以使用XMLHTTPRequest 的结果来更新折线图.
Hello,

Go through following article:
drawing line chart[^]
Creating Line Chart For WebForms Using C#.[^]

For continuous update you can use Substitution Control, which will help in getting the updated data.
Please go through following article for more information:
http://msdn.microsoft.com/en-us/library/ms228212.aspx[^]
http://www.dotnetfunda.com/tutorials/controls/substitution.aspx[^]

You can also use XMLHTTPRequest, which will hit the database to get the updated data. You can the use the result of XMLHTTPRequest to update the line graph.


这篇关于我如何在asp.net应用程序的应用程序中添加图形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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