用ASP制作饼图、柱状图等
发布时间:2008-04-28 浏览次数:1153205
用ASP制作饼图、柱状图等
我们工作中经常需要将数据转化成柱状图,饼图等,以方便直观的分析数据, 这里给大家介绍一个ASP中制作饼图、柱状图的组件:csDrawGraph,csdgt.zip,因为是组件,所以我们在使用之前需要用REGSVR32.EXE 注册一下,csDrawGraph,可以在ASP中创建饼图,柱状图以及线图,其支持的格式有GIF, PNG, JPG and BMP.
chartdemo.asp
以下为引用的内容:csDrawGraph DemonstrationThis simple demonstration shows two graphs using the same data. The first is a bar chart: The second is a pie chart. The background colour is set to light grey to show the overall size of the image.
chartimages.asp
以下为引用的内容:
程序很简单,再些不详细说明,下面看一个将数据库中的数据转换到图表的例子:
lines.asp:
以下为引用的内容:
Line graph showing all the results
Links to the other result pages:Bar chart showing all results for any one day.Bar charts showing results for each colour separately.
gif_lines.asp:
以下为引用的内容:
业务咨询
Copyright 2003 - 2023 huinet.cn All Rights Reserved.
慧网公司 版权所有