HTML条形图函数库

函数

<%
' ###################################################
' ## BarChart                                       #
' ## Class to draw bar charts in ASP applications   #
' ## Author : Anton Bawab                           #
' ## First written : March 27th 2000                #
' ###################################################

' ###################################################
' ## Include this file in your ASP script           #
' ## assign the properties                          #
' ## then use the Draw method                       #
' ###################################################

Class BarChart

Private mchartBGcolor
Private mchartTitle
Private mchartWidth
Private mchartValueArray
Private mchartLabelsArray
Private mchartColorArray
Private mchartViewDataType
Private mchartBarHeight
Private mchartBorder
Private mchartTextColor
Private mchartCounter ' general counter
Private mchartMaxValue
Private mchartFactor
Private mchartTotalValues
Private mchartMinValue

Public Property LET chartBGcolor(strColor)
    mchartBGcolor = strColor

    'code validation
        IF LEN(mchartBGcolor) <> 7 THEN
            ERR.Number = vbObjectError + 1000
            ERR.Description = "Color string provided unequal to 7 characters"
            Response.Write Err.Number & vbCRLF & ERR.Description
            ERR.Clear

            EXIT Property
        END IF
END Property

Public Property LET chartTitle(strTitle)
    mchartTitle = strTitle
END Property

Public Property LET chartWidth(intWidth)
    mchartWidth = intWidth
END Property

Public Property LET chartValueArray(arrValues)
    
    mchartValueArray = arrValues

    IF NOT isArray(mchartValueArray) THEN
        ERR.Number = vbObjectError + 1001
        ERR.Description = "Values passed are not an array"
        Response.Write Err.Number & vbCRLF & ERR.Description
        EXIT Property
        ERR.Clear
        ERR.Number = vbObjectError + 1002
        ERR.Description "Number of values passed does not match labels"
        Response.Write Err.Number & vbCRLF & ERR.Description
        ERR.Clear
        EXIT Property
    END IF

END Property

Public Property LET chartLabelsArray(arrLabels)
    
    mchartLabelsArray = arrLabels

    IF NOT isArray(mchartLabelsArray) THEN
        ERR.Number = vbObjectError + 1001
        ERR.Description = "Label values passed are not an array"
        Response.Write Err.Number & vbCRLF & ERR.Description
        EXIT Property
     &

时间: 2024-09-20 01:14:43

HTML条形图函数库的相关文章

在VC中使用MATLAB C/C++函数库

MATLAB广泛应用于线性代数.自动控制理论.数理统计.数字信号处理.时间序列分析.动态系统仿真等领域.因此如果在VC中对MATLAB进行调用将大大减少编程的工作量.保证程序的准确性,并且继承了VC++强大的功能,提高开发效率,本文将介绍了在VC中使用MATLAB函数库的具体步骤: 在VC中建立一个项目后: 1.设置: 添加路径: 在project-settings-c/C++-category:-preprocessor-Additional include directories:栏目中添加

php BC高精确度函数库

$right 返回 1 *$scale 小数点位数 *************************************************************************************** $a = 4.45; $b = 5.54; if(bccomp($a, $b, 2) == 0) { } ***********************************************************************************

javascript函数库:jQuery基础教程

文章简介:jQuery是目前使用最广泛的javascript函数库.据统计,全世界排名前100万的网站,有46%使用jQuery,远远超过其他库.微软公司甚至把jQuery作为他们的官方库.对于网页开发者来说,学会jQuery是必要的.因为它让你了解业界最通用的技术,为将来学习更高级的库打下基础,并 jQuery是目前使用最广泛的javascript函数库.据统计,全世界排名前100万的网站,有46%使用jQuery,远远超过其他库.微软公司甚至把jQuery作为他们的官方库.对于网页开发者来说

在PHP3中实现SESSION的功能(一、SESSION函数库:session.inc.php3)(转译)

session|函数 <?phpif (!isset($__session_inc__)){$__session_inc__=1;//require("cookie.inc.php3");# ------------------------------------------------------------------- # Session Management v1.0 21.6.1998 # (c) Wild Karl Heinz <kh.wild@wicom.at

JS经典源码:通用javascript脚本函数库

javascript|js|函数|脚本 javascript在WEB编程中能起到很大的作用,将一些常用的功能写成javascript类库. 将下面代码保存为Common.js 类库功能: 1.Trim(str)--去除字符串两边的空格 2.XMLEncode(str)--对字符串进行XML编码 3.ShowLabel(str,str)--鼠标提示功能(显示字符,提示字符) 可以设置显示的提示的文字的字体.颜色.大小以及提示的背景颜色.边框等 4.IsEmpty(obj)--验证输入框是否为空 5

php 函数库的设计智慧 - 无胜于有

  php 的函数库为很多人所诟病, 说库设计得不好. 实际上, php 根本就没有设计, 也就不存在设计的好不好的问题 php的大多基础函数库, 仅仅是简单的把数据类型做了转换而已, 而接口, 完全沿用 库本身设计的接口. 这是非常聪明的哲学, 就是没有设计. php库做的工作很简单, 就是讲数据类型转换为php的基础数据类型. 就这么简单. 这种简单, 就使得 原库的接口完备性得到了保证, 并且在必要的时候, 加上个前缀. 这是非常聪明的设计 -- 没有设计

动态网页技术:ASP函数库

动态|函数|网页 ASP函数库<%''''                   函数目录                    ''''''''-----------------------------------------------'''''''' 函数ID:0001[截字符串]                        '''''''' 函数ID:0002[过滤html]                        '''''''' 函数ID:0003[打开任意数据表并显示表结构及

php字符串处理函数库

函数|字符串 php字符串处理函数库 AddSlashes 字符串加入斜线. 语法: string addslashes(string str); 返回值: 字符串 函数种类: 资料处理 本函数使需要让数据库处理的字符串,引号的部份加上斜线,以供数据库查询 (query) 能顺利运作.这些会被改的字符包括单引号 (').双引号 (").反斜线 backslash (\) 以及空字符 NUL (the null byte). bin2hex 二进位转成十六进位. 语法: string bin2he

PHP的拼写检查函数库

在使用这个函数前,需要先到 http://metalab.unc.edu/kevina/aspell 取回所需的拼写检查函数库 aspell library.  aspell_new :  载入一个新的字典.  aspell_check :  检查一个单字.  aspell_check-raw :  检查一个单字,即使拼错也不改变或修正.  aspell_suggest :  检查一个单字,并提供拼写建议.  aspell_new载入一个新的字典.语法: int aspell_new(strin