首 页 网络编程
网页制作 图形图象 操作系统 冲浪宝典
软件教学 认证考试

网络安全 网络办公 行业资讯 评测对比
您当前位置:站长天空 -> 网络编程-> ASP教程
Html中使用M$控件系列之OWC-图表篇-ASP教程,ASP应用
作者:网友供稿 点击:36
推荐
西部数码-全国虚拟主机10强!20余项虚拟主机管理功能,全国领先!第6代双线路虚拟主机,南北访问畅通无阻!可在线rar解压,自动数据恢复设置虚拟目录等.免费赠送访问统计,企业邮局.Cn域名注册10元/年,自助建站480元起,免费试用7天,满意再付款!P4主机租用799元/月.月付免压金
站内搜索
文章页数:[1] 
<object id=chartspace1 classid=clsid:0002e500-0000-0000-c000-000000000046 style="width:100%;height:350"></object>
<script language="vbscript">
sub window_onload()
dim categories(3), values(3)

取得已命名的常量对象,在以后的脚本中使用
set c = chartspace1.constants

设置图表工作区标题
chartspace1.haschartspacetitle = true
chartspace1.chartspacetitle.caption = "chart space title"

设置图表工作区的图例
chartspace1.haschartspacelegend = true

图例位置,其中c.*为位置枚举值,值列表如下
chlegendpositiontop :顶端
chlegendpositionleft :左边
chlegendpositionright :右边
chlegendpositionbottom :底部
chlegendpositionautomatic :自动
chartspace1.chartspacelegend.position = c.chlegendpositionright

categories(0) = "white"
categories(1) = "black"
categories(2) = "asian"
categories(3) = "latino"

将图表添加到图表工作区
chartspace1.charts.add

将新系列添加到图表工作区的指定图表中,下同
set a = chartspace1.charts(0).seriescollection.add
指定新系列的类型,c.*为类型枚举值,列表如下:
chcharttypecombo
chcharttypecolumnclustered
chcharttypecolumnstacked
chcharttypecolumnstacked100
chcharttypebarclustered
chcharttypebarstacked
chcharttypebarstacked100
chcharttypeline
chcharttypelinemarkers
chcharttypelinestacked
chcharttypelinestackedmarkers
chcharttypelinestacked100
chcharttypelinestacked100markers
chcharttypesmoothline
chcharttypesmoothlinemarkers
chcharttypesmoothlinestacked
chcharttypesmoothlinestackedmarkers
chcharttypesmoothlinestacked100
chcharttypesmoothlinestacked100markers
chcharttypepie
chcharttypepieexploded
chcharttypepiestacked
chcharttypescattermarkers
chcharttypescattersmoothlinemarkers
chcharttypescattersmoothline
chcharttypescatterlinemarkers
chcharttypescatterline
chcharttypescatterlinefilled
chcharttypebubble
chcharttypebubbleline
chcharttypearea
chcharttypeareastacked
chcharttypeareastacked100
chcharttypedoughnut
chcharttypedoughnutexploded
chcharttyperadarline
chcharttyperadarlinemarkers
chcharttyperadarlinefilled
chcharttyperadarsmoothline
chcharttyperadarsmoothlinemarkers
chcharttypestockhlc
chcharttypestockohlc
chcharttypepolarmarkers
chcharttypepolarline
chcharttypepolarlinemarkers
chcharttypepolarsmoothline
chcharttypepolarsmoothlinemarkers
共47个,谁有兴趣谁一一的试吧,我懒。
类型不同,支持的方法也有所不同,本文针对chcharttypecolumnclustered。
a.type = c.chcharttypecolumnclustered

chartspace1.charts(0).seriescollection.add
chartspace1.charts(0).seriescollection.add

values(0) = 0.2
values(1) = 0.06
values(2) = 0.17
values(3) = 0.13

设置系列的名字,将显示于图例当中,下同
chartspace1.charts(0).seriescollection(0).caption = "perot"
设定种类名称,下同
chartspace1.charts(0).seriescollection(0).setdata c.chdimcategories, c.chdataliteral, categories
设置系列的值,下同
chartspace1.charts(0).seriescollection(0).setdata c.chdimvalues, c.chdataliteral, values

values(0) = 0.38
values(1) = 0.82
values(2) = 0.28
values(3) = 0.62

chartspace1.charts(0).seriescollection(1).caption = "clinton"
chartspace1.charts(0).seriescollection(1).setdata c.chdimcategories, c.chdataliteral, categories
chartspace1.charts(0).seriescollection(1).setdata c.chdimvalues, c.chdataliteral, values

values(0) = 0.42
values(1) = 0.12
values(2) = 0.55
values(3) = 0.25

chartspace1.charts(0).seriescollection(2).caption = "bush"
chartspace1.charts(0).seriescollection(2).setdata c.chdimcategories, c.chdataliteral, categories
chartspace1.charts(0).seriescollection(2).setdata c.chdimvalues, c.chdataliteral, values

设定指定轴的起点及格式,string类型
其中,c.*为轴类型的枚举值,值列表如下:
chaxispositionleft
chaxispositioncircular
chaxispositionradial
chaxispositionright
chaxispositionleft
chaxispositionbottom
chaxispositiontop
chartspace1.charts(0).axes(c.chaxispositionleft).numberformat = "0%"

设置指定坐标轴的主单位,double类型
chartspace1.charts(0).axes(c.chaxispositionleft).majorunit = 0.1
end sub
</script>


文章整理:站长天空 网址:http://www.z6688.com/
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

文章页数:[1] 


放大字体显示 缩小字体显示 打印文章 推荐给朋友
热门文章
·在ASP.NET中使用Office Web Components (OWC)创建统计图-.NET教程,数据库应用
·windows系统下jsp+mysql+tomcat的配置-JSP教程,Application/Applet
·把aspx文件编译成DLL文件-.NET教程,Asp.Net开发
·Haneng.com的简单留言板制作源程序例子-ASP教程,ASP应用
·使用VB实现邮箱自动注册(一):表单自动提交-.NET教程,VB.Net语言
·VS.NET安装指南(To菜鸟)-.NET教程,Asp.Net开发
·web下水晶报表的使用!-.NET教程,Web Service开发
·C# 静态成员和方法的学习小结-.NET教程,数据库应用
·IIS的使用-ASP教程,ASP基础
·asp讲座之二:读取通过表单发送的数据
最新文章
·photoshop鼠绘实例:浪漫夏夜壁纸_photoshop教程
·买卖中小网站交易的一些细节问题_站长心得
·七招打造最安全的windows xp操作系统_windows xp
·做google adsense最佳和最重要的要诀_网赚技巧
·上下文关联广告清单(内文广告)推荐_网赚技巧
·广告联盟,痛定思痛_网赚技巧
·insenz首批广告费发放给站长_网赚技巧
·李彦宏:三分之一时间用在寻找人才_站长访谈
·中国汽车资源网杨锁民:网络寒冬时下海_站长访谈
·做it新闻资讯网站应先学新浪_站长心得
相关主题
  • html中meta作用_html教程
  • HTML中的数据绑定(Data Binding)-.NET教程,数据库应用
  • Html中使用M$控件系列之OWC-数据透视表篇-ASP教程,ASP应用
  • Html中使用M$控件系列之 TreeView 篇-ASP教程,客户端相关
  • Html中使用M$控件系列之 ListView 篇-ASP教程,客户端相关
  • 西部数码虚拟主机

    友情链接
    CNNIC 西部数码
    万网 自助建站
    虚拟主机 asp空间
    域名注册 域名
    域名申请 主页空间
    论坛空间 网站空间
    国际域名 虚拟空间
    空间租用 DDOS防火墙
    成都主机托管 四川主机托管
    主机租用 服务器租用
    网站目录 自助建站
    虚拟主机 网址大全
    软件下载
    自助链接
    虚拟主机资讯 特价虚拟主机
    版权申明:本站文章均来自网络,如有侵权,请联系我们,我们收到后立即删除,谢谢!
    关于我们:站长天空:专业提供最新的站长资讯、在线教程、虚拟主机权威评测、虚拟主机性能对比、网站制作教程,开发教程,站长工具。包括网页制作教程、冲浪宝典、编程参考、操作系统、软件教学、行业动态等。
    特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有。
    发表评论 打印  刷新     关闭