ASP進(jìn)階:用ASP制作統(tǒng)計(jì)餅圖、柱狀圖等_ASP教程
推薦:WebClass入門(1)1.WebClass 簡介: WebClass 是一個(gè)VB組件,駐留在WEB SERVER 上,并對(duì)瀏覽器的輸入做出響應(yīng)。 對(duì)用戶來說,一個(gè) IIS 應(yīng)用程序好象是由一系列的HTML頁面組成。對(duì)開發(fā)者來說, 一個(gè) IIS 應(yīng)用程
我們工作中經(jīng)常需要將數(shù)據(jù)轉(zhuǎn)化成柱狀圖,餅圖等,以方便直觀的分析數(shù)據(jù), 這里給大家介紹一個(gè)ASP中制作餅圖、柱狀圖的組件:csDrawGraph,csdgt.zip,因?yàn)槭墙M件,所以我們?cè)谑褂弥靶枰肦EGSVR32.EXE 注冊(cè)一下,csDrawGraph,可以在ASP中創(chuàng)建餅圖,柱狀圖以及線圖,其支持的格式有GIF, PNG, JPG and BMP.
chartdemo.asp
| <%@ language=vbscript %> <html> <head> <title>csDrawGraph Demonstration</title> </head> <body bgcolor="#FFFFFF"> <P>This simple demonstration shows two graphs using the same data. The first is a bar chart:</P> <P align="center"><IMG src="chartimages.asp?Type=Bar" width="400" height="300"> </P> <P align="left">The second is a pie chart. The background colour is set to light grey to show the overall size of the image.</P> <P align="center"><IMG src="chartimages.asp?Type=Pie" width="400" height="300"> </P> </body> </html> |
chartimages.asp
|
<%@ language=vbscript %> <% Set Chart = Server.CreateObject("csDrawGraphTrial.Draw")
If Request.QueryString("Type") = "Pie" Then Response.End |
lines.asp:
|
<html> </head> <body> |
gif_lines.asp:
分享:IIS6.0 ASP 錯(cuò)誤解析事 件 ID 描 述 0100 內(nèi)存不足。無法分配所需的內(nèi)存。
- asp FSO 讀寫文件本文件實(shí)現(xiàn)代碼
- asp中isNull、isEmpty和空字符串的區(qū)別
- asp獲取用戶真實(shí)IP地址的方法
- asp連接sqlserver數(shù)據(jù)庫實(shí)現(xiàn)代碼
- asp中正則表達(dá)式過濾html代碼函數(shù)
- asp中g(shù)et post提交表單區(qū)別
- 網(wǎng)頁模板:ASP內(nèi)建對(duì)象Request
- xmlhttp的open方法使用詳解
- ASP的常用的自定義函數(shù)大全
- asp中用for循環(huán)的一個(gè)小技巧
- eWebEditor v3.8 列目錄
- ASP無組件分頁實(shí)現(xiàn)思路及代碼
- 相關(guān)鏈接:
- 教程說明:
ASP教程-ASP進(jìn)階:用ASP制作統(tǒng)計(jì)餅圖、柱狀圖等
。