国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > ASP > 正文

ASP生成柱型體,折線圖,餅圖源代碼

2024-05-04 11:01:47
字體:
供稿:網(wǎng)友
ASP生成柱型體,折線圖,餅圖源代碼
--------------------------------------------------------------------------------

<%
function table2(total,table_x,table_y,all_width,all_height,line_no)
'參數(shù)含義(傳遞的數(shù)組,橫坐標(biāo),縱坐標(biāo),圖表的寬度,圖表的高度,折線條數(shù))
'純ASP代碼生成圖表函數(shù)2——折線圖
'作者:龔鳴(Passwordgm) QQ:25968152 MSN:passwordgm@sina.com Email:passwordgm@sina.com
'本人非常愿意和ASP,VML,FLASH的愛好者在HTTP://topclouds.126.com進(jìn)行交流和探討
'版本1.0 最后修改日期 2003-8-11
'非常感謝您使用這個函數(shù),請您使用和轉(zhuǎn)載時保留版權(quán)信息,這是對作者工作的最好的尊重。
    line_color="#69f"
    left_width=70
    total_no=ubound(total,1)

    temp1=0
    for i=1 to total_no
        for j=1 to line_no
            if temp1<total(i,j) then temp1=total(i,j)
        next
    next
    temp1=int(temp1)
    if temp1>9 then
        temp2=mid(cstr(temp1),2,1)
        if temp2>4 then 
            temp3=(int(temp1/(10^(len(cstr(temp1))-1)))+1)*10^(len(cstr(temp1))-1)
        else
            temp3=(int(temp1/(10^(len(cstr(temp1))-1)))+0.5)*10^(len(cstr(temp1))-1)
        end if
    else
        if temp1>4 then temp3=10 else temp3=5
    end if
    temp4=temp3
    response.write "<v:rect id='_x0000_s1027' alt='' style='position:absolute;left:"&table_x+left_width&"px;top:"&table_y&"px;width:"&all_width&"px;height:"&all_height&"px;z-index:-1' fillcolor='#9cf' stroked='f'><v:fill rotate='t' angle='-45' focus='100%' type='gradient'/></v:rect>"
    for i=0 to all_height-1 step all_height/5
        response.write "<v:line id='_x0000_s1027' alt='' style='position:absolute;left:0;text-align:left;top:0;flip:y;z-index:-1' from='"&table_x+left_width+length&"px,"&table_y+all_height-length-i&"px' to='"&table_x+all_width+left_width&"px,"&table_y+all_height-length-i&"px' strokecolor='"&line_color&"'/>"
發(fā)表評論 共有條評論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 太和县| 七台河市| 乐平市| 大同市| 乌拉特后旗| 霍林郭勒市| 疏附县| 中山市| 昔阳县| 德保县| 武功县| 建平县| 邳州市| 清新县| 政和县| 姜堰市| 彩票| 南华县| 华池县| 禄丰县| 抚顺县| 北海市| 桦南县| 聂拉木县| 阳谷县| 紫云| 万盛区| 陕西省| 芒康县| 隆回县| 永修县| 平泉县| 济南市| 宁阳县| 泾源县| 宝鸡市| 澳门| 晋州市| 清涧县| 肇州县| 南充市|