国产探花免费观看_亚洲丰满少妇自慰呻吟_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ā)表
主站蜘蛛池模板: 台前县| 洛浦县| 当阳市| 五峰| 兰州市| 望江县| 古丈县| 犍为县| 中超| 清水河县| 那坡县| 莎车县| 栾城县| 合肥市| 沐川县| 台州市| 石泉县| 龙门县| 彭阳县| 牙克石市| 南岸区| 平乐县| 泗洪县| 炉霍县| 拜泉县| 山阳县| 株洲县| 凉山| 新泰市| 百色市| 全椒县| 闻喜县| 凤阳县| 延长县| 赤水市| 临沭县| 普定县| 舟曲县| 锡林浩特市| 许昌市| 邵阳市|