• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • JavaScript
  • ASP.NET
  • PHP
  • 正则表达式
  • AJAX
  • JSP
  • ASP
  • Flex
  • XML
  • 编程技巧
  • Android
  • swift
  • C#教程
  • vb
  • vb.net
  • C语言
  • Java
  • Delphi
  • 易语言
  • vc/mfc
  • 嵌入式开发
  • 游戏开发
  • ios
  • 编程问答
  • 汇编语言
  • 微信小程序
  • 数据结构
  • OpenGL
  • 架构设计
  • qt
  • 微信公众号
您的位置:首页 > 程序设计 >ASP > ASP生成柱型体,折线图,饼图源代码

ASP生成柱型体,折线图,饼图源代码

作者: 字体:[增加 减小] 来源:互联网 时间:2017-05-11

通过本文主要向大家介绍了asp 折线图,asp编写饼形图,asp 饼图,asp,asp空间等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
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&"'/>"
        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
      
分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

  • ASP生成柱型体,折线图,饼图源代码提供了第1/3页
  • ASP生成柱型体,折线图,饼图源代码
  • [图]Flash+ASP实现电子互动地图在线标注功能

相关文章

  • 2017-05-11函数名称 函数功能
  • 2017-05-11较为全面的asp防CC攻击代码分享
  • 2017-05-11在ASP里面创建GUID
  • 2017-05-11隐蔽的ASP后门 大家可以查看下
  • 2017-05-11在asp中使用js的encodeURIComponent方法
  • 2017-05-11asp 判断是否为搜索引擎蜘蛛的代码
  • 2017-05-11ASP新手必备的基础知识
  • 2017-05-11Tsys OkHtm.com修改版数据采集方法
  • 2017-05-11生成EAN13标准的条形码的ASP代码实例
  • 2017-05-11asp中 select top 问题!~

文章分类

  • JavaScript
  • ASP.NET
  • PHP
  • 正则表达式
  • AJAX
  • JSP
  • ASP
  • Flex
  • XML
  • 编程技巧
  • Android
  • swift
  • C#教程
  • vb
  • vb.net
  • C语言
  • Java
  • Delphi
  • 易语言
  • vc/mfc
  • 嵌入式开发
  • 游戏开发
  • ios
  • 编程问答
  • 汇编语言
  • 微信小程序
  • 数据结构
  • OpenGL
  • 架构设计
  • qt
  • 微信公众号

最近更新的内容

    • ASP 时间函数及如何获取服务器时间的写法
    • ASP组件AspJpeg(加水印)生成缩略图等使用方法
    • ASP中文本文件与数据库文件的数据交换(FSO)
    • Asp中使用JQuery的AJAX提交中文乱码解决方法
    • TsysV1.1 系统文件清单介绍
    • 使用ASP在IIS创建WEB站点的函数
    • 一个查ASP木马的小东东
    • Asp中Server.ScriptTimeOut属性需要注意的一点分析
    • asp cint clng的范围与防止cint和clng的溢出解决方法大全
    • ASP常用函数:Delay()

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有