濮阳杆衣贸易有限公司

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

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

熱門標(biāo)簽:滴滴地圖標(biāo)注上車點 高質(zhì)量的電銷外呼系統(tǒng) 宿州防封外呼系統(tǒng)平臺 電銷機(jī)器人采購 硅基電話機(jī)器人加盟 地圖標(biāo)注還可以做嗎 無營業(yè)執(zhí)照地圖標(biāo)注教學(xué) 外呼系統(tǒng)怎么話費 友邦互聯(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
'非常感謝您使用這個函數(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 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實現(xiàn)折線圖的方法
  • php下實現(xiàn)折線圖效果的代碼
  • asp.net畫曲線圖(折線圖)代碼 詳細(xì)注釋
  • jqplot通過ajax動態(tài)畫折線圖的方法及思路
  • PHP中使用GD庫繪制折線圖 折線統(tǒng)計圖的繪制方法
  • C#畫圖之餅圖折線圖的實現(xiàn)方法
  • 基于d3.js實現(xiàn)實時刷新的折線圖

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

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《ASP生成柱型體,折線圖,餅圖源代碼提供了第1/3頁》,本文關(guān)鍵詞  ASP,生成,柱型,體,折,線圖,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(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)民參考!
  • 推薦文章
    银川市| 盈江县| 青阳县| 伊宁县| 图们市| 贺州市| 望谟县| 武穴市| 扎鲁特旗| 汉沽区| 偃师市| 临江市| 梁河县| 肥城市| 青铜峡市| 云阳县| 乌什县| 西平县| 新邵县| 姚安县| 天峻县| 肥东县| 陇南市| 南皮县| 甘孜县| 车险| 宜川县| 依安县| 桐梓县| 桦川县| 深水埗区| 田阳县| 南安市| 崇明县| 昭觉县| 梨树县| 丹阳市| 定西市| 富宁县| 伊宁县| 福建省|