天天看点

微软发布新的ASP.NET图表控件

微软最近发布了最新的ASP.NET服务器端控件 <asp:chart />, 在ASP.NET 3.5 中可以使用这个控件在浏览器端显示炫目的图表。

<a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=130f7986-bf49-4fe5-9ca8-910ae6ea442c&amp;DisplayLang=en">Download the free Microsoft Chart Controls</a>

<a href="http://www.microsoft.com/downloads/details.aspx?familyid=1D69CE13-E1E5-4315-825C-F14D33A303E9&amp;displaylang=en">Download the VS 2008 Tool Support for the Chart Controls</a>

<a href="http://code.msdn.microsoft.com/mschart/Release/ProjectReleases.aspx?ReleaseId=1591">Download the Microsoft Chart Controls Samples</a>

<a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=EE8F6F35-B087-4324-9DBA-6DD5E844FD9F&amp;displaylang=en">Download the Microsoft Chart Controls Documentation</a>

<a href="http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/threads/">Visit the Microsoft Chart Control Forum</a>

一旦安装了&lt;asp:chart/&gt;控件,就会在Toolbar的"Data"栏出现,也可以在ASP.NET页面中很容易的使用代码定义:

微软发布新的ASP.NET图表控件

&lt;asp:chart/&gt;支持丰富的图表形式,including pie, area, range, point, circular, accumulation, data distribution, ajax interactive, doughnut, and more. 你可以在面板里直接输入数据或者使用数据绑定动态的显示。在运行的时候,这个控件在服务器端生成一个图片(比如一个PNG文件),客户端使用一个&lt;img/&gt; HTML元素来引用这个图片。这个服务器控件提供缓存这个图片的功能或者长期作为一个文件保存的功能,它在任何标准的ASP.NET页面都可以工作,不需要特殊软件的支持。

下面是几个抓图:

微软发布新的ASP.NET图表控件
微软发布新的ASP.NET图表控件
微软发布新的ASP.NET图表控件

继续阅读