推薦:WebClass入門(1)1.WebClass 簡介:WebClass 是一個VB組件,駐留在WEB SERVER 上,并對瀏覽器的輸入做出響應。對用戶來說,一個 IIS 應用程序好象是由一系列的HTML頁面組成。對開發者來說,一個 IIS 應用程
我們工作中經常需要將數據轉化成柱狀圖,餅圖等,以方便直觀的分析數據, 這里給大家介紹一個ASP中制作餅圖、柱狀圖的組件:csDrawGraph,csdgt.zip,因為是組件,所以我們在使用之前需要用REGSVR32.EXE 注冊一下,csDrawGraph,可以在ASP中創建餅圖,柱狀圖以及線圖,其支持的格式有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 錯誤解析事 件 ID 描 述 0100 內存不足。無法分配所需的內存。
新聞熱點
疑難解答