绘图图 [英] Drawing Graphs
问题描述
大家好,
任何人都可以建议在网页上显示交互式图形的最佳方法是什么.我想要一个线性图和一个控制该图上垂直线的滑块.因此,这个想法是,每当滑块移动时,垂直线便沿着图形移动,并且无论垂直线与线性图相交的位置,都应该有一个标签以文本形式显示x值和y值.
通过从文件中读取x和y坐标来绘制线性图.
我可以使用纯ASP.NET吗?还是因为它是交互式图形显示,所以使用Silverlight会更好吗?也许,已经有现成的API可以执行这种功能了吗?
我非常感谢任何建议.
预先谢谢您.
Hi all,
Can anyone advise what is the best way to display interactive graphs on a web page. I would like to have a linear graph and a slider that controls a vertical line on the graph. So, the idea is whenever the slider is moved the vertical line moves along the graph and there should be a label showing the x-value and y-value in text form, wherever the vertical line intersects with the linear graph.
The linear graph is drawn by reading x and y co-ordinates from a file.
Can I use plain ASP.NET? Or would it be better to use Silverlight since it is interactive graphical display? Perhaps, there is an off-the-shelf API that does this funtionality already?
I would very much appreciate any advice.
Thank you in advance
推荐答案
在asp.net 4.0中有一些内置的Chart控件. 斯科特·格思里 [使用Ajax增强图表 [ silverlight工具包 [图表控件 [ ^ ]
There are some built in Chart controls in asp.net 4.0. Scott Guthrie[^] has a blog post with lots of info on getting started.
They aren''t really "interactive" out of the box though. You will have to get you hands a bit dirty with some javascript/ajax to manipulate them. 4GuysFromRolla have an article on Enhancing Charts With Ajax[^] (also linked from Scott''s blog) which should get you started.
If you''d rather go down the silverlight route, take a look at the silverlight toolkit[^] which includes some charting controls[^]
查看它
在ASP.NET图表控制中的外观 [
Look into it
A look inside the ASP.NET Charting conlrol[^]
Good luck.
这篇关于绘图图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!