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

首頁 > 編程 > ASP > 正文

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

2024-05-04 10:58:12
字體:
來源:轉載
供稿:網友
ASP生成柱型體,折線圖,餅圖源代碼
--------------------------------------------------------------------------------

<%
function table2(total,table_x,table_y,all_width,all_height,line_no)
'參數含義(傳遞的數組,橫坐標,縱坐標,圖表的寬度,圖表的高度,折線條數)
'純ASP代碼生成圖表函數2——折線圖
'作者:龔鳴(Passwordgm) QQ:25968152 MSN:passwordgm@sina.com Email:passwordgm@sina.com
'本人非常愿意和ASP,VML,FLASH的愛好者在HTTP://topclouds.126.com進行交流和探討
'版本1.0 最后修改日期 2003-8-11
'非常感謝您使用這個函數,請您使用和轉載時保留版權信息,這是對作者工作的最好的尊重。
    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&"'/>"
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 三原县| 宽甸| 新平| 华坪县| 金塔县| 阿拉善右旗| 鄢陵县| 奈曼旗| 阜平县| 双牌县| 繁峙县| 临桂县| 开封市| 巴楚县| 江安县| 武汉市| 响水县| 清新县| 高邑县| 常熟市| 交城县| 治县。| 随州市| 吉安市| 斗六市| 上饶县| 陆川县| 出国| 潼南县| 广河县| 灌云县| 枣阳市| 江西省| 宁乡县| 乌鲁木齐市| 通河县| 沅陵县| 南投县| 东宁县| 柳林县| 武汉市|