濮阳杆衣贸易有限公司

主頁 > 知識庫 > ASP生成柱型體,折線圖,餅圖源代碼提供了第1/3頁

ASP生成柱型體,折線圖,餅圖源代碼提供了第1/3頁

熱門標(biāo)簽:滴滴地圖標(biāo)注上車點(diǎn) 高質(zhì)量的電銷外呼系統(tǒng) 宿州防封外呼系統(tǒng)平臺 電銷機(jī)器人采購 硅基電話機(jī)器人加盟 地圖標(biāo)注還可以做嗎 無營業(yè)執(zhí)照地圖標(biāo)注教學(xué) 外呼系統(tǒng)怎么話費(fèi) 友邦互聯(lián)電銷機(jī)器人違法嗎
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
'非常感謝您使用這個(gè)函數(shù),請您使用和轉(zhuǎn)載時(shí)保留版權(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 temp1total(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"'/>"
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-15)"px,"table_y+i"px' to='"table_x+left_width"px,"table_y+i"px'/>"
response.write ""
response.write "v:shape id='_x0000_s1025' type='#_x0000_t202' alt='' style='position:absolute;left:"table_x"px;top:"table_y+i"px;width:"left_width"px;height:18px;z-index:1'>"
response.write "v:textbox inset='0px,0px,0px,0px'>table cellspacing='3' cellpadding='0' width='100%' height='100%'>tr>td align='right'>"temp4"/td>/tr>/table>/v:textbox>/v:shape>"
temp4=temp4-temp3/5
next
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"px,"table_y+all_height"px' to='"table_x+all_width+left_width"px,"table_y+all_height"px'/>"
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"px,"table_y"px' to='"table_x+left_width"px,"table_y+all_height"px'/>"

dim line_code
redim line_code(line_no,5)
for i=1 to line_no
line_temp=split(total(0,i),",")
line_code(i,1)=line_temp(0)
line_code(i,2)=line_temp(1)
line_code(i,3)=line_temp(2)
line_code(i,4)=line_temp(3)
line_code(i,5)=line_temp(4)
next
for j=1 to line_no
for i=1 to total_no-1
x1=table_x+left_width+all_width*(i-1)/total_no
y1=table_y+(temp3-total(i,j))*(all_height/temp3)
x2=table_x+left_width+all_width*i/total_no
y2=table_y+(temp3-total(i+1,j))*(all_height/temp3)
response.write "v:line id=""_x0000_s1025"" alt="""" style='position:absolute;left:0;text-align:left;top:0;z-index:1' from="""x1"px,"y1"px"" to="""x2"px,"y2"px"" coordsize=""21600,21600"" strokecolor="""line_code(j,1)""" strokeweight="""line_code(j,2)""">"
select case line_code(j,3)
case 1
case 2
response.write "v:stroke dashstyle='1 1'/>"
case 3
response.write "v:stroke dashstyle='dash'/>"
case 4
response.write "v:stroke dashstyle='dashDot'/>"
case 5
response.write "v:stroke dashstyle='longDash'/>"
case 6
response.write "v:stroke dashstyle='longDashDot'/>"
case 7
response.write "v:stroke dashstyle='longDashDotDot'/>"
case else
end select
response.write "/v:line>"CHR(13)
select case line_code(j,4)
case 1
case 2
response.write "v:rect id=""_x0000_s1027"" style='position:absolute;left:"x1-2"px;top:"y1-2"px;width:4px;height:4px; z-index:2' fillcolor="""line_code(j,1)""" strokecolor="""line_code(j,1)"""/>"CHR(13)
case 3
response.write "v:oval id=""_x0000_s1026"" style='position:absolute;left:"x1-2"px;top:"y1-2"px;width:4px;height:4px;z-index:1' fillcolor="""line_code(j,1)""" strokecolor="""line_code(j,1)"""/>"CHR(13)
end select
next
select case line_code(j,4)
case 1
case 2
response.write "v:rect id=""_x0000_s1027"" style='position:absolute;left:"x2-2"px;top:"y2-2"px;width:4px;height:4px; z-index:2' fillcolor="""line_code(j,1)""" strokecolor="""line_code(j,1)"""/>"CHR(13)
case 3
response.write "v:oval id=""_x0000_s1026"" style='position:absolute;left:"x2-2"px;top:"y2-2"px;width:4px;height:4px;z-index:1' fillcolor="""line_code(j,1)""" strokecolor="""line_code(j,1)"""/>"CHR(13)
end select
next

for i=1 to total_no
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+all_width*(i-1)/total_no"px,"table_y+all_height"px' to='"table_x+left_width+all_width*(i-1)/total_no"px,"table_y+all_height+15"px'/>"
response.write ""
response.write "v:shape id='_x0000_s1025' type='#_x0000_t202' alt='' style='position:absolute;left:"table_x+left_width+all_width*(i-1)/total_no"px;top:"table_y+all_height"px;width:"all_width/total_no"px;height:18px;z-index:1'>"
response.write "v:textbox inset='0px,0px,0px,0px'>table cellspacing='3' cellpadding='0' width='100%' height='100%'>tr>td align='left'>"total(i,0)"/td>/tr>/table>/v:textbox>/v:shape>"
next

tb_height=30
response.write "v:rect id='_x0000_s1025' style='position:absolute;left:"table_x+all_width+20"px;top:"table_y"px;width:100px;height:"line_no*tb_height+20"px;z-index:1'/>"
for i=1 to line_no
response.write "v:shape id='_x0000_s1025' type='#_x0000_t202' alt='' style='position:absolute;left:"table_x+all_width+25"px;top:"table_y+10+(i-1)*tb_height"px;width:60px;height:"tb_height"px;z-index:1'>"
response.write "v:textbox inset='0px,0px,0px,0px'>table cellspacing='3' cellpadding='0' width='100%' height='100%'>tr>td align='left'>"line_code(i,5)"/td>/tr>/table>/v:textbox>/v:shape>"
response.write "v:rect id='_x0000_s1040' alt='' style='position:absolute;left:"table_x+all_width+80"px;top:"table_y+10+(i-1)*tb_height+4"px;width:30px;height:20px;z-index:1' fillcolor='"line_code(i,1)"'>v:fill color2='"line_code(i,1)"' rotate='t' focus='100%' type='gradient'/>/v:rect>"
next

end function
%>
123下一頁閱讀全文
您可能感興趣的文章:
  • D3.js中data(), enter() 和 exit()的問題詳解
  • JavaScript可視化圖表庫D3.js API中文參考
  • D3.js 從P元素的創(chuàng)建開始(顯示可加載數(shù)據(jù))
  • jQuery實(shí)現(xiàn)折線圖的方法
  • php下實(shí)現(xiàn)折線圖效果的代碼
  • asp.net畫曲線圖(折線圖)代碼 詳細(xì)注釋
  • jqplot通過ajax動態(tài)畫折線圖的方法及思路
  • PHP中使用GD庫繪制折線圖 折線統(tǒng)計(jì)圖的繪制方法
  • C#畫圖之餅圖折線圖的實(shí)現(xiàn)方法
  • 基于d3.js實(shí)現(xiàn)實(shí)時(shí)刷新的折線圖

標(biāo)簽:新余 儋州 江門 廣元 錫林郭勒盟 宣城 七臺河 雅安

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《ASP生成柱型體,折線圖,餅圖源代碼提供了第1/3頁》,本文關(guān)鍵詞  ASP,生成,柱型,體,折,線圖,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《ASP生成柱型體,折線圖,餅圖源代碼提供了第1/3頁》相關(guān)的同類信息!
  • 本頁收集關(guān)于ASP生成柱型體,折線圖,餅圖源代碼提供了第1/3頁的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    介休市| 牟定县| 武平县| 全州县| 南丹县| 罗江县| 团风县| 榆树市| 敖汉旗| 丹寨县| 固始县| 珲春市| 横山县| 景德镇市| 定兴县| 延安市| 中牟县| 三穗县| 佳木斯市| 西贡区| 邮箱| 沭阳县| 进贤县| 宜都市| 新密市| 洛扎县| 定日县| 通州区| 宁夏| 洪洞县| 汤原县| 磐安县| 会宁县| 大理市| 枣庄市| 安平县| 文昌市| 左云县| 双辽市| 遵化市| 本溪市|