我如何在asp.net应用程序的应用程序中添加图形

编程入门 行业动态 更新时间:2024-10-14 00:30:17
本文介绍了我如何在asp应用程序的应用程序中添加图形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

i want to create a line graph in asp 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: www.microsoft/en-us/download/details.aspx? id = 14422 [^ ], www.asp/community/control-gallery/Item.aspx? i = 3110 [ ^ ], www.asp/web-forms/videos/net-4/chart/aspnet-4-quick-hit-chart-control [ ^ ].
—SA
One of the most apparent ways is using Microsoft Chart Control for ASP.NET: www.microsoft/en-us/download/details.aspx?id=14422[^], www.asp/community/control-gallery/Item.aspx?i=3110[^], www.asp/web-forms/videos/net-4/chart/aspnet-4-quick-hit-chart-control[^].
—SA

您好, 浏览以下文章: 绘制折线图 [ ^ ] 使用C#为WebForms创建折线图. [ ^ ] 对于连续更新,您可以使用Substitution Control,这将有助于获取更新的数据. 请阅读以下文章以获取更多信息: msdn.microsoft/en-us/library/ms228212.aspx [ ^ ] www.dotnetfunda/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: msdn.microsoft/en-us/library/ms228212.aspx[^] www.dotnetfunda/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应用程序的应用程序中添加图形

本文发布于:2023-11-15 15:57:06,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1595858.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   图形   如何在   net   asp

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!