有时间大家也学学:http://lydsgw.com/fyw/  教程)
此程序只能用IE浏览器浏览,根据下面的源程序,我们只是略做修改结合数据库就能实际应用到一些系统中。

示例:1、直方图    2、饼图   3、曲线图


一、统计图--直方图

ASP+VML制作统计图的源程序<%
ASP+VML制作统计图的源程序
'┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
ASP+VML制作统计图的源程序'
┃                               ┃
ASP+VML制作统计图的源程序'
┃ 摘 要: 统计图--直方图                       ┃
ASP+VML制作统计图的源程序'
┃ 作 者: 翁云兵                        ┃
ASP+VML制作统计图的源程序'
┃ 创建日期:2004年11月5日                    ┃
ASP+VML制作统计图的源程序'
┃ 完成日期:2004年11月5日                    ┃
ASP+VML制作统计图的源程序'
┃                               ┃
ASP+VML制作统计图的源程序'
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
ASP+VML制作统计图的源程序'
参数含义(数组,横坐标,纵坐标,图表的宽度,图表的高度,图表标题,X轴单位,Y轴单位)
ASP+VML制作统计图的源程序
function table1(stat_array,table_left,table_top,all_width,all_height,table_title,X_unit,Y_unit)
ASP+VML制作统计图的源程序
dim bg_color(10)
ASP+VML制作统计图的源程序bg_color(
1)="#ff1919"
ASP+VML制作统计图的源程序
bg_color(2)="#ffff19"
ASP+VML制作统计图的源程序
bg_color(3)="#1919ff"
ASP+VML制作统计图的源程序
bg_color(4)="#19ff19"
ASP+VML制作统计图的源程序
bg_color(5)="#fc0"
ASP+VML制作统计图的源程序
bg_color(6)="#3cc"
ASP+VML制作统计图的源程序
bg_color(7)="#ff19ff"
ASP+VML制作统计图的源程序
bg_color(8)="#993300"
ASP+VML制作统计图的源程序
bg_color(9)="#f60"
ASP+VML制作统计图的源程序
bg_color(10)="#ff8c19"
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
if X_unit<>"" then
ASP+VML制作统计图的源程序X_unit
=X_unit
ASP+VML制作统计图的源程序
end if
ASP+VML制作统计图的源程序
if Y_unit<>"" then
ASP+VML制作统计图的源程序Y_unit
=Y_unit
ASP+VML制作统计图的源程序
end if
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序num 
=ubound(stat_array,1)
ASP+VML制作统计图的源程序item_width 
= cint(20000/num+0.5)
ASP+VML制作统计图的源程序begin_x
= cint((item_width-1200)/2)+2200
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序value_Max
=0
ASP+VML制作统计图的源程序
for i=1 to num
ASP+VML制作统计图的源程序
if value_Max<stat_array(i,1then value_Max=stat_array(i,1)
ASP+VML制作统计图的源程序
next
ASP+VML制作统计图的源程序value_Max 
= cint(value_Max)
ASP+VML制作统计图的源程序value_Max_str 
=cstr(value_Max) 
ASP+VML制作统计图的源程序
if value_Max>9 then
ASP+VML制作统计图的源程序temp
=mid(value_Max_str,2,1)
ASP+VML制作统计图的源程序
if temp>4 then 
ASP+VML制作统计图的源程序temp2
=(int(value_Max/(10^(len(value_Max_str)-1)))+1)*10^(len(value_Max_str)-1)
ASP+VML制作统计图的源程序
else
ASP+VML制作统计图的源程序temp2
=(int(value_Max/(10^(len(value_Max_str)-1)))+0.5)*10^(len(value_Max_str)-1)
ASP+VML制作统计图的源程序
end if
ASP+VML制作统计图的源程序
else
ASP+VML制作统计图的源程序
if value_Max>4 then temp2=10 else temp2=5
ASP+VML制作统计图的源程序
end if
ASP+VML制作统计图的源程序item_hight 
= temp2/5
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序response.Write 
"<v:shapetype id='Box' coordsize='21600,21600' o:spt='16' adj='5400'></v:shapetype>"
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
response.Write "<v:rect id='background' style='position:absolute;left:"&table_left&"px;top:"&table_top&"px;WIDTH:"&all_width&"px;HEIGHT:"&all_height&"px;' fillcolor='#EFEFEF' strokecolor='gray'>"
ASP+VML制作统计图的源程序
response.Write " <v:shadow on='t' type='single' color='silver' offset='4pt,4pt'/>"
ASP+VML制作统计图的源程序
response.Write "</v:rect>"
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
response.Write "<v:group ID='table' style='position:absolute;left:"&table_left&"px;top:"&table_top&"px;WIDTH:"&all_width&"px;HEIGHT:"&all_height&"px;' coordsize = '23500,12700'>" 
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序response.Write 
" <v:Rect style='position:relative;left:1500;top:200;width:20000;height:800'filled='false' stroked='false'>"
ASP+VML制作统计图的源程序
response.Write " <v:TextBox inset='0pt,0pt,0pt,0pt'>"
ASP+VML制作统计图的源程序
response.Write " <table width='100%' border='0' align='center' cellspacing='0'>"
ASP+VML制作统计图的源程序
response.Write " <tr>"
ASP+VML制作统计图的源程序
response.Write " <td align='center' valign='middle'><div style='font-size:15pt; font-family:黑体;'><B>"&table_title&"</B></div></td>"
ASP+VML制作统计图的源程序
response.Write " </tr>"
ASP+VML制作统计图的源程序
response.Write " </table>"
ASP+VML制作统计图的源程序
response.Write " </v:TextBox>"
ASP+VML制作统计图的源程序
response.Write " </v:Rect> "
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
response.Write " <v:rect id='back' style='position:relative;left:1700;top:1200;width:20500; height:10500;' fillcolor='#9cf' strokecolor='#DFDFDF'>"
ASP+VML制作统计图的源程序
response.Write " <v:fill rotate='t' angle='-45' focus='100%' type='gradient'/>"
ASP+VML制作统计图的源程序
response.Write " </v:rect>"
ASP+VML制作统计图的源程序
response.Write " <v:line ID='X' from='1700,11700' to='22700,11700' style='z-index:2' strokecolor='#000000' strokeWeight=1pt><v:stroke EndArrow='Classic'/></v:line>"
ASP+VML制作统计图的源程序
response.Write " <v:line ID='Y' from='1700,900' to='1700,11700' style='z-index:2' strokecolor='#000000' strokeWeight=1pt><v:stroke StartArrow='Classic'/></v:line>"
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
response.Write " <v:Rect style='position:relative;left:100;top:700;width:1500;height:500' filled='false' stroked='false'>"
ASP+VML制作统计图的源程序
response.Write " <v:TextBox inset='0pt,0pt,0pt,0pt' style='font-size:9pt;'><div align='right'>"&Y_unit&"</div></v:TextBox>"
ASP+VML制作统计图的源程序
response.Write " </v:Rect> " 
ASP+VML制作统计图的源程序response.Write 
" <v:Rect style='position:relative;left:22200;top:11700;width:2000;height:500' filled='false' stroked='false'>"
ASP+VML制作统计图的源程序
response.Write " <v:TextBox inset='0pt,0pt,0pt,0pt' style='font-size:9pt;'><div align='left'>"&X_unit&"</div></v:TextBox>"
ASP+VML制作统计图的源程序
response.Write " </v:Rect> " 
ASP+VML制作统计图的源程序
for i=0 to 4
ASP+VML制作统计图的源程序response.Write 
" <v:line from='1200,"&i*2000+1700&"' to='1700,"&i*2000+1700&"' style='z-index:2' strokecolor='#000000'></v:line>"
ASP+VML制作统计图的源程序
response.Write " <v:line from='1700,"&i*2000+1700&"' to='2200,"&i*2000+1200&"' style='z-index:2' strokecolor='#0099FF'></v:line>"
ASP+VML制作统计图的源程序
response.Write " <v:line from='2200,"&i*2000+1200&"' to='22200,"&i*2000+1200&"' style='z-index:2' strokecolor='#0099FF'></v:line>"
ASP+VML制作统计图的源程序
response.Write " <v:line from='2200,"&i*2000+2200&"' to='22200,"&i*2000+2200&"' style='z-index:2' strokecolor='#0099FF'>"
ASP+VML制作统计图的源程序
response.Write " <v:stroke dashstyle='Dot'/>"
ASP+VML制作统计图的源程序
response.Write " </v:line>"
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
response.Write " <v:Rect style='position:relative;left:100;top:"&i*2000+1250&";width:1500;height:500' filled='false' stroked='false'>"
ASP+VML制作统计图的源程序
response.Write " <v:TextBox inset='0pt,0pt,0pt,0pt' style='font-size:9pt;'><div align='right'>"&item_hight*(5-i)&"</div></v:TextBox>"
ASP+VML制作统计图的源程序
response.Write " </v:Rect> " 
ASP+VML制作统计图的源程序
next
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序response.Write 
" <v:line from='2200,11200' to='22200,11200' style='z-index:2' strokecolor='#0099FF'></v:line>"
ASP+VML制作统计图的源程序
response.Write " <v:line from='2200,1200' to='2200,11200' style='z-index:2' strokecolor='#0099FF'></v:line>"
ASP+VML制作统计图的源程序
response.Write " <v:line from='1700,11700' to='2200,11200' style='z-index:2' strokecolor='#0099FF'></v:line>"
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
for i=1 to num
ASP+VML制作统计图的源程序this_hight 
= cint(stat_array(i,1)/(5*item_hight)*10000+420)
ASP+VML制作统计图的源程序response.Write 
" <v:shape id='Box"&i&"' type='#Box' fillcolor='"&bg_color(i)&"' strokecolor='#5f5f5f' style='position:relative; left:"&(i-1)*item_width+begin_x&";top:"&cint(10000-this_hight+1620)&";width:1200;height:"&this_hight&";z-index:10'>"
ASP+VML制作统计图的源程序
response.Write " <v:fill o:opacity2='52429f' rotate='t' angle='-45' focus='100%' type='gradient'/>"
ASP+VML制作统计图的源程序
response.Write " </v:shape>"
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
response.Write " <v:Rect style='position:relative;left:"&(i-1)*item_width+2200&";top:"&cint(10000-this_hight+1150)&";width:"&item_width&";height:500' filled='false' stroked='false'>"
ASP+VML制作统计图的源程序
response.Write " <v:TextBox inset='0pt,0pt,0pt,0pt' style='font-size:9pt;'><div align='center'>"&stat_array(i,1)&"</div></v:TextBox>"
ASP+VML制作统计图的源程序
response.Write " </v:Rect> " 
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序response.Write 
" <v:Rect style='position:relative;left:"&(i-1)*item_width+2200&";top:11850;width:"&item_width&";height:500' filled='false' stroked='false'>"
ASP+VML制作统计图的源程序
response.Write " <v:TextBox inset='0pt,0pt,0pt,0pt' style='font-size:9pt;'><div align='center'>"&stat_array(i,2)&"</div></v:TextBox>"
ASP+VML制作统计图的源程序
response.Write " </v:Rect> " 
ASP+VML制作统计图的源程序
next
ASP+VML制作统计图的源程序response.Write 
"</v:group>"
ASP+VML制作统计图的源程序
end function
ASP+VML制作统计图的源程序%
>
ASP+VML制作统计图的源程序
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
ASP+VML制作统计图的源程序
<head>
ASP+VML制作统计图的源程序
<title></title>
ASP+VML制作统计图的源程序
<STYLE>
ASP+VML制作统计图的源程序v
\:* { Behavior: url(#default#VML) }
ASP+VML制作统计图的源程序o
\:* { behavior: url(#default#VML) }
ASP+VML制作统计图的源程序
</STYLE>
ASP+VML制作统计图的源程序
</head>
ASP+VML制作统计图的源程序
<body>
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序
<%
ASP+VML制作统计图的源程序
dim total(10,2)
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序total(
1,1)=200
ASP+VML制作统计图的源程序total(
2,1)=800
ASP+VML制作统计图的源程序total(
3,1)=1004
ASP+VML制作统计图的源程序total(
4,1)=600
ASP+VML制作统计图的源程序total(
5,1)=1222
ASP+VML制作统计图的源程序total(
6,1)=2100
ASP+VML制作统计图的源程序total(
7,1)=80
ASP+VML制作统计图的源程序total(
8,1)=1002
ASP+VML制作统计图的源程序total(
9,1)=145
ASP+VML制作统计图的源程序total(
10,1)=1040
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序total(
1,2)="项目1"
ASP+VML制作统计图的源程序
total(2,2)="项目2"
ASP+VML制作统计图的源程序
total(3,2)="项目3"
ASP+VML制作统计图的源程序
total(4,2)="项目4"
ASP+VML制作统计图的源程序
total(5,2)="项目5"
ASP+VML制作统计图的源程序
total(6,2)="项目6"
ASP+VML制作统计图的源程序
total(7,2)="项目7"
ASP+VML制作统计图的源程序
total(8,2)="项目8"
ASP+VML制作统计图的源程序
total(9,2)="项目9"
ASP+VML制作统计图的源程序
total(10,2)="项目10"
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
call table1(total,240,200,700,400,"柱 状 统 计 图","","")
ASP+VML制作统计图的源程序%
>
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序
</body>
ASP+VML制作统计图的源程序
</html>

二、统计图--饼图
ASP+VML制作统计图的源程序<%
ASP+VML制作统计图的源程序
'┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
ASP+VML制作统计图的源程序'
┃                               ┃
ASP+VML制作统计图的源程序'
┃ 摘 要: 统计图--饼图                        ┃
ASP+VML制作统计图的源程序'
┃ 作 者: 翁云兵                        ┃
ASP+VML制作统计图的源程序'
┃ 创建日期:2004年11月23日                  ┃
ASP+VML制作统计图的源程序'
┃ 完成日期:2004年11月28日                  ┃
ASP+VML制作统计图的源程序'
┃                               ┃
ASP+VML制作统计图的源程序'
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
ASP+VML制作统计图的源程序'
参数含义(数组,横坐标,纵坐标,图表的宽度,图表的高度,图表标题,单位)
ASP+VML制作统计图的源程序
function table2(stat_array,table_left,table_top,all_width,all_height,table_title,unit)
ASP+VML制作统计图的源程序
dim bg_color(10),pie(10)
ASP+VML制作统计图的源程序bg_color(
1)="#ff1919"
ASP+VML制作统计图的源程序
bg_color(2)="#ffff19"
ASP+VML制作统计图的源程序
bg_color(3)="#1919ff"
ASP+VML制作统计图的源程序
bg_color(4)="#19ff19"
ASP+VML制作统计图的源程序
bg_color(5)="#fc0"
ASP+VML制作统计图的源程序
bg_color(6)="#3cc"
ASP+VML制作统计图的源程序
bg_color(7)="#ff19ff"
ASP+VML制作统计图的源程序
bg_color(8)="#993300"
ASP+VML制作统计图的源程序
bg_color(9)="#f60"
ASP+VML制作统计图的源程序
bg_color(10)="#ff8c19"
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
num =ubound(stat_array,1)
ASP+VML制作统计图的源程序allvalues
=0
ASP+VML制作统计图的源程序
for i=1 to num
ASP+VML制作统计图的源程序allvalues 
= allvalues+stat_array(i,1)
ASP+VML制作统计图的源程序
next
ASP+VML制作统计图的源程序k
=0
ASP+VML制作统计图的源程序
for i=1 to num-1
ASP+VML制作统计图的源程序pie(i)
=formatnumber(stat_array(i,1)/allvalues,4,-1)
ASP+VML制作统计图的源程序k
=k+pie(i)
ASP+VML制作统计图的源程序
next
ASP+VML制作统计图的源程序pie(num)
=formatnumber((1-k),4,-1)
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序response.Write 
"<v:shapetype id='Cake_3D' coordsize='21600,21600' o:spt='95' adj='11796480,5400' path='al10800,10800@0@0@2@14,10800,10800,10800,10800@3@15xe'></v:shapetype>"
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
response.Write "<v:shapetype id='3dtxt' coordsize='21600,21600' o:spt='136' adj='10800' path='m@7,l@8,m@5,21600l@6,21600e'> "
ASP+VML制作统计图的源程序
response.Write " <v:path textpathok='t' o:connecttype='custom' o:connectlocs='@9,0;@10,10800;@11,21600;@12,10800' o:connectangles='270,180,90,0'/>"
ASP+VML制作统计图的源程序
response.Write " <v:textpath on='t' fitshape='t'/>"
ASP+VML制作统计图的源程序
response.Write " <o:lock v:ext='edit' text='t' shapetype='t'/>"
ASP+VML制作统计图的源程序
response.Write "</v:shapetype>"
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
response.Write "<v:rect id='background' style='position:absolute;left:"&table_left&"px;top:"&table_top&"px;WIDTH:"&all_width&"px;HEIGHT:"&all_height&"px;' fillcolor='#EFEFEF' strokecolor='gray'>"
ASP+VML制作统计图的源程序
response.Write " <v:shadow on='t' type='single' color='silver' offset='4pt,4pt'/>"
ASP+VML制作统计图的源程序
response.Write "</v:rect>"
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
response.Write "<v:group ID='table' style='position:absolute;left:"&table_left&"px;top:"&table_top&"px;WIDTH:"&all_width&"px;HEIGHT:"&all_height&"px;' coordsize = '21000,11500'>" 
ASP+VML制作统计图的源程序response.Write 
" <v:Rect style='position:relative;left:500;top:200;width:20000;height:800'filled='false' stroked='false'>"
ASP+VML制作统计图的源程序
response.Write " <v:TextBox inset='0pt,0pt,0pt,0pt'>"
ASP+VML制作统计图的源程序
response.Write " <table width='100%' border='0' align='center' cellspacing='0'>"
ASP+VML制作统计图的源程序
response.Write " <tr>"
ASP+VML制作统计图的源程序
response.Write " <td align='center' valign='middle'><div style='font-size:15pt; font-family:黑体;'><B>"&table_title&"</B></div></td>"
ASP+VML制作统计图的源程序
response.Write " </tr>"
ASP+VML制作统计图的源程序
response.Write " </table>"
ASP+VML制作统计图的源程序
response.Write " </v:TextBox>"
ASP+VML制作统计图的源程序
response.Write " </v:Rect> "
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
response.Write " <v:rect id='back' style='position:relative;left:500;top:1000;width:20000; height:10000;' onmouseover='movereset(1)' onmouseout='movereset(0)' fillcolor='#9cf' strokecolor='#888888'>"
ASP+VML制作统计图的源程序
response.Write " <v:fill rotate='t' angle='-45' focus='100%' type='gradient'/>"
ASP+VML制作统计图的源程序
response.Write " </v:rect>"
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
response.Write " <v:rect id='back' style='position:relative;left:15000;top:1400;width:5000; height:"&((num+1)*9000/11+200)&";' fillcolor='#9cf' stroked='t' strokecolor='#0099ff'>"
ASP+VML制作统计图的源程序
response.Write " <v:fill rotate='t' angle='-175' focus='100%' type='gradient'/>"
ASP+VML制作统计图的源程序
response.Write " <v:shadow on='t' type='single' color='silver' offset='3pt,3pt'/>"
ASP+VML制作统计图的源程序
response.Write " </v:rect>"
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
response.Write " <v:Rect style='position:relative;left:15500;top:1500;width:4000;height:700' fillcolor='#000000' stroked='f' strokecolor='#000000'>"
ASP+VML制作统计图的源程序
response.Write " <v:TextBox inset='8pt,4pt,3pt,3pt' style='font-size:11pt;'><div align='left'><font color='#ffffff'><B>总数:"&allvalues&unit&"</B></font></div></v:TextBox>"
ASP+VML制作统计图的源程序
response.Write " </v:Rect> " 
ASP+VML制作统计图的源程序
for i=1 to num
ASP+VML制作统计图的源程序response.Write 
" <v:Rect id='rec"&i&"' style='position:relative;left:15400;top:"&i*9000/11+1450&";width:4300;height:800;display:none' fillcolor='#efefef' strokecolor='"&bg_color(i)&"'>"
ASP+VML制作统计图的源程序
response.Write " <v:fill opacity='.6' color2='fill darken(118)' o:opacity2='.6' rotate='t' method='linear sigma' focus='100%' type='gradient'/>"
ASP+VML制作统计图的源程序
response.Write " </v:Rect>"
ASP+VML制作统计图的源程序
response.Write " <v:Rect style='position:relative;left:15500;top:"&i*9000/11+1500&";width:600;height:700' fillcolor='"&bg_color(i)&"' stroked='f'/>"
ASP+VML制作统计图的源程序
response.Write " <v:Rect style='position:relative;left:16300;top:"&i*9000/11+1500&";width:3400;height:700' filled='f' stroked='f'>"
ASP+VML制作统计图的源程序
response.Write " <v:TextBox inset='0pt,5pt,0pt,0pt' style='font-size:9pt;'><div align='left'>"&stat_array(i,2)&":"&stat_array(i,1)&unit&"</div></v:TextBox>"
ASP+VML制作统计图的源程序
response.Write " </v:Rect> " 
ASP+VML制作统计图的源程序
next
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序response.Write 
"</v:group>"
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
k1=180
ASP+VML制作统计图的源程序k4
=10
ASP+VML制作统计图的源程序
for i=1 to num
ASP+VML制作统计图的源程序k2
=360*pie(i)/2
ASP+VML制作统计图的源程序k3
=k1+k2
ASP+VML制作统计图的源程序
if k3>=360 then
ASP+VML制作统计图的源程序k3
=k3-360
ASP+VML制作统计图的源程序
end if
ASP+VML制作统计图的源程序kkk
=(-11796480*pie(i)+5898240)
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序k5
=3.1414926*2*(180-(k3-180))/360
ASP+VML制作统计图的源程序R
=all_height/2
ASP+VML制作统计图的源程序txt_x 
= table_left+all_height/8-30+R+R*sin(k5)*0.7
ASP+VML制作统计图的源程序txt_y 
= table_top+all_height/14-39+R+R*cos(k5)*0.7*0.5
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序titlestr 
= "&nbsp;名&nbsp;&nbsp;称:"&stat_array(i,2)&"&#13;&#10;&nbsp;数&nbsp;&nbsp;值:"&stat_array(i,1)&unit&"&#13;&#10;&nbsp;所占比例:"&pie(i)*100&"%&nbsp;&nbsp;"
ASP+VML制作统计图的源程序
response.Write " <div style='cursor:hand;'>"
ASP+VML制作统计图的源程序
response.Write " <v:shape id='cake"&i&"' type='#Cake_3D' title='"&titlestr&"'"
ASP+VML制作统计图的源程序
response.Write " style='position:absolute;left:"&table_left+all_height/8&"px;top:"&table_top+all_height/14&"px;WIDTH:"&all_height&"px;HEIGHT:"&all_height&"px;rotation:"&k3&";z-index:"&k4&"'"
ASP+VML制作统计图的源程序
response.Write " adj='"&kkk&",0' fillcolor='"&bg_color(i)&"' onmouseover='moveup(cake"&i&","&(table_top+all_height/14)&",txt"&i&",rec"&i&")'; onmouseout='movedown(cake"&i&","&(table_top+all_height/14)&",txt"&i&",rec"&i&");'>"
ASP+VML制作统计图的源程序
response.Write " <v:fill opacity='60293f' color2='fill lighten(120)' o:opacity2='60293f' rotate='t' angle='-135' method='linear sigma' focus='100%' type='gradient'/>"
ASP+VML制作统计图的源程序
response.Write " <o:extrusion v:ext='view' on='t'backdepth='25' rotationangle='60' viewpoint='0,0'viewpointorigin='0,0' skewamt='0' lightposition='-50000,-50000' lightposition2='50000'/>"
ASP+VML制作统计图的源程序
response.Write " </v:shape>"
ASP+VML制作统计图的源程序
response.Write " <v:shape id='txt"&i&"' type='#3dtxt' style='position:absolute;left:"&txt_x&"px;top:"&txt_y&"px;z-index:20;display:none;width:50; height:18;' fillcolor='#ffffff'"
ASP+VML制作统计图的源程序
response.Write " onmouseover='ontxt(cake"&i&","&(table_top+all_height/14)&",txt"&i&",rec"&i&")'>"
ASP+VML制作统计图的源程序
response.Write " <v:fill opacity='60293f' color2='fill lighten(120)' o:opacity2='60293f' rotate='t' angle='-135' method='linear sigma' focus='100%' type='gradient'/>"
ASP+VML制作统计图的源程序
response.Write " <v:textpath style='font-family:'宋体';v-text-kern:t' trim='t' fitpath='t' string='"&pie(i)*100&"%'/>"
ASP+VML制作统计图的源程序
response.Write " <o:extrusion v:ext='view' backdepth='8pt' on='t' lightposition='0,0' lightposition2='0,0'/>"
ASP+VML制作统计图的源程序
response.Write " </v:shape>" 
ASP+VML制作统计图的源程序response.Write 
" </div>"
ASP+VML制作统计图的源程序
k1=k1+k2*2
ASP+VML制作统计图的源程序
if k1>=360 then
ASP+VML制作统计图的源程序k1
=k1-360
ASP+VML制作统计图的源程序
end if
ASP+VML制作统计图的源程序
if k1>180 then
ASP+VML制作统计图的源程序k4
=k4+1
ASP+VML制作统计图的源程序
else
ASP+VML制作统计图的源程序k4
=k4-1
ASP+VML制作统计图的源程序
end if
ASP+VML制作统计图的源程序
next
ASP+VML制作统计图的源程序
end function
ASP+VML制作统计图的源程序%
>
ASP+VML制作统计图的源程序
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
ASP+VML制作统计图的源程序
<head>
ASP+VML制作统计图的源程序
<title></title>
ASP+VML制作统计图的源程序
<STYLE>
ASP+VML制作统计图的源程序v
\:* { Behavior: url(#default#VML) }
ASP+VML制作统计图的源程序o
\:* { behavior: url(#default#VML) }
ASP+VML制作统计图的源程序
</STYLE>
ASP+VML制作统计图的源程序
</head>
ASP+VML制作统计图的源程序
<body>
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序
<SCRIPT LANGUAGE="JavaScript">
ASP+VML制作统计图的源程序
<!--
ASP+VML制作统计图的源程序onit
=true
ASP+VML制作统计图的源程序num
=0
ASP+VML制作统计图的源程序
function moveup(iteam,top,txt,rec){
ASP+VML制作统计图的源程序temp
=eval(iteam)
ASP+VML制作统计图的源程序tempat
=eval(top)
ASP+VML制作统计图的源程序temptxt
=eval(txt)
ASP+VML制作统计图的源程序temprec
=eval(rec)
ASP+VML制作统计图的源程序at
=parseInt(temp.style.top)
ASP+VML制作统计图的源程序temprec.style.display 
= ""
ASP+VML制作统计图的源程序
if (num>27){
ASP+VML制作统计图的源程序temptxt.style.display 
= "";
ASP+VML制作统计图的源程序}
ASP+VML制作统计图的源程序
if(at>(tempat-28)&&onit){
ASP+VML制作统计图的源程序num
++
ASP+VML制作统计图的源程序temp.style.top
=at-1
ASP+VML制作统计图的源程序Stop
=setTimeout("moveup(temp,tempat,temptxt,temprec)",10)
ASP+VML制作统计图的源程序}
else{
ASP+VML制作统计图的源程序return
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序}
ASP+VML制作统计图的源程序
function movedown(iteam,top,txt,rec){
ASP+VML制作统计图的源程序temp
=eval(iteam)
ASP+VML制作统计图的源程序temptxt
=eval(txt)
ASP+VML制作统计图的源程序temprec
=eval(rec)
ASP+VML制作统计图的源程序clearTimeout(Stop)
ASP+VML制作统计图的源程序temp.style.top
=top
ASP+VML制作统计图的源程序num
=0
ASP+VML制作统计图的源程序temptxt.style.display 
= "none";
ASP+VML制作统计图的源程序temprec.style.display 
= "none";
ASP+VML制作统计图的源程序}
ASP+VML制作统计图的源程序
function ontxt(iteam,top,txt,rec){
ASP+VML制作统计图的源程序temp 
= eval(iteam);
ASP+VML制作统计图的源程序temptxt 
= eval(txt);
ASP+VML制作统计图的源程序temprec 
= eval(rec)
ASP+VML制作统计图的源程序
if (onit){
ASP+VML制作统计图的源程序temp.style.top 
= top-28;
ASP+VML制作统计图的源程序temptxt.style.display 
= "";
ASP+VML制作统计图的源程序temprec.style.display 
= "";
ASP+VML制作统计图的源程序}
ASP+VML制作统计图的源程序}
ASP+VML制作统计图的源程序
function movereset(over){
ASP+VML制作统计图的源程序
if (over==1){
ASP+VML制作统计图的源程序onit
=false
ASP+VML制作统计图的源程序}
else{
ASP+VML制作统计图的源程序onit
=true
ASP+VML制作统计图的源程序}
ASP+VML制作统计图的源程序}
ASP+VML制作统计图的源程序
-->
ASP+VML制作统计图的源程序
</script>
ASP+VML制作统计图的源程序
<%
ASP+VML制作统计图的源程序
dim total(10,2)
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序total(
1,1)=2000
ASP+VML制作统计图的源程序total(
2,1)=1800
ASP+VML制作统计图的源程序total(
3,1)=1700
ASP+VML制作统计图的源程序total(
4,1)=1500
ASP+VML制作统计图的源程序total(
5,1)=1222
ASP+VML制作统计图的源程序total(
6,1)=1100
ASP+VML制作统计图的源程序total(
7,1)=1000
ASP+VML制作统计图的源程序total(
8,1)=800
ASP+VML制作统计图的源程序total(
9,1)=700
ASP+VML制作统计图的源程序total(
10,1)=600
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序total(
1,2)="项目1"
ASP+VML制作统计图的源程序
total(2,2)="项目2"
ASP+VML制作统计图的源程序
total(3,2)="项目3"
ASP+VML制作统计图的源程序
total(4,2)="项目4"
ASP+VML制作统计图的源程序
total(5,2)="项目5"
ASP+VML制作统计图的源程序
total(6,2)="项目6"
ASP+VML制作统计图的源程序
total(7,2)="项目7"
ASP+VML制作统计图的源程序
total(8,2)="项目8"
ASP+VML制作统计图的源程序
total(9,2)="项目9"
ASP+VML制作统计图的源程序
total(10,2)="项目10"
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
call table2(total,240,200,700,400,"三维饼状图","")
ASP+VML制作统计图的源程序%
>
ASP+VML制作统计图的源程序
</body>
ASP+VML制作统计图的源程序
</html>

三、统计图--曲线图
ASP+VML制作统计图的源程序<%
ASP+VML制作统计图的源程序
'┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
ASP+VML制作统计图的源程序'
┃                               ┃
ASP+VML制作统计图的源程序'
┃ 摘 要: 统计图--曲线图                       ┃
ASP+VML制作统计图的源程序'
┃ 作 者: 翁云兵                        ┃
ASP+VML制作统计图的源程序'
┃ 创建日期:2004年12月01日                    ┃
ASP+VML制作统计图的源程序'
┃ 完成日期:2004年11月03日                  ┃
ASP+VML制作统计图的源程序'
┃                               ┃
ASP+VML制作统计图的源程序'
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
ASP+VML制作统计图的源程序'
参数含义(数组,横坐标,纵坐标,图表的宽度,图表的高度,图表标题,X轴单位,Y轴单位)
ASP+VML制作统计图的源程序
function table1(stat_array,table_left,table_top,all_width,all_height,table_title,X_unit,Y_unit)
ASP+VML制作统计图的源程序
dim bg_color(10)
ASP+VML制作统计图的源程序bg_color(
1)="#ff1919"
ASP+VML制作统计图的源程序
bg_color(2)="#ffff19"
ASP+VML制作统计图的源程序
bg_color(3)="#1919ff"
ASP+VML制作统计图的源程序
bg_color(4)="#19ff19"
ASP+VML制作统计图的源程序
bg_color(5)="#fc0"
ASP+VML制作统计图的源程序
bg_color(6)="#3cc"
ASP+VML制作统计图的源程序
bg_color(7)="#ff19ff"
ASP+VML制作统计图的源程序
bg_color(8)="#993300"
ASP+VML制作统计图的源程序
bg_color(9)="#f60"
ASP+VML制作统计图的源程序
bg_color(10)="#ff8c19"
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
if X_unit <> "" then
ASP+VML制作统计图的源程序X_unit 
= X_unit
ASP+VML制作统计图的源程序
end if
ASP+VML制作统计图的源程序
if Y_unit <> "" then
ASP+VML制作统计图的源程序Y_unit 
= Y_unit
ASP+VML制作统计图的源程序
end if
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序num1 
= ubound(stat_array,1
ASP+VML制作统计图的源程序line_temp
=split(stat_array(0,1),",")
ASP+VML制作统计图的源程序num2 
= ubound(line_temp,1)+1
ASP+VML制作统计图的源程序
dim line_code
ASP+VML制作统计图的源程序
redim line_code(num1,num2)
ASP+VML制作统计图的源程序
for j=1 to num2
ASP+VML制作统计图的源程序line_code(
0,j) = line_temp(j-1)
ASP+VML制作统计图的源程序
next
ASP+VML制作统计图的源程序
for i=1 to num1
ASP+VML制作统计图的源程序line_temp 
= split(stat_array(i,1),",")
ASP+VML制作统计图的源程序line_code(i,
0= stat_array(i,2)
ASP+VML制作统计图的源程序
for j=1 to num2
ASP+VML制作统计图的源程序line_code(i,j) 
= cdbl(line_temp(j-1))
ASP+VML制作统计图的源程序
next
ASP+VML制作统计图的源程序
next 
ASP+VML制作统计图的源程序value_Max
=0
ASP+VML制作统计图的源程序
for i=1 to num1
ASP+VML制作统计图的源程序
for j=1 to num2
ASP+VML制作统计图的源程序
if value_Max<line_code(i,j) then value_Max=line_code(i,j) 
ASP+VML制作统计图的源程序
next
ASP+VML制作统计图的源程序
next
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序value_Max 
= cint(value_Max)
ASP+VML制作统计图的源程序value_Max_str 
=cstr(value_Max) 
ASP+VML制作统计图的源程序
if value_Max>9 then
ASP+VML制作统计图的源程序temp
=mid(value_Max_str,2,1)
ASP+VML制作统计图的源程序
if temp>4 then 
ASP+VML制作统计图的源程序temp2
=(int(value_Max/(10^(len(value_Max_str)-1)))+1)*10^(len(value_Max_str)-1)
ASP+VML制作统计图的源程序
else
ASP+VML制作统计图的源程序temp2
=(int(value_Max/(10^(len(value_Max_str)-1)))+0.5)*10^(len(value_Max_str)-1)
ASP+VML制作统计图的源程序
end if
ASP+VML制作统计图的源程序
else
ASP+VML制作统计图的源程序
if value_Max>4 then temp2=10 else temp2=5
ASP+VML制作统计图的源程序
end if
ASP+VML制作统计图的源程序item_hight 
= temp2/5
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序item_width 
= 20000/(num2-1)
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序response.Write 
"<v:rect id='background' style='position:absolute;left:"&table_left&"px;top:"&table_top&"px;WIDTH:"&all_width&"px;HEIGHT:"&all_height&"px;' fillcolor='#EFEFEF' strokecolor='gray'>"
ASP+VML制作统计图的源程序
response.Write " <v:shadow on='t' type='single' color='silver' offset='4pt,4pt'/>"
ASP+VML制作统计图的源程序
response.Write "</v:rect>"
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
response.Write "<v:group ID='table' style='position:absolute;left:"&table_left&"px;top:"&table_top&"px;WIDTH:"&all_width&"px;HEIGHT:"&all_height&"px;' coordsize = '27500,12800'>"
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
response.Write " <v:Rect style='position:relative;left:1500;top:200;width:23000;height:800'filled='false' stroked='f'>"
ASP+VML制作统计图的源程序
response.Write " <v:TextBox inset='0pt,0pt,0pt,0pt'>"
ASP+VML制作统计图的源程序
response.Write " <table width='100%' border='0' align='center' cellspacing='0'>"
ASP+VML制作统计图的源程序
response.Write " <tr>"
ASP+VML制作统计图的源程序
response.Write " <td align='center' valign='middle'><div style='font-size:15pt; font-family:黑体;'><B>"&table_title&"</B></div></td>"
ASP+VML制作统计图的源程序
response.Write " </tr>"
ASP+VML制作统计图的源程序
response.Write " </table>"
ASP+VML制作统计图的源程序
response.Write " </v:TextBox>"
ASP+VML制作统计图的源程序
response.Write " </v:Rect> "
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
response.Write " <v:rect id='back' style='position:relative;left:1700;top:1200;width:20500; height:10500;' fillcolor='#9cf' strokecolor='#DFDFDF'>"
ASP+VML制作统计图的源程序
response.Write " <v:fill rotate='t' angle='-45' focus='100%' type='gradient'/>"
ASP+VML制作统计图的源程序
response.Write " </v:rect>"
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
response.Write " <v:rect id='back2' style='position:relative;left:23000;top:1200;width:4000; height:"&(10500)&";' fillcolor='#9cf' stroked='t' strokecolor='#0099ff'>"
ASP+VML制作统计图的源程序
response.Write " <v:fill rotate='t' angle='-175' focus='100%' type='gradient'/>"
ASP+VML制作统计图的源程序
response.Write " <v:shadow on='t' type='single' color='silver' offset='3pt,3pt'/>"
ASP+VML制作统计图的源程序
response.Write " </v:rect>"
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
for i=1 to num1
ASP+VML制作统计图的源程序
if i=1 then
ASP+VML制作统计图的源程序displaystr
=""
ASP+VML制作统计图的源程序
else
ASP+VML制作统计图的源程序displaystr
="none"
ASP+VML制作统计图的源程序
end if
ASP+VML制作统计图的源程序response.Write 
" <div style='cursor:hand;' onmouseover='moveon(rec"&i&",line_"&i&")' onmouseout='moveout(rec"&i&",line_"&i&","&i&")' onclick='clickit("&i&")'>"
ASP+VML制作统计图的源程序
response.Write " <v:Rect id='rec"&i&"' style='position:relative;left:23100;top:"&(i-1)*10200/10+1450&";width:3800;height:800;display:"&displaystr&";' fillcolor='#efefef' strokecolor='"&bg_color(i)&"'>"
ASP+VML制作统计图的源程序
response.Write " <v:fill opacity='.6' color2='fill darken(118)' o:opacity2='.6' rotate='t' method='linear sigma' focus='100%' type='gradient'/>"
ASP+VML制作统计图的源程序
response.Write " </v:Rect>"
ASP+VML制作统计图的源程序
response.Write " <v:Rect style='position:relative;left:23200;top:"&(i-1)*10200/10+1500&";width:600;height:700' fillcolor='"&bg_color(i)&"' stroked='f'/>"
ASP+VML制作统计图的源程序
response.Write " <v:Rect style='position:relative;left:24000;top:"&(i-1)*10200/10+1500&";width:3400;height:700' filled='f' stroked='f'>"
ASP+VML制作统计图的源程序
response.Write " <v:TextBox inset='0pt,4pt,0pt,0pt' style='font-size:9pt;'><div align='left'>"&stat_array(i,2)&"</div></v:TextBox>"
ASP+VML制作统计图的源程序
response.Write " </v:Rect> "
ASP+VML制作统计图的源程序
response.Write " </div> "
ASP+VML制作统计图的源程序
next
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序response.Write 
" <v:line ID='X' from='1700,11700' to='22700,11700' style='z-index:2' strokecolor='#000000' strokeWeight=1pt><v:stroke EndArrow='Classic'/></v:line>"
ASP+VML制作统计图的源程序
response.Write " <v:line ID='Y' from='1700,900' to='1700,11700' style='z-index:2' strokecolor='#000000' strokeWeight=1pt><v:stroke StartArrow='Classic'/></v:line>"
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
response.Write " <v:Rect style='position:relative;left:100;top:700;width:1500;height:500' filled='false' stroked='false'>"
ASP+VML制作统计图的源程序
response.Write " <v:TextBox inset='0pt,0pt,0pt,0pt' style='font-size:9pt;'><div align='right'>"&Y_unit&"</div></v:TextBox>"
ASP+VML制作统计图的源程序
response.Write " </v:Rect> " 
ASP+VML制作统计图的源程序response.Write 
" <v:Rect style='position:relative;left:22200;top:11900;width:2000;height:500' filled='false' stroked='false'>"
ASP+VML制作统计图的源程序
response.Write " <v:TextBox inset='0pt,0pt,0pt,0pt' style='font-size:9pt;'><div align='left'>"&X_unit&"</div></v:TextBox>"
ASP+VML制作统计图的源程序
response.Write " </v:Rect> " 
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序
for i=0 to 4
ASP+VML制作统计图的源程序response.Write 
" <v:line from='1300,"&i*2000+1700&"' to='1700,"&i*2000+1700&"' style='z-index:2' strokecolor='#000000'></v:line>"
ASP+VML制作统计图的源程序
response.Write " <v:line from='1700,"&i*2000+1700&"' to='2200,"&i*2000+1200&"' style='z-index:2' strokecolor='#0099FF'></v:line>"
ASP+VML制作统计图的源程序
response.Write " <v:line from='2200,"&i*2000+1200&"' to='22200,"&i*2000+1200&"' style='z-index:2' strokecolor='#0099FF'></v:line>"
ASP+VML制作统计图的源程序
response.Write " <v:line from='2200,"&i*2000+2200&"' to='22200,"&i*2000+2200&"' style='z-index:2' strokecolor='#0099FF'>"
ASP+VML制作统计图的源程序
response.Write " <v:stroke dashstyle='Dot'/>"
ASP+VML制作统计图的源程序
response.Write " </v:line>"
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
response.Write " <v:Rect style='position:relative;left:100;top:"&i*2000+1250&";width:1500;height:500' filled='false' stroked='false'>"
ASP+VML制作统计图的源程序
response.Write " <v:TextBox inset='0pt,0pt,0pt,0pt' style='font-size:9pt;'><div align='right'>"&item_hight*(5-i)&"</div></v:TextBox>"
ASP+VML制作统计图的源程序
response.Write " </v:Rect> " 
ASP+VML制作统计图的源程序
next
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序response.Write 
" <v:line from='2200,11200' to='22200,11200' style='z-index:2' strokecolor='#0099FF'></v:line>"
ASP+VML制作统计图的源程序
response.Write " <v:line from='2200,1200' to='2200,11200' style='z-index:2' strokecolor='#0099FF'></v:line>"
ASP+VML制作统计图的源程序
response.Write " <v:line from='1700,11700' to='2200,11200' style='z-index:2' strokecolor='#0099FF'></v:line>"
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
for j=0 to num2-1
ASP+VML制作统计图的源程序response.Write 
" <v:line from='"&j*item_width+1700&",11700' to='"&j*item_width+1700&",12000' style='z-index:2' strokecolor='#000000'></v:line>"
ASP+VML制作统计图的源程序
response.Write " <v:line from='"&j*item_width+1700&",11700' to='"&j*item_width+2200&",11200' style='z-index:2' strokecolor='#0099FF'><v:stroke dashstyle='ShortDot'/></v:line>"
ASP+VML制作统计图的源程序
response.Write " <v:line from='"&j*item_width+2200&",1200' to='"&j*item_width+2200&",11200' style='z-index:2' strokecolor='#0099FF'><v:stroke dashstyle='ShortDot'/></v:line>"
ASP+VML制作统计图的源程序
response.Write " <v:Rect style='position:relative;left:"&j*item_width+1700-item_width/2&";top:12100;width:"&item_width&";height:500' filled='false' stroked='false'>"
ASP+VML制作统计图的源程序
response.Write " <v:TextBox inset='0pt,0pt,0pt,0pt' style='font-size:9pt;'><div align='center'>"&line_code(0,j+1)&"</div></v:TextBox>"
ASP+VML制作统计图的源程序
response.Write " </v:Rect> " 
ASP+VML制作统计图的源程序
next
ASP+VML制作统计图的源程序
for i=1 to num1
ASP+VML制作统计图的源程序
if i=1 then
ASP+VML制作统计图的源程序displaystr
=""
ASP+VML制作统计图的源程序
else
ASP+VML制作统计图的源程序displaystr
="none"
ASP+VML制作统计图的源程序
end if
ASP+VML制作统计图的源程序response.Write 
" <div id='line_"&i&"' style='display:"&displaystr&";'>"
ASP+VML制作统计图的源程序
for j=0 to num2-2
ASP+VML制作统计图的源程序this_hight1 
= cint(line_code(i,j+1)/(5*item_hight)*10000)
ASP+VML制作统计图的源程序this_hight2 
= cint(line_code(i,j+2)/(5*item_hight)*10000)
ASP+VML制作统计图的源程序response.Write 
" <v:line from='"&j*item_width+1850&","&(10000-this_hight1+1550)&"' to='"&(j+1)*item_width+1850&","&(10000-this_hight2+1550)&"'style='z-index:"&i*10&";' strokeweight='0.1pt' strokecolor='"&bg_color(i)&"'>"
ASP+VML制作统计图的源程序
response.Write " <o:extrusion v:ext='view' backdepth='12pt' on='t' lightposition='-50000,-50000' lightposition2='50000'/>"
ASP+VML制作统计图的源程序
response.Write " </v:line>"
ASP+VML制作统计图的源程序
next
ASP+VML制作统计图的源程序response.Write 
" </div>"
ASP+VML制作统计图的源程序
next
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序response.Write 
"</v:group>" 
ASP+VML制作统计图的源程序
end function
ASP+VML制作统计图的源程序%
>
ASP+VML制作统计图的源程序
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
ASP+VML制作统计图的源程序
<head>
ASP+VML制作统计图的源程序
<title></title>
ASP+VML制作统计图的源程序
<STYLE>
ASP+VML制作统计图的源程序v
\:* { Behavior: url(#default#VML) }
ASP+VML制作统计图的源程序o
\:* { behavior: url(#default#VML) }
ASP+VML制作统计图的源程序
</STYLE>
ASP+VML制作统计图的源程序
<SCRIPT LANGUAGE="JavaScript">
ASP+VML制作统计图的源程序
<!--
ASP+VML制作统计图的源程序var showit 
= new Array(10);
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序
function moveon(iteam,lineit){
ASP+VML制作统计图的源程序temp
=eval(iteam)
ASP+VML制作统计图的源程序templine
=eval(lineit)
ASP+VML制作统计图的源程序
if(showit[1]){
ASP+VML制作统计图的源程序rec1.style.display 
= "";
ASP+VML制作统计图的源程序line_1.style.display 
= "";
ASP+VML制作统计图的源程序}
else{
ASP+VML制作统计图的源程序rec1.style.display 
= "none";
ASP+VML制作统计图的源程序line_1.style.display 
= "none";
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序temp.style.display 
= "";
ASP+VML制作统计图的源程序templine.style.display 
= "";
ASP+VML制作统计图的源程序}
ASP+VML制作统计图的源程序
function moveout(iteam,lineit,i){
ASP+VML制作统计图的源程序temp
=eval(iteam)
ASP+VML制作统计图的源程序templine
=eval(lineit)
ASP+VML制作统计图的源程序
if (showit[i]){
ASP+VML制作统计图的源程序temp.style.display 
= "";
ASP+VML制作统计图的源程序templine.style.display 
= "";
ASP+VML制作统计图的源程序}
else{
ASP+VML制作统计图的源程序temp.style.display 
= "none";
ASP+VML制作统计图的源程序templine.style.display 
= "none";
ASP+VML制作统计图的源程序}
ASP+VML制作统计图的源程序}
ASP+VML制作统计图的源程序
function clickit(i){
ASP+VML制作统计图的源程序
if (showit[i]){
ASP+VML制作统计图的源程序showit[i]
=false
ASP+VML制作统计图的源程序}
else{
ASP+VML制作统计图的源程序showit[i]
=true
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序}
ASP+VML制作统计图的源程序
-->
ASP+VML制作统计图的源程序
</script>
ASP+VML制作统计图的源程序
</head>
ASP+VML制作统计图的源程序
<body>
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序
<%
ASP+VML制作统计图的源程序
dim total(10,2)
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序total(
0,1)="1月,2月,3月,4月,5月,6月,7月,8月,9月,10月,11月,12月"
ASP+VML制作统计图的源程序
total(1,1)="200,158,982,0,369,100,595,895,652,25,245,951"
ASP+VML制作统计图的源程序
total(2,1)="984,58,495,36,158,486,952,258,653,415,485,14"
ASP+VML制作统计图的源程序
total(3,1)="850,988,958,145,369,745,265,158,856,145,425,352"
ASP+VML制作统计图的源程序
total(4,1)="600,525,235,485,258,265,158,365,35,148,658,475"
ASP+VML制作统计图的源程序
total(5,1)="62,525,635,215,0,465,258,305,66,547,54,148"
ASP+VML制作统计图的源程序
total(6,1)="560,625,645,329,158,665,358,95,120,358,42,253"
ASP+VML制作统计图的源程序
total(7,1)="950,725,635,435,258,865,458,955,152,845,425,421"
ASP+VML制作统计图的源程序
total(8,1)="600,825,155,455,458,265,558,365,352,245,853,122"
ASP+VML制作统计图的源程序
total(9,1)="360,925,215,545,658,465,658,845,400,421,541,125"
ASP+VML制作统计图的源程序
total(10,1)="50,225,355,655,858,665,758,35,584,214,54,651"
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
total(1,2)="项目1"
ASP+VML制作统计图的源程序
total(2,2)="项目2"
ASP+VML制作统计图的源程序
total(3,2)="项目3"
ASP+VML制作统计图的源程序
total(4,2)="项目4"
ASP+VML制作统计图的源程序
total(5,2)="项目5"
ASP+VML制作统计图的源程序
total(6,2)="项目6"
ASP+VML制作统计图的源程序
total(7,2)="项目7"
ASP+VML制作统计图的源程序
total(8,2)="项目8"
ASP+VML制作统计图的源程序
total(9,2)="项目9"
ASP+VML制作统计图的源程序
total(10,2)="项目10"
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序

ASP+VML制作统计图的源程序
call table1(total,240,200,700,350,"曲 线 统 计 图","时间","")
ASP+VML制作统计图的源程序%
>
ASP+VML制作统计图的源程序
ASP+VML制作统计图的源程序
</body>
ASP+VML制作统计图的源程序
</html>

相关文章: