微軟最近釋出了最新的ASP.NET伺服器端控件 <asp:chart />, 在ASP.NET 3.5 中可以使用這個控件在浏覽器端顯示炫目的圖表。
- Download the free Microsoft Chart Controls
- Download the VS 2008 Tool Support for the Chart Controls
- Download the Microsoft Chart Controls Samples
- Download the Microsoft Chart Controls Documentation
- Visit the Microsoft Chart Control Forum
一旦安裝了<asp:chart/>控件,就會在Toolbar的"Data"欄出現,也可以在ASP.NET頁面中很容易的使用代碼定義:

<asp:chart/>支援豐富的圖表形式,including pie, area, range, point, circular, accumulation, data distribution, ajax interactive, doughnut, and more. 你可以在面闆裡直接輸入資料或者使用資料綁定動态的顯示。在運作的時候,這個控件在伺服器端生成一個圖檔(比如一個PNG檔案),用戶端使用一個<img/> HTML元素來引用這個圖檔。這個伺服器控件提供緩存這個圖檔的功能或者長期作為一個檔案儲存的功能,它在任何标準的ASP.NET頁面都可以工作,不需要特殊軟體的支援。
想要更好的了解這個控件,我推薦
downloading the Microsoft Chart Controls Sample Project.
下面是幾個抓圖:
除了上面的一些示範,你可以下載下傳
Microsoft Chart Control Documentation或者去
Chart Controls Forum讨論
來源與Scott的部落格:
http://weblogs.asp.net/scottgu/archive/2008/11/24/new-asp-net-charting-control-lt-asp-chart-runat-quot-server-quot-gt.aspx